mopemope / meghanada-emacs

A Better Java Development Environment for Emacs
GNU General Public License v3.0
603 stars 56 forks source link

Meghanada Menu > Compile actions do not do what they say #181

Open liar666 opened 2 years ago

liar666 commented 2 years ago

I'm in a folder (let's say /tmp) with 2 Java test files, one that should compile, the other not:

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