Occasional Intellij virtual filesystem errors when building
See original GitHub issueOften when compiling my project it’ll fail with an intellij virtual filesystem error. It’s either one of the 2 following errors:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':common:generateIosMainDatabaseInterface'.
> Duplicate registration for EP: com.intellij.virtualFileSystem: original plugin null, new plugin null
or
* What went wrong:
Execution failed for task ':common:generateIosMainDatabaseInterface'.
> @NotNull method com/intellij/openapi/vfs/VirtualFileManager.getInstance must not return null
Unfortunately retrying often doesn’t even work, the task completes sucessfully but the build/sqldelight
folder is empty and the rest of the project won’t compile. The only way to get it working again is to make a change to one of the .sq
files - I’m assuming there’s some sort of caching problem going on.
I can’t reproduce it reliably but it does seem to happen more often after making a change to one of the gradle files, syncing with Android Studio, and then running a build from the command line.
Any idea of what could be causing this?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Occasionally seeing "Low disk space on a IntelliJ IDEA ...
I occasionally see an error alert "Low disk space on a IntelliJ IDEA system directory partition" even though I have more than 300G...
Read more >Virtual File System | IntelliJ Platform Plugin SDK
The Virtual File System (VFS) is a component of the IntelliJ Platform that encapsulates most of its activity for working with files ...
Read more >Idea does not keep itself in sync with file system
Sometimes the only way to fix this appears to be to completely reimport the project :/ For example, I opened my project, checked...
Read more >Exception when trying to open filesystem
I've been using Intellij for a couple months and I just recently ran into a problem where Intellij is having problems opening the...
Read more >Module compiles, but editor shows compilation issues
Try invalidating your caches and restarting IDEA (File > Invalidate Cache). Wait for IDEA to re-index your project (Status indicator on lower ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yea I’ve been seeing it too locally, looks like this isn’t fixed yet
theres a gradle api coming down the pike for the idea of a shared resource, I think I’ll try using that for this
alright, another round of attempted fixes in 1.4.4, normally i say i feel pretty good about it and it doesnt work so this time i feel terrible about it, no chance of it working