-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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.lintOnTextChange does not work + doc bug #28
Comments
Agreed, the documentation needs to be updated and we'll look at removing the setting |
Does that mean you have to save the file every time to get its contents checked? Does VSCode not provide an interface to have the editor buffer checked? I believe I did see it for some other languages. |
Yes
It does, however this is a limitation of the extension. |
Alright, thanks for the answers. I suppose an RFE should be filed but it probably appears in the explosion of issues anyway, or may be related to some of them. Feel free to close once the docs are fixed. edit (27 Nov 2017): I see this is being referred to as to the actual RFE so please don't close unless implemented. |
@brettcannon the setting My suggestion is to remove this. I.e. this was a poorly designed, hence needs to be removed to avoid any further confusion. |
Continuously saving isn't really a solution |
@DonJayamanne yep, we should remove the setting and let people turn on auto-saving for now and long-term plan on LSP providing a more robust solution. |
@brettcannon Agreed. I suggest we go with the approach we took with the deprecation of 'formatOnSave' setting.
What do you think? |
Rather than claiming the option is deprecated, it might be better to say it's not implemented, remove all related code and point to the new issue. This both reflects the situation better and gives the users a feeling that you may be implementing it once. |
I don't think we need to have such messages in the extension to serve as reminder. That's where the github issue would come in |
My point is - if you say it's deprecated, you're throwing the option away. If you just say it's not yet implemented, you can reuse it. I think I do agree, however, that you should have the new issue as the RFE for this to be done. You should refer to it from this and https://github.com/DonJayamanne/pythonVSCode/issues/134 threads. You can see in both the places that there are people who care (although not enough to themselves create a PR 😢 - including me, sorry, no time 😞). |
@stlaz There's nothing preventing us from implementing the feature in the future and using the settings name again, but we are currently not prepared to promise implementing it in a time frame where we don't look bad for not getting to the feature in a timely manner while the setting sits around languishing. |
Closing in favor of #313. If you want this feature, please create a new issue as an enhancement request. Thanks |
#408 is tracking the feature request |
Environment data
VS Code version: 1.18.0, 1.17.2
Python Extension version: 0.8.0
Python Version: 2.7.14
OS and version: Fedora 26 (4.13.11-200.fc26.x86_64), GNOME Shell 3.24.3
Actual behavior
Nothing happens after, e.g., exceeding a line
Expected behavior
The line exceeding 80 chars gets underlined after a while
Steps to reproduce:
Logs
Output from
Python
output panelOutput from
Console window
(Help->Developer Tools menu)Additional info:
Config:
If I turn
lintOnSave
totrue
(which is the default, there's a bug in the docs - https://code.visualstudio.com/docs/python/linting), the issues in source code get properly marked on file save.The text was updated successfully, but these errors were encountered: