Codium-ai / codiumai-jetbrains-release

59 stars 8 forks source link

[0.6.19][PYCHARM PC 2023.2] java.lang.Throwable: File is not valid:file:///private/var/folders/6h/4xqjjb256_l7z62sqq_... #230

Open matheusfs99 opened 6 months ago

matheusfs99 commented 6 months ago

User Description

User did not enter any detailed information.

Stack Trace

java.lang.Throwable: File is not valid:file:///private/var/folders/6h/4xqjjb256_l7z62sqq_6n5r00000gn/T/AppTranslocation/5AB7AC87-670A-4DD4-BF1C-CECF8E86039B/d/PyCharm CE.app/Contents/plugins/python-ce/helpers/python-skeletons (invalid)
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:370)
    at com.intellij.psi.impl.file.impl.FileManagerImpl.findDirectory(FileManagerImpl.java:388)
    at com.intellij.psi.impl.PsiManagerImpl.findDirectory(PsiManagerImpl.java:168)
    at com.jetbrains.python.codeInsight.userSkeletons.PyUserSkeletonsUtil.getUserSkeletonForModuleQName(PyUserSkeletonsUtil.java:181)
    at com.jetbrains.python.codeInsight.userSkeletons.PyUserSkeletonsUtil.getUserSkeletonForFile(PyUserSkeletonsUtil.java:243)
    at com.jetbrains.python.codeInsight.userSkeletons.PyUserSkeletonsUtil.getUserSkeletonWithContext(PyUserSkeletonsUtil.java:153)
    at com.jetbrains.python.codeInsight.userSkeletons.PyUserSkeletonsUtil.getUserSkeleton(PyUserSkeletonsUtil.java:147)
    at com.jetbrains.python.codeInsight.userSkeletons.PyUserSkeletonsModuleMembersProvider.resolveMember(PyUserSkeletonsModuleMembersProvider.java:24)
    at com.jetbrains.python.psi.types.PyModuleType.resolveByMembersProviders(PyModuleType.java:265)
    at com.jetbrains.python.psi.types.PyModuleType.resolveMemberInPackageOrModule(PyModuleType.java:110)
    at com.jetbrains.python.psi.types.PyModuleType.resolveMember(PyModuleType.java:73)
    at com.jetbrains.python.psi.resolve.ResolveImportUtil.resolveModuleMember(ResolveImportUtil.java:315)
    at com.jetbrains.python.psi.resolve.ResolveImportUtil.resolveInPackageModule(ResolveImportUtil.java:280)
    at com.jetbrains.python.psi.resolve.ResolveImportUtil.resolveChildren(ResolveImportUtil.java:265)
    at com.jetbrains.python.psi.resolve.ResolveImportUtil.resolveNameInFromImport(ResolveImportUtil.java:137)
    at com.jetbrains.python.psi.resolve.ResolveImportUtil.multiResolveImportElement(ResolveImportUtil.java:104)
    at com.jetbrains.python.psi.impl.PyImportElementImpl.multiResolve(PyImportElementImpl.java:237)
    at com.jetbrains.python.psi.impl.PyImportElementImpl.getElementsNamed(PyImportElementImpl.java:218)
    at com.jetbrains.python.psi.impl.PyImportElementImpl.multiResolveName(PyImportElementImpl.java:189)
    at com.jetbrains.python.psi.resolve.PyResolveProcessor.resolveInImportedNameDefiner(PyResolveProcessor.java:96)
    at com.jetbrains.python.psi.resolve.PyResolveProcessor.execute(PyResolveProcessor.java:48)
    at com.jetbrains.python.psi.impl.PyFileImpl$ExportedNameCache.multiResolve(PyFileImpl.java:144)
    at com.jetbrains.python.psi.impl.PyFileImpl.lambda$multiResolveName$1(PyFileImpl.java:417)
    at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:110)
    at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:65)
    at com.jetbrains.python.psi.impl.PyFileImpl.multiResolveName(PyFileImpl.java:416)
    at

<TRIMMED STACKTRACE>

t$1.invoke(Utils.kt:281)
    at ai.codium.UtilsKt.checkIgnoringExceptions(Utils.kt:287)
    at ai.codium.UtilsKt.isTestElement(Utils.kt:281)
    at ai.codium.language.LanguageService.isSupportedFileToGenerateTests(LanguageService.kt:15)
    at ai.codium.CodiumInlayProviderBase.getCollectorFor(CodiumInlayProviderBase.kt:63)
    at ai.codium.CodiumInlayProviderBase.getCollectorFor(CodiumInlayProviderBase.kt:25)
    at com.intellij.codeInsight.hints.InlayHintsUtilsKt.getCollectorWrapperFor(InlayHintsUtils.kt:50)
    at com.intellij.codeInsight.hints.InlayHintsPassFactory.createHighlightingPass(InlayHintsPassFactory.kt:34)
    at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPassRegistrarImpl.instantiatePasses(TextEditorHighlightingPassRegistrarImpl.java:186)
    at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.lambda$getPasses$0(TextEditorBackgroundHighlighter.java:85)
    at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.computeWithSpanIgnoreThrows(trace.kt:73)
    at com.intellij.platform.diagnostic.telemetry.helpers.TraceUtil.computeWithSpanThrows(TraceUtil.java:18)
    at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.getPasses(TextEditorBackgroundHighlighter.java:80)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$submitInBackground$24(DaemonCodeAnalyzerImpl.java:1131)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:923)
    at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:76)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$submitInBackground$25(DaemonCodeAnalyzerImpl.java:1120)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.submitInBackground(DaemonCodeAnalyzerImpl.java:1117)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$queuePassesCreation$20(DaemonCodeAnalyzerImpl.java:1082)
    at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:185)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)

Other Information

=== About ===
Build version: PyCharm 2023.2 Build: #PC-232.8660.197 July 26, 2023
Theme: Dark
JRE: 17.0.7+7-b1000.6, JetBrains s.r.o.
JVM: 17.0.7+7-b1000.6, OpenJDK 64-Bit Server VM, JetBrains s.r.o.
Operating System: Mac OS X 14.0 (aarch64)

=== Plugins ===
Custom plugins: [Ini (232.8660.205), CodiumAI - Integrity Agent powered by GPT-3.5&4 (0.6.19), Makefile Language (232.8660.88), Docker (232.8660.205)]
Disabled plugins:[]
ArtsiomCh commented 6 months ago

Thanks for reporting! Is it reproduceable? We see it in our user's reports but can't reproduce it locally :( Seems to be occasional IDE glitch...

PS also 0.6.19 is a way outdated plugin version, please update to the latest 0.7.36