Meghanada Menu > Compile actions do not do what they say
Opened this issue · 0 comments
I'm in a folder (let's say /tmp) with 2 Java test files, one that should compile, the other not:
- File
Test1.java
public class Test1 {
public static final void main(final String[] args) {
System.out.println("Test" + 1.4);
}
}
- File
Test2.java
public class Test2 {
public static final void main(final String[] args) {
this does not compile
}
}
When I open File 1 in Emacs (with Meghanada associated to Java files), and hit Meghanada Menu > Compile > Compile File
, then I get a buffer listing errors in Tests2.java
... Even if Test2.java
was never opened in Emacs... So the Menu entry does not do what it says: it does not compile the only file that Emacs is aware of (the one opened in the current buffer).
Also, opening Test2.java
in a buffer and running Meghanada Menu > Compile > Compile Project
succeeds with "compile finished", whereas Test2.java
is not a valid java file, so I don't know what the command compiles (and succeed to do so), but it is not the compilation of the whole project, as compiling all the java files in the current directory should fail due to the errors in Test2.java
.
BTW, they do not seem to be simply inverted...