Error in SonarLint for IntelliJ

<Environment:

  • Java: JetBrains s.r.o. 17.0.6
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.1.2
  • SonarLint: 8.4.0.73538

Detector org.jetbrains.plugins.textmate.TextMateFileType$TextMateFileDetector@122f25c7 (class org.jetbrains.plugins.textmate.TextMateFileType$TextMateFileDetector) exception occurred:

com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
 at [Source: (BufferedInputStream); line: 1, column: 0]
	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
	at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4821)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4723)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3714)
	at org.jetbrains.plugins.textmate.bundles.VSCBundleReaderKt.readVSCBundle(VSCBundleReader.kt:27)
	at org.jetbrains.plugins.textmate.TextMateServiceImpl.readBundle(TextMateServiceImpl.java:237)
	at org.jetbrains.plugins.textmate.TextMateServiceImpl.registerBundle(TextMateServiceImpl.java:270)
	at org.jetbrains.plugins.textmate.TextMateServiceImpl.registerBundles(TextMateServiceImpl.java:94)
	at org.jetbrains.plugins.textmate.TextMateServiceImpl.ensureInitialized(TextMateServiceImpl.java:260)
	at org.jetbrains.plugins.textmate.TextMateServiceImpl.getLanguageDescriptorByFileName(TextMateServiceImpl.java:202)
	at org.jetbrains.plugins.textmate.TextMateFileType$TextMateFileDetector.detect(TextMateFileType.java:89)
	at c.ij.oa.fileTypes.impl.FileTypeDetectionService.lambda$detectFromContent$5(FileTypeDetectionService.java:553)/>

Hi,

Welcome to the community and thanks for this report!

The current version of SonarLint for IntelliJ is 10.5. Can you upgrade and see if this is still replicable?

 
Thx,
Ann

Hello @Venkat_G,

We rely on IntelliJ’s API to retrieve the file content, and it seems that the JSON file you are trying to analyze is malformed. Could you make sure the content is JSON-compatible and see if the issue is resolved?

On our side, I created this ticket to avoid polluting the IDE with an error.