What the 'eck is going on?

For the last couple days I have been having scads of problems. I have a multi-module J2EE app and am using IntelliJ 6.0.5. Everything was working swimmingly since it was released, until last Friday. (I haven't changed anything in my environment that I am aware of)

I keep getting a 'Previous compilation did not terminate properly. Caches may have been corrupted' message when compiling. I make changes to classes, compile and the changes are not reflected. I tried installing 7.0M1a (6827) and it is having the same problems with the addition of reporting an internal error (stack trace below) and it not appearing to correctly compile/build (exploded directories not being created and such).

Any ideas? What information would be required to assist in diagnosing?

-Kevin

Stacktrace----


No message
java.lang.AbstractMethodError
at com.intellij.lexer.FlexAdapter.start(FlexAdapter.java:51)
at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.]]>(LexerEditorHighlighter.java:24)
at com.intellij.ide.highlighter.HighlighterFactory.createHighlighter(HighlighterFactory.java:12)
at com.intellij.ide.highlighter.HighlighterFactory.createHighlighter(HighlighterFactory.java:2)
at com.intellij.ide.highlighter.HighlighterFactory.createHighlighter(HighlighterFactory.java)
at com.intellij.psi.impl.cache.impl.idCache.IdTableBuilding$WordsScannerIdCacheBuilderAdapter.build(IdTableBuilding.java:9)
at com.intellij.psi.impl.cache.impl.idCache.IdTableBuilding$1.run(IdTableBuilding.java:3)
at com.intellij.psi.impl.cache.impl.idCache.IdCacheUtil.updateInfoForFile(IdCacheUtil.java:16)
at com.intellij.psi.impl.cache.impl.idCache.MapBuilder.processFile(MapBuilder.java:5)
at com.intellij.psi.impl.cache.impl.idCache.ImmutableIdCacheImpl$MyInitializer$MyRebuildingCacheUpdater.processFile(ImmutableIdCacheImpl.java:25)
at com.intellij.psi.impl.cache.impl.idCache.ImmutableIdCacheImpl$MyInitializer.processFile(ImmutableIdCacheImpl.java:10)
at com.intellij.psi.impl.cache.impl.CacheManagerImpl$4.processFile(CacheManagerImpl.java:5)
at com.intellij.ide.startup.FileSystemSynchronizer.updateFiles(FileSystemSynchronizer.java:165)
at com.intellij.ide.startup.FileSystemSynchronizer.execute(FileSystemSynchronizer.java:58)
at com.intellij.ide.startup.impl.StartupManagerImpl$1.run(StartupManagerImpl.java:0)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:201)
at com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivities(StartupManagerImpl.java:33)
at com.intellij.openapi.project.impl.ProjectManagerImpl$3.run(ProjectManagerImpl.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:10)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:37)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:31)
at com.intellij.openapi.application.impl.ApplicationImpl$6$1.run(ApplicationImpl.java:9)
at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:3)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:9)

10 comments

I've had similar problems. The issue seems to be the use of the same cache
locations for b9651 and previous builds. I've deleted the caches in the system
directory and all is well (for now).

Cheers,

Bonny

0

Hello Kevin,

You have installed a custom language plugin which is incompatible with the
build of IntelliJ IDEA you are using. The problem will go away if you remove
the plugin.

For the last couple days I have been having scads of problems. I have
a multi-module J2EE app and am using IntellliJ 6.0.5. Everything was
working swimmingly since it was released, until last Friday. (I
haven't changed anything in my environment that I am aware of)

I keep getting a 'Previous compilation did not terminate properly.
Caches may have been corrupted' message when compiling. I make
changes to classes, compile and the changes are not reflected. I
tried installing 7.0M1a (6827) and it is having the same problems with
the addition of reporting an internal error (stack trace below) and it
not appearing to correctly compile/build (exploded directories not
being created and such).

Any ideas? What information would be required to assist in
diagnosing?

-Kevin

Stacktrace------------------
No message
java.lang.AbstractMethodError
at com.intellij.lexer.FlexAdapter.start(FlexAdapter.java:51)
at
com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.<init>(Lexe
rEditorHighlighter.java:24)
at
com.intellij.ide.highlighter.HighlighterFactory.createHighlighter(High
lighterFactory.java:12)
at
com.intellij.ide.highlighter.HighlighterFactory.createHighlighter(High
lighterFactory.java:2)
at
com.intellij.ide.highlighter.HighlighterFactory.createHighlighter(High
lighterFactory.java)
at
com.intellij.psi.impl.cache.impl.idCache.IdTableBuilding$WordsScannerI
dCacheBuilderAdapter.build(IdTableBuilding.java:9)
at
com.intellij.psi.impl.cache.impl.idCache.IdTableBuilding$1.run(IdTable
Building.java:3)
at
com.intellij.psi.impl.cache.impl.idCache.IdCacheUtil.updateInfoForFile
(IdCacheUtil.java:16)
at
com.intellij.psi.impl.cache.impl.idCache.MapBuilder.processFile(MapBui
lder.java:5)
at
com.intellij.psi.impl.cache.impl.idCache.ImmutableIdCacheImpl$MyInitia
lizer$MyRebuildingCacheUpdater.processFile(ImmutableIdCacheImpl.java:2
5)
at
com.intellij.psi.impl.cache.impl.idCache.ImmutableIdCacheImpl$MyInitia
lizer.processFile(ImmutableIdCacheImpl.java:10)
at
com.intellij.psi.impl.cache.impl.CacheManagerImpl$4.processFile(CacheM
anagerImpl.java:5)
at
com.intellij.ide.startup.FileSystemSynchronizer.updateFiles(FileSystem
Synchronizer.java:165)
at
com.intellij.ide.startup.FileSystemSynchronizer.execute(FileSystemSync
hronizer.java:58)
at
com.intellij.ide.startup.impl.StartupManagerImpl$1.run(StartupManagerI
mpl.java:0)
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(Ap
plicationImpl.java:201)
at
com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivities(
StartupManagerImpl.java:33)
at
com.intellij.openapi.project.impl.ProjectManagerImpl$3.run(ProjectMana
gerImpl.java:2)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressM
anagerImpl.java:10)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessU
nderProgress(ProgressManagerImpl.java:37)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(Prog
ressManagerImpl.java:31)
at
com.intellij.openapi.application.impl.ApplicationImpl$6$1.run(Applicat
ionImpl.java:9)
at
com.intellij.openapi.application.impl.ApplicationImpl$4.run(Applicatio
nImpl.java:3)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417
)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
tor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:675)
at java.lang.Thread.run(Thread.java:595)
at
com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(Applicat
ionImpl.java:9)

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Well, the startup error is gone now. But it is still complaining about the 'Previous compilation did not terminate properly. Caches may have been corrupted. Starting rebuild..' As near as I can figure, the web modules are not being deployed (if I delete the contents of the exploded directory and rebuild the project, it doesn't populate that directory). It claims to compile everything, I get the warnings and such I expect from the code compile.

I tried uninstalling all the various versions of IntelliJ that I had installed (telling it to uninstall everything during the process). I checked that this did indeed uninstall the .IntelliJIdeaxx directories. I even went in and manually deleted the JetBrains directory to clean up anything that might have been missed. I removed all the .iml, .iws and .ipr files.

Then I installed 7.0M1a, reset up my project/modules. Didn't download any plugins at all. Did a project rebuild. Still getting this caches corrupted message.

The only thing I can think of that I didn't do was do a totally clean re-export of my code (to get rid of any IntelliJ created directories, like the exploded directory).

Any ideas? This is incredibly annoying right now.

0

Hello Kevin,

Are there any exceptions in .IntelliJIdea70\system\logs\idea.log?

Well, the startup error is gone now. But it is still complaining
about the 'Previous compilation did not terminate properly. Caches
may have been corrupted. Starting rebuild..' As near as I can figure,
the web modules are not being deployed (if I delete the contents of
the exploded directory and rebuild the project, it doesn't populate
that directory). It claims to compile everything, I get the warnings
and such I expect from the code compile.

I tried uninstalling all the various versions of IntelliJ that I had
installed (telling it to uninstall everything during the process). I
checked that this did indeed uninstall the .IntelliJIdeaxx
directories. I even went in and manually deleted the JetBrains
directory to clean up anything that might have been missed. I removed
all the .iml, .iws and .ipr files.

Then I installed 7.0M1a, reset up my project/modules. Didn't download
any plugins at all. Did a project rebuild. Still getting this caches
corrupted message.

The only thing I can think of that I didn't do was do a totally clean
re-export of my code (to get rid of any IntelliJ created directories,
like the exploded directory).

Any ideas? This is incredibly annoying right now.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Yep. I'll attach the log snippet.



Attachment(s):
log.txt
0

I'm going to have to install Eclipse to actually get some work done. It makes me feel dirty...

0

In the off chance that someone is still looking into this. It still doesn't work. I tried installing 5.1 to see if it had the same problem. It did. NPEs are logged as being thrown from the compiler (I assume) in the idea.log...

Again, if I can provide more information that would be helpful let me know...

0

In the log you provided it says:
Sources output dir is null for module "root"
After which a NPE is thrown. You could try to set the output dir for
that module. Or perhaps recreate that module entirely. Perhaps that will
fix it.

Bas

Kevin Brown wrote:

In the off chance that someone is still looking into this. It still
doesn't work. I tried installing 5.1 to see if it had the same
problem. It did. NPEs are logged as being thrown from the compiler
(I assume) in the idea.log...

Again, if I can provide more information that would be helpful let me
know...

0

It looks like the problem is that I had a couple web modules that didn't have a src directory setup (because they didn't need one). That appears to make IntelliJ collapse. I wonder why I'm allowed to not specify a src directory if I can't actually take that option without it exploding.

I set up an empty src directory for those modules and everything seems to work again. That was annoying. I wonder if the facet stuff will prevent this being a problem in the future....


Thanks for your help.

0

Hello Kevin,

I cannot reproduce this issue. Please attach your iml-files and ipr-file.

It looks like the problem is that I had a couple web modules that
didn't have a src directory setup (because they didn't need one).
That appears to make IntelliJ collapse. I wonder why I'm allowed to
not specify a src directory if I can't actually take that option
without it exploding.

I set up an empty src directory for those modules and everything seems
to work again. That was annoying. I wonder if the facet stuff will
prevent this being a problem in the future....

Thanks for your help.



0

Please sign in to leave a comment.