-
Notifications
You must be signed in to change notification settings - Fork 39
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
Linting stops working or displaying in Atom with pyls > 0.31.2 #191
Comments
Me too, I can help the pack? |
I also have this problem but I still didn't get the linting after downgrading pyls to 0.31.2. I wonder if anyone has a solution for this? |
But my Windows system works fine, which is quite strange. However, this kit is also dependent on Facebook's Atom IDE UI, and Facebook also stopped maintaining this kit. Maybe we should find a way to move to other UI interfaces, or whether we can make improvements in the dependent Atom IDE UI. |
Not sure how you had linting working with 0.31.2, then upgraded to 0.31.3 or 0.31.4 and lost it, then downgraded back to 0.31.2 and linting doesn't come back. I performed the upgrade and downgrade a few times to make sure it was the version upgrade causing the problem and with each downgrade to 0.31.2 linting worked again. I would check there isn't something else you've done that is causing your problem. |
Thank you! I have typed the command I have no idea why did that happen but I am glad the linting is back! I love this feature and thank you! |
I installed ide-python for the first time and it does not work. I always get the message that pyls should be installed, but it is. I followed the instruction, even did the specific install of "0.31.2", as it seems to be the version that works for you. :) When i to the command to check if it is installed (
In the example in the README is says: |
I’m pretty sure your problem is different than what is described in this issue. Not even certain it’s ide-python could be pyls or something else in your local setup or install. |
crazy... I had to set the "Python Executable" to "/usr/bin/python" ... which is my default python which is called when you type "python". |
Same problem for me: Global versions
Tests
Thank you for your work EDIT: TEMPORARY SOLUTION: |
@lgeiger no pressure, just wondering out of interest, are you not going to maintain I think |
@hermidalc Thanks for asking. I agree As a replacement for |
@lgeiger thanks for the response. The most pressing thing right now regarding this issue is that I use |
Thanks for pointing me to this page, I thought all the |
I am currently using |
It might be that many of us are still using |
I like this kit myself, and it is relatively stable compared to Has anyone continued to improve the |
@hermidalc I already checked this few hours ago. No, with apm list --installed --enabledCommunity Packages (15) /home/<user>/.atom/packages |
@lgeiger @okaminoseishin what versions of Atom are you using? @okaminoseishin what OS are you using? |
OS: Arch Linux atom --versionAtom: 1.45.0 EDIT: all checks was done inside clean virtualenv, pointing atom to it's interpreter. |
I also am using (Fedora) Linux. Sorry that I haven't had a chance to also set up a test with the Atom IDE Community packages and I appreciate it. Could you report (for @lgeiger) what errors you are seeing in the Atom Developer Tools Console? If |
Actually sorry I don't see any errors in the Developer Tools Console pyls looks to be working fine but it doesn't display any lint anything. |
@hermidalc try to close all opened files, restart editor, activate virtualenv if applicable, open console and select file from tree view. |
|
I've done a fresh install of latest Atom 1.45 (on Linux), latest Atom IDE Community packages and requirements, and new conda environment with:
I tested individually turning on/off But both flake8 and PyFlakes do not work and they give many
The many So there is clearly something going wrong and it's with flake8 and PyFlakes modules and how they are working with pyls and ide-python. |
What's even worse is that So for now I'm saying goodbye |
Maybe this is a bug with |
Actually I found with PyFlakes and pylint I do not get linting displayed if the source code file is too many lines? No console warnings or errors. I have an example script that is over 1900 lines long. If I cut out lines to <1900 then suddenly the PyFlakes and pylint linting starts working, and the moment I paste the lines back then suddenly linting disappears! @lgeiger do you think this is actually an issue with |
I could actually get |
@timmy61109 @mark-fangzhou-xie @vepain @okaminoseishin @gachteme could you please also comment that pyls >0.31.2 flak38 and pyflakes plugins are also not working for you in the pyls issue I opened palantir/python-language-server#769? It would help get the ball rolling over there. I've tested as of |
@hermidalc Ok. |
@lgeiger et al. Does anyone know how to get more extensive Atom debug logging of it's interactions with pyls? (referring to @ccordoba12 says he needs in palantir/python-language-server#769 (comment)). In the Atom dev console I've tried You will see the only error you see when running
Without more logging and better stack trace of what's going on it will be hard to figure out what the source of the issue is, whether its from pyls or Atom itself. |
Thanks to @okaminoseishin ++ for seeing that the log posted on palantir/python-language-server#769 does indeed show the stack trace all the way down to pyls... into the pyls flake8 plugin code and the subprocess calling code where the error is generated. Now we are being told in that issue that you get this error if flake8 isn't installed, but my OP shows I clearly have it installed in the conda env (with I also mentioned that it really cannot be that it isn't installed, because if you downgrade to pyls 0.31.2 in that same env it only changes that conda package and then you restart Atom and everything works. So culprit looks like pyls? I also said that a bunch of us are getting the same issue and the likelihood that something as obvious as not having flake8 installed is basically zero. @timmy61109 @mark-fangzhou-xie @vepain @gachteme if you want to also give your feedback in palantir/python-language-server#769 would be helpful. As you can see in thread there everything I mentioned simply gets shot down as if I'm simply wrong and cannot be helped. I've been through these situations before, we are wrong until we finally prove that we are right and then we don't get any apology... |
Hello @hermidalc and everyone, Very sorry for not responding you, but I am currently very busy
And disabled (to make sure to have no corruptions with linters) :
Versions :
And it works for linter (at the exception that some errors with flake8 are not shown AtomLinter/linter-flake8#720, but I think it is due to linter-flake8 package's output parser) I have noted that I cannot change in ide-python the path of flake8 or pycodestyle in the section EDIT : Because it is an enumerate section in the |
Hi, I was able to work around this problem... my stack:
I had to uninstall some default packages with pip, but I did get it working after running:
And then pointing ide-python at Thanks everyone! edit I have better luck with 1.6.2 of ide-python -- specifically, if I correct a linted warning it goes away with 1.6.2 whereas with 1.7.1 it does not. |
I was getting "Provider is unavailable" message in Outline pane. I tried previous versions of pyls but it did not work. I decided to rename the atom packages directory and reinstall the packages given above by @okaminoseishin and all is working now. Then I installed some of the packages (not all) that I had before and it works great now. I assume there was some kind of package version conflicts. |
After upgrading pyls on conda-forge from 0.31.2 -> 0.31.3 or 0.31.4 then ide-python suddenly stops showing any lint comments/warnings/errors. When I downgrade back to 0.31.2 then everything shows up again.
Atom 1.42 (on linux)
ide-python 1.5.0
The text was updated successfully, but these errors were encountered: