dense-analysis / ale

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
BSD 2-Clause "Simplified" License
13.49k stars 1.43k forks source link

Report bad symbol names for javac #598

Open chenlijun99 opened 7 years ago

chenlijun99 commented 7 years ago

I'm currently using ALE for java linting and it just show error: cannot find symbol when for example I make a typo on a variable. ale

What I would like to have is a error message like the one I got by using make make

Is there any way to format the error message? I've given a quick read to the doc, but apart of %s I've only found %linter% and %severity% for g:ale_echo_msg_format.

w0rp commented 7 years ago

The callback for handling the Java error needs to be modified to handle those errors. The lines should be parsed and turned into a single line message. There's some code for this already. It can be enhanced with some more tests.