Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liar666 opened this issue Feb 25, 2022 · 0 comments
Open

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

liar666 opened this issue Feb 25, 2022 · 0 comments

Comments

@liar666
Copy link

liar666 commented Feb 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant