Error in SonarLint for IntelliJ - Another one

Environment:

  • Java: JetBrains s.r.o. 11.0.14.1
  • OS: Linux amd64
  • IDE: PyCharm 2022.1.1
  • SonarLint: 6.7.0.45926

Can’t retrieve notebook version from the content. Please, click on the checkbox explicitly to attach your notebook.

java.lang.Throwable
	at c.ij.idea.IdeaLogger.error(IdeaLogger.java:127)
	at c.ij.oa.diagnostic.Logger.error(Logger.java:192)
	at org.jetbrains.plugins.notebooks.jupyter.nbformat.JupyterNotebookSchemaFactory.createSchema(JupyterNotebookSchema.kt:28)
	at org.jetbrains.plugins.notebooks.jupyter.nbformat.JupyterNotebookBase.<init>(JupyterNotebookBase.kt:31)
	at org.jetbrains.plugins.notebooks.jupyter.NotebookMetadataLanguageProvider.getNotebookFromOriginalFile(NotebookMetadataLanguageProvider.kt:59)
	at org.jetbrains.plugins.notebooks.jupyter.NotebookMetadataLanguageProvider.getTemplateLanguage(NotebookMetadataLanguageProvider.kt:35)
	at org.jetbrains.plugins.notebooks.jupyter.NotebookLanguageProvider$Companion.getTemplateLanguage(NotebookLanguageProvider.kt:16)
	at org.jetbrains.plugins.notebooks.jupyter.JupyterFileViewProvider.getTemplateDataLanguage(JupyterFileViewProvider.kt:71)
	at org.jetbrains.plugins.notebooks.jupyter.JupyterFileViewProvider.getLanguages(JupyterFileViewProvider.kt:73)
	at c.ij.extapi.psi.PsiFileBase.findLanguage(PsiFileBase.java:35)
	at c.ij.extapi.psi.PsiFileBase.<init>(PsiFileBase.java:23)
	at org.jetbrains.plugins.notebooks.core.api.psi.NotebookPsiFile.<init>(NotebookPsiFile.kt:10)
	at org.jetbrains.plugins.notebooks.jupyter.psi.JupyterFile.<init>(JupyterFile.kt:9)
	at org.jetbrains.plugins.notebooks.jupyter.JupyterParserDefinition.createFile(JupyterParserDefinition.kt:32)

Hi @VibratingPig and thanks for reporting the issue,

It seems to be an error on PyCharm side. I found this bug report that looks similar:
https://youtrack.jetbrains.com/issue/PY-53991/orgjetbrainspluginsnotebooksjupyter-Throwable-null

They are asking for the full logs to help the investigation, maybe you could provide them there?