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

"Invalid root file" error message after deleting a file or a parent folder #676

Closed
ahus1 opened this issue Feb 16, 2021 · 1 comment
Closed
Assignees

Comments

@ahus1
Copy link
Contributor

ahus1 commented Feb 16, 2021

Reported by Sentry as ASCIIDOC-INTELLIJ-PLUGIN-1C

java.lang.Throwable: Invalid root *** (invalid) in com.intellij.workspaceModel.ide.impl.legacyBridge.module.roots.SourceFolderBridge@c81aecbb
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:159)
    at com.intellij.openapi.roots.impl.RootFileSupplier.ensureValid(RootFileSupplier.java:114)
    at com.intellij.openapi.roots.impl.RootIndex.ensureValid(RootIndex.java:317)
    at com.intellij.openapi.roots.impl.RootIndex.buildRootInfo(RootIndex.java:185)
    at com.intellij.openapi.roots.impl.RootIndex.<init>(RootIndex.java:72)
    at com.intellij.openapi.roots.impl.RootIndex.<init>(RootIndex.java:56)
    at com.intellij.openapi.roots.impl.DirectoryIndexImpl.getRootIndex(DirectoryIndexImpl.java:171)
    at com.intellij.openapi.roots.impl.DirectoryIndexImpl.getRootIndex(DirectoryIndexImpl.java:154)
    at com.intellij.openapi.roots.impl.DirectoryIndexImpl.getInfoForFile(DirectoryIndexImpl.java:181)
    at com.intellij.openapi.roots.impl.FileIndexBase.getInfoForFileOrDirectory(FileIndexBase.java:98)
    at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.getInfoForFileOrDirectory(ProjectFileIndexImpl.java:27)
    at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.getContentRootForFile(ProjectFileIndexImpl.java:140)
    at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.getContentRootForFile(ProjectFileIndexImpl.java:135)
    at org.asciidoc.intellij.psi.AsciiDocUtil$1.after(AsciiDocUtil.java:614)
    at jdk.internal.reflect.GeneratedMethodAccessor151.invoke
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
@ahus1 ahus1 added the bug label Feb 16, 2021
@ahus1 ahus1 changed the title Invalid root file error message "Invalid root file" error message Feb 16, 2021
@ahus1 ahus1 changed the title "Invalid root file" error message "Invalid root file" error message after deleting a file or a parent folder Feb 16, 2021
@ahus1 ahus1 self-assigned this Feb 16, 2021
@ahus1 ahus1 added the Sentry label Feb 16, 2021
@ahus1
Copy link
Contributor Author

ahus1 commented Feb 16, 2021

The root file should only be determined for files that are still valid (that is: have not been deleted or have their parents deleted). Fixed in next upcoming release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant