Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot process toolwindow Detexify #3287

Closed
LyricalJelly opened this issue Oct 24, 2023 · 1 comment
Closed

Cannot process toolwindow Detexify #3287

LyricalJelly opened this issue Oct 24, 2023 · 1 comment
Labels
crash-report Reports of crashes that popped up in IDEA. duplicate Another issue exists addressing the same problem.

Comments

@LyricalJelly
Copy link

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

PyCharm 2023.2.3 (build PY-232.10072.31)

Operating System

Windows 11.0 (amd64)

TeXiFy IDEA version

0.9.1

Description

Stacktrace

  Cannot process toolwindow Detexify
  
  java.lang.IllegalArgumentException: Must pass FS root path, but got: 'E:///', which has a parent 'E:'. Use NewVirtualFileSystem.extractRootPath() for obtaining root path
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.findRoot(PersistentFSImpl.java:1495)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.cacheRootsByUrls(PersistentFSImpl.java:1620)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.cacheSingleMissedRootFromPersistence(PersistentFSImpl.java:1602)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$ParentFinder.ascendUntilCachedParent(PersistentFSImpl.java:1685)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$ParentFinder.find(PersistentFSImpl.java:1806)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.findFileById(PersistentFSImpl.java:1567)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.findFileById(PersistentFSImpl.java:64)
at com.intellij.openapi.vfs.PlatformVirtualFileManager.findFileById(PlatformVirtualFileManager.java:54)
at com.intellij.openapi.vfs.CompactVirtualFileSet$1.next(CompactVirtualFileSet.java:373)
at com.intellij.openapi.vfs.CompactVirtualFileSet$1.next(CompactVirtualFileSet.java:364)
at com.intellij.util.containers.SequenceIterator.next(SequenceIterator.java:39)
at com.intellij.openapi.vfs.CompactVirtualFileSet$3.findNext(CompactVirtualFileSet.java:425)
at com.intellij.openapi.vfs.CompactVirtualFileSet$3.hasNext(CompactVirtualFileSet.java:416)
at java.base/java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1855)
at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:292)
at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:161)
at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:298)
at java.base/java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
at com.intellij.util.containers.ContainerUtil.newHashSet(ContainerUtil.java:291)
at com.intellij.util.indexing.FileBasedIndexEx.getContainingFiles(FileBasedIndexEx.java:241)
at com.intellij.util.indexing.FileBasedIndexImpl.getContainingFiles(FileBasedIndexImpl.java:1120)
at com.intellij.psi.search.FileTypeIndex.getFiles(FileTypeIndex.java:44)
at nl.hannahsten.texifyidea.util.ProjectsKt$allFiles$1.invoke(Projects.kt:64)
at nl.hannahsten.texifyidea.util.ProjectsKt$allFiles$1.invoke(Projects.kt:62)
at com.intellij.openapi.application.ActionsKt.runReadAction$lambda$3(actions.kt:31)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:909)
at com.intellij.openapi.application.ActionsKt.runReadAction(actions.kt:31)
at nl.hannahsten.texifyidea.util.ProjectsKt.allFiles(Projects.kt:62)
at nl.hannahsten.texifyidea.util.ProjectsKt.isLatexProject(Projects.kt:126)
at nl.hannahsten.texifyidea.ui.DetexifyToolWindowFactory.isApplicable(DetexifyToolWindowFactory.kt:19)
at com.intellij.toolWindow.ToolWindowSetInitializerKt.beanToTask(ToolWindowSetInitializer.kt:253)
at com.intellij.toolWindow.ToolWindowSetInitializerKt.access$beanToTask(ToolWindowSetInitializer.kt:1)
at com.intellij.toolWindow.ToolWindowSetInitializerKt$computeToolWindowBeans$1.invoke(ToolWindowSetInitializer.kt:282)
at com.intellij.toolWindow.ToolWindowSetInitializerKt$computeToolWindowBeans$1.invoke(ToolWindowSetInitializer.kt:278)
at com.intellij.toolWindow.ToolWindowSetInitializerKt.computeToolWindowBeans$lambda$0(ToolWindowSetInitializer.kt:278)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processWithPluginDescriptor(ExtensionPointImpl.java:300)
at com.intellij.toolWindow.ToolWindowSetInitializerKt.computeToolWindowBeans(ToolWindowSetInitializer.kt:278)
at com.intellij.openapi.project.impl.ProjectFrameAllocatorKt$scheduleInitializeToolWindows$1$taskListDeferred$1.invokeSuspend(ProjectFrameAllocator.kt:431)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

@LyricalJelly LyricalJelly added crash-report Reports of crashes that popped up in IDEA. untriaged Issue type still needs to be triaged or verified. labels Oct 24, 2023
@PHPirates
Copy link
Collaborator

Thanks for reporting! This was reported in #3210, duplicates https://youtrack.jetbrains.com/issue/IDEA-327881/IllegalArgumentException-Must-pass-FS-root-path-but-got-D-which-has-a-parent-D and will be fixed in 2023.3 probably.

@PHPirates PHPirates added duplicate Another issue exists addressing the same problem. and removed untriaged Issue type still needs to be triaged or verified. labels Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash-report Reports of crashes that popped up in IDEA. duplicate Another issue exists addressing the same problem.
Projects
None yet
Development

No branches or pull requests

2 participants