question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Occasional Intellij virtual filesystem errors when building

See original GitHub issue

Often 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
AlecStrongcommented, Oct 1, 2019

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

3reactions
AlecStrongcommented, Oct 8, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found