-
Notifications
You must be signed in to change notification settings - Fork 17
Does not lint #36
Comments
Ok so I tried another fresh install ( i .atom and reinstalled the atomio linter and linter-javac) Here is my config now
Ok and upon trying to save a .java file, I received this error But upon rebooting atom and reinstalling, the error seems to have disappeared. However it is still not linting java grammar. i.e.
in atom show nothing and nothing like the linter GIFS on https://atom.io/packages/linter |
I have the same problem on my Mac (OS X 10.11.1, Atom 1.2.0 and Java 8u51). It does lint however, but errors are shown on the project tab only. For current file it always says "no issues" and therefore also inline messages are not shown at all. |
This project doesn't seem to have an active maintainer, we would welcome somebody to take this over and a good first step would be diagnosing issues like this and submitting a PR 😉 My guess is that the file path the linter is outputting doesn't match the full path to the file as Atom sees it ( |
@Arcanemagus This project does actually have a maintainer, Ping @kepler0 😛 |
In my case the problem was caused by a symlink. I keep all my active projects side by side in the same directory but some of them are actually symlinks that point elsewhere. In this case the project root directory was actually a symlink. |
This can also happen if you have multiple root projects open and the project your currently working on is not the first one (cause: https://github.com/AtomLinter/linter-javac/blob/master/lib/init.coffee#L92) |
I have the same problem, other linters perform well except this, I'm on windows 10, atom 1.3.1, javac is runable in my path, but ctrl + alt + i shows that linter-javac didn't load (while *.java file open) |
Are there any updates on this? |
I have the same problem Cry cry cry |
@daiwenxiamen Do you have other linters installed that are working? Or not? |
@Arcanemagus |
If the issue won't be taken by anyone i'll take it over after i finished the test-suite. I beg for patience. 🍪 |
@florianb You are the only current maintainer of this linter 😛. |
@Arcanemagus - 🙀 i somehow try to avoid that cognition.. |
@daiwenxiamen @supahkutdiamnds: This error seems to belong to a symbolic linked directory can you verify that in your project-folder (including the project-folder itself) is a symbolic linked/symlinked/softlinked folder? Thank you very much for your support & patience! 🎁 |
Ping. 🔔 |
The same issue. I am on openSUSE Leap, linter-gcc works well while linter-javac never works. Javac exist in my $PATH, I also tried manually input full path in the settings but it still does not work. My project-folder is not a linked folder. Thanks for your effort. @florianb |
Hey @TAXUEZJU - welcome and thank you very much for your support. 🎉 This bug is currently hard to catch, mainly because of missing diagnostic information and a plenty diversity of assumptions in this thread. I summarize:
Proposal for solution:We will quickly introduce a "Debug"-mode (with the next minor-release) which enables verbose console logging to allow any user checking the progress of the javac-linter. How does that sound? |
Sounds good. Expect next release. |
@TAXUEZJU done.. 👍 It would be nice if you could provide some verbose log-messages. Thanks a lot... 🎲 ⏳ |
Sorry so long to reply to you. I have tried the debug mode, and got some useful information. It seems linter-javac does work but does not show the error information.
Obviously, it works but does not show the error information. However, linter-gcc works well. Wish it can help you. Thanks. |
Hey @TAXUEZJU - thank you very much! This helps a lot! 😂 I haven't seen something like that yet. Oracles seems to internationalize it's system-output (i guess 错误 is chinese for "error") and since we're searching for "old" english "errors", the linter seems to miss the error-messages from javac. I will have to take a deeper look, but i am confident we're able to fix that by at least adding a different regex. However, i beg you for some patience. 🍻 |
@TAXUEZJU i couldn't find any way to control javac's behavior on that issue. So i would like to try creating a RegExp-pattern for that. Since i was completely unable to make javac speak Chinese here, i would like to ask you fro a favour. Could you please post the output of Thank you very much in advance! 🍺 |
Like this?
You mean this problem may be caused by Language settings. Chinese error information caused linter-javac unable to catch the messages. So if I try to switch to English or use old java version this problem will not exist? Thanks very much. |
Has the problem been solved? |
@TAXUEZJU Does this look like a valid pulling out of the relevant information? If the regex is switched to that you won't get badge highlights in the editor, but at least it will list the messages for you. |
@TAXUEZJU i'll prepare the patch the next week. Did you try to change the language-settings? |
@florianb I have tried to switch the language-settings to English and linter-javac works well. So maybe you need to add more regular expressions if you want it to work under any languages. It's hard work. |
@TAXUEZJU - yeah i assumed that. I hadn't had the time to push the patch yet but i'll do so in the next few days. |
The enhancement (#88) to enable chinese-localization is maturing for a few hours and will then be published later this day. 🍷 |
@TAXUEZJU - the next minor release has been published. I would appreciate if you could prove the fix. 🍻 |
@florianb still got problem here : ( |
@Ehekatl thanks for reporting, could you please invoke It seems we're having an encoding problem at your debug console. |
@florianb yes, I'm on windwos 10, it should be encoding problem
|
@Ehekatl thanks a lot! 🍻 That's going to become a tough nut! 😁 |
@florianb add
|
Oh no - i introduced accidentially a bug. Stay calm.. |
@Ehekatl i'd vote to set It seems that it would even be possible to set english just for a single invocation, annoying that i didn't find that earlier: http://stackoverflow.com/questions/2444712/os-x-terminal-output-of-javac-is-garbled |
* add chinese javac-output * add fixtures for #36 - chinese javac-output * add language detection * add some tiny improvements * add specs for message-type-translation * implement message-type-translation * fix regex-captures-order * fix text/message capure
@florianb 1.9.1 works well 🎉 many thx |
It doesn't work for me for another reason. |
I have a fresh atom install with JDK ( Java SE Development Kit 8u66 ).
Nothing will lint, I have tried uninstalling/reinstalling/deleting my ~.atom for a fresh config/etc.
Here is my config.cson. I have tried a few things
config attempt 1:
Config attempt 2:
Config attempt 3 (DEFAULT, AFTER INSTALLING PACKAGES):
The text was updated successfully, but these errors were encountered: