I would have given it a 5, but I really do not like the crazy auto-display of the messages window after every compile done from a brief moment of hesitation. If they can fix that, I would gladly re-install and continue to use this plugin. I just can't handle my screen re-drawing every few seconds and re-adjusting the windows I have (it also changes the location of the current cursor as a result of this too, causing further errors).
Hi developers of the plugin, I would like to suggest change to implementation which will solve the errors with idea 10 and higher. In class org.intellij.trinkets.eclipseMode.incrementalCompiler.SaveListener
method private void executeMake(VirtualFileEvent event) - should be changed and method void executeMakeInUIThread(VirtualFileEvent event) should be added as follows:
private void executeMakeInUIThread(VirtualFileEvent event) { EclipseMode eclipseMode = EclipseMode.getInstance(); if (event.isFromSave() && eclipseMode.getSettings().INCREMENTAL_COMPILATION_ENABLED) { Project[] projects = ProjectManager.getInstance().getOpenProjects(); for (final Project project : projects) { if (project.isInitialized() && !project.isDisposed() && project.isOpen() && !project.isDefault()) { final ProjectFileIndex projectFileIndex = ProjectRootManager.getInstance(project).getFileIndex(); final Module module = projectFileIndex.getModuleForFile(event.getFile()); if (module != null) { final CompilerManager compilerManager = CompilerManager.getInstance(project); if (!compilerManager.isCompilationActive() && !compilerManager.isExcludedFromCompilation(event.getFile()) && !compilerManager.isUpToDate(new ModuleCompileScope(module, false))) { // Changed file found in module. Make it. UIUtil.invokeAndWaitIfNeeded(new Runnable() { public void run() { compilerManager.make(module, null); } }); } } } } } }
I am not sure if such version will work with older versions of idea, should I fork your project to "Eclipse Mode for idea 9 and 10"?
.
Anonymous
Rated: noRate
2011-06-03 09:54:27
Same error in 10.5
.
Anonymous
Rated: noRate
2011-05-07 09:48:31
I'm also using intellij 10 ultimate and I'm running into the same assertion error.
.
Anonymous
Rated: noRate
2011-03-27 20:12:07
Getting the following exception in IntelliJ 10 Ultimate:
null java.lang.AssertionError at com.intellij.openapi.project.DumbServiceImpl.waitForSmartMode(DumbServiceImpl.java:253) at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1809) at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1226) at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:736) at com.intellij.compiler.impl.CompileDriver.access$300(CompileDriver.java:92) at com.intellij.compiler.impl.CompileDriver$5.run(CompileDriver.java:219) at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:156) at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:474) at com.intellij.openapi.progress.impl.ProgressManagerImpl.run(ProgressManagerImpl.java:434) at com.intellij.openapi.progress.Task.queue(Task.java:65) at com.intellij.compiler.progress.CompilerTask.start(CompilerTask.java:357) at com.intellij.compiler.impl.CompileDriver.isUpToDate(CompileDriver.java:213) at com.intellij.compiler.CompilerManagerImpl.isUpToDate(CompilerManagerImpl.java:249) at org.intellij.trinkets.eclipseMode.incrementalCompiler.SaveListener.executeMake(SaveListener.java:58) at org.intellij.trinkets.eclipseMode.incrementalCompiler.SaveListener.contentsChanged(SaveListener.java:24)
.
Anonymous
Rated: noRate
2010-12-15 23:23:56
The plugin works perfectly with IDEA 10.
After the first launch of IDEA close it, extract the plugin to the ..\plugins-directory, launch IDEA again an inside the Settings you can select and activate the Plugin.
To test it, just produce an error in a correct class-file (type something stupid) and press strg+s to save the class-file. The compiler will immediately be activated and you see the result (which is an compiling error) in the console window from IDEA.
.
Anonymous
Rated:
2010-12-15 20:29:45
It looks like EclipseMode has top working after IntelliJ 10 :-(.
.
Anonymous
Rated:
2010-12-02 13:43:47
Not working on 10, getting the assertion error that was already posted here
.
Anonymous
Rated: noRate
2010-11-13 23:14:44
I'm sure it'd be great if it worked with 9.0.4
.
Anonymous
Rated: noRate
2010-10-18 10:26:36
Unfortunately ,it's not compatible with idea9.03
.
Anonymous
Rated:
2010-05-23 00:13:27
I love it, but I get the Assertion error mentioned in a previous post. I'm using: 9.0.2 #IU-95.66 Built April 21, 2010 JDK 1.6.0_17 64 bit
Comments:
A simple and useful feature. Shame to lose it :(
In class org.intellij.trinkets.eclipseMode.incrementalCompiler.SaveListener
method private void executeMake(VirtualFileEvent event) - should be changed and method void executeMakeInUIThread(VirtualFileEvent event) should be added as follows:
private void executeMake(final VirtualFileEvent event) {
final Project project = ProjectUtil.guessProjectForFile(event.getFile());
ProgressManager.getInstance().run(new Task.Backgroundable(project, AnalysisScopeBundle.message("analyzing.project"), true) {
public void run(@NotNull ProgressIndicator indicator) {
executeMakeInUIThread(event);
}
});
}
private void executeMakeInUIThread(VirtualFileEvent event) {
EclipseMode eclipseMode = EclipseMode.getInstance();
if (event.isFromSave() && eclipseMode.getSettings().INCREMENTAL_COMPILATION_ENABLED) {
Project[] projects = ProjectManager.getInstance().getOpenProjects();
for (final Project project : projects) {
if (project.isInitialized() && !project.isDisposed() &&
project.isOpen() && !project.isDefault()) {
final ProjectFileIndex projectFileIndex = ProjectRootManager.getInstance(project).getFileIndex();
final Module module = projectFileIndex.getModuleForFile(event.getFile());
if (module != null) {
final CompilerManager compilerManager = CompilerManager.getInstance(project);
if (!compilerManager.isCompilationActive() &&
!compilerManager.isExcludedFromCompilation(event.getFile()) &&
!compilerManager.isUpToDate(new ModuleCompileScope(module, false))) {
// Changed file found in module. Make it.
UIUtil.invokeAndWaitIfNeeded(new Runnable() {
public void run() {
compilerManager.make(module, null);
}
});
}
}
}
}
}
}
I am not sure if such version will work with older versions of idea, should I fork your project to "Eclipse Mode for idea 9 and 10"?
null
java.lang.AssertionError
at com.intellij.openapi.project.DumbServiceImpl.waitForSmartMode(DumbServiceImpl.java:253)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1809)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1226)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:736)
at com.intellij.compiler.impl.CompileDriver.access$300(CompileDriver.java:92)
at com.intellij.compiler.impl.CompileDriver$5.run(CompileDriver.java:219)
at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:156)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:474)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.run(ProgressManagerImpl.java:434)
at com.intellij.openapi.progress.Task.queue(Task.java:65)
at com.intellij.compiler.progress.CompilerTask.start(CompilerTask.java:357)
at com.intellij.compiler.impl.CompileDriver.isUpToDate(CompileDriver.java:213)
at com.intellij.compiler.CompilerManagerImpl.isUpToDate(CompilerManagerImpl.java:249)
at org.intellij.trinkets.eclipseMode.incrementalCompiler.SaveListener.executeMake(SaveListener.java:58)
at org.intellij.trinkets.eclipseMode.incrementalCompiler.SaveListener.contentsChanged(SaveListener.java:24)
After the first launch of IDEA close it, extract the plugin to the ..\plugins-directory, launch IDEA again an inside the Settings you can select and activate the Plugin.
To test it, just produce an error in a correct class-file (type something stupid) and press strg+s to save the class-file. The compiler will immediately be activated and you see the result (which is an compiling error) in the console window from IDEA.
9.0.2
#IU-95.66
Built April 21, 2010
JDK 1.6.0_17 64 bit