-
Notifications
You must be signed in to change notification settings - Fork 48
Pylint working, linter-pylint not #2
Comments
I found the console log. The error is on line 25 of linter-pylint.coffee file. Could it be the regex that matches the pylint version the problem?
|
@florianb, can you check it? |
@magandrez, @hd-deman - i'll take a look |
Hi @magandrez - please take a look into the console ( To clarify, before the linter is getting started, the pylint-plugin tries to call pylint. If it can extract the version-number from the output, the linter gets started. Otherwise pylint seems not to be working correct and linter-pylint is set inactive to avoid a massive error-log-output. |
Hi @florianb Pylint seems to load:
After this the editor finishes loading. Then I open a new (Python) file, Pylint loads again and next entry is the following:
Hope it helps. Manuel |
Thank you for the detailed report, Manuel - i'll investigate that behaviour.. :) I'm sorry for any inconveniences. |
Oh @magandrez - you could do me one last favour. Please post your output of |
Sure @florianb no problem. Thank you for the support!. I am fairly new to Python ecosystem and Atom, so sorry if I cannot be of more help. Here is the output:
|
@magandrez - i wasn't able to reproduce the bug yet. I revisited the complete package-loading structure (which works fine for my testfiles - and my environment is exactly like yours) - therefore i fixed a bug on the debug-output and added the project-environment to the execution. After the publishing of #3 (which should be introduced as v0.1.1) i would like to ask you again, posting me the output of the Thanks for your patience. 🍓 |
@magandrez - the new version is published. It would be very nice, if you could check again the error while opening your python-file and post the corresponding error-message. |
That was fast @florianb Thanks! The output now is |
@magandrez - thanks a lot. It seems like the PATH-environment is somehow not recognized correctly. I'll dig in deeper but assume that there are less choices i can take to solve that problem in general. |
I'm stuck at the same problem. |
@magandrez There's a separate issue for that: #4 |
Follow up: a user could fix this issue for himself by including the paths in his PATH variable in |
Same issue here. pep8 lint is working but pylint is not. |
Exactly same problem as @iszla. |
I had the same error. not sure why, maybe it is linked to Windows Vs other system?? I will let the real develloper figure it out. |
Hi everybody. I use Win7, Python3.3 and i got such problem too, but i fixed it. In .atom\packages\linter-pylint\lib\linter-pylint.coffee in line #23 Change this versionRegEx = /pylint ([\d\.]+)\,/ for this versionRegEx = /pylint-script.py ([\d.]+)\,/ And everything will be 👌 |
Windows users, I suspect your issue is different from the one that @magandrez was having. I created #13 to track the @magandrez, now that the issue with |
Hi @dmnd When opened from the OSX GUI (ie: launching Atom with Quicksilver, opening it from Applications folder, etc), I found the following error when opening a Python file However, when launching Atom from the Terminal and I open a Python file, I don't receive any error messages ( The first issue seems related to the PATH environment. But I have no clue about the second one (linter not responding when I type errors in a python file), since there is no error log. |
Thanks @magandrez. I added steelbrain/linter#150 to track the issue with With regards to the second issue, can you go to settings for linter and turn on lint debug? That will make your console noisy, but you'll be able to tell if |
Hi again @dmnd I hope I can bring some more information with this debug. First of all, I updated Linter to the last version released few hours ago (0.5.1). Here are my findings after debugging.
|
Those lines look a little odd to me, but not that bad. It's weird that You're getting an exception from
Here's what happens on my system:
Does that work? If it doesn't, it seems like we have a problem with the way Atom is shelling out to |
You can also try this StackOverflow answer to attempt to fix the |
Hummm, Well, I cannot see the problem. I've run the same command and I get the same response in the command line, however Atom does not lint at all any Python document. Any suggestion where to go from here? About the ValueError: thanks, I got that fixed now. |
@magandrez can you try the latest version again? I suspect #15 may solve your issue. If it doesn't can you please provide another lot of console output with debug mode on like you did here? Maybe something has changed now that you've resolved that Also, make sure you are using React editor. The old editor is deprecated. |
@dmnd Progress! I've made some progress. I've updated to the latest version (both Atom and pylint) and tested following the settings you mentioned and on safe mode. Yes, I should have done that before, sorry! :( The result was no error messages from pylint. The problem was with a non-related package I installed and was causing the following error that I totally missed:
This error appeared when Atom was launched and for some reason did not allow the linter to show any output when I was modifying a Python sample file. Now...What is the development status? Should I see some kind of error next to the line number if I modify a sample file? Or should I check the Developer Console for errors? Because I don't see any error Thanks a lot! |
|
Oh well, seems we are back at the issue 150 with Linter (steelbrain/linter#150)
I believe the original bug is then closed and the problem remains with that issue I linked above. |
ok @magandrez I'll close this issue. Sorry it's so tough to get this working 😧 You should be able to work around steelbrain/linter#150 by starting Atom from the terminal with |
Incase people are having this problem still, you can make a user-side temporary fix with a simple symbolic link, for pylint I just did so and all was working fine:
Obviously not the prettiest, however it does solve the problem until there's a fix on the plugin. |
I had this problem and I found my problem. Basically I was using google's depot tools, which they include pylint and they were in the path before anything else. there are two problems here:
|
Hi,
I've installed linter and linter-pylint on my environment (Atom 0.100) but seems not to be working at all and I cannot find any log whatsoever. I'm running python 2.7.5 on a Mac OS X 10.9.3 and pylint 1.2.1
The text was updated successfully, but these errors were encountered: