How to make linter show more messages? - visual-studio-code

i've just setup default pylint linter in vscode but i do not get for example messages about docstrings. Maybe i missing also some other notifications from linter.
https://code.visualstudio.com/docs/languages/python#_linting
Screnshoot from vscode documentation showing linter message
Where can i chose which messages to enable and which to disable? I've tried looking at settings without success.

Well, i found solution.
Have to add args in Settings > Python › Linting: Pylint Args
https://code.visualstudio.com/docs/python/linting#_default-pylint-rules
For now I enabled all messages
--enable=all
Will experiment later

Related

How to enable/disable particular pylint messages in VSC?

I wanted to turn off the messages in VSC about using f-strings in logging messages so I found this which says I need to enable logging-not-lazy and disable logging-fstring-interpolation.
I didn't have a pylint extension in my VSC yet it was still linting my files so I have no idea how to actually enable and disable the above messages. I can easily find how to enable and disable all pylinting but I'm struggling find how to enable and disable selectively.
You should be able to open a project settings file and add this line to enable or disable certain messages:
pylint.fstring: enable/disable
Try this "pylint.lint.disable": ["logging-fstring-interpolation"]

JSON Settings editor in JupyterLab not working?

I recently updated python to the latest version 3.10.5 on my Windows 10 desktop using pyenv-win. Everything went fine, except when I launched jupyter lab and found out I can't access the JSON settings editor anymore. I was following the same procedure as always:
Launching jupyterlab from the terminal using the command jupyter lab
Going to the settings menu and choosing Advanced Settings Editor
The settings editor GUI is opened as always and I can change settings through the UI, but I prefer using the JSON settings file.
On the top right of the settings editor there is a button to open the JSON Settings Editor. I click it and nothing happens. This button doesn't do anything. it used to open a text editor with all the JSON settings files. Now it simply does nothing.
I tried reinstalling jupyter lab completly, including removing every custom extension and reseting all setting to the default, and it didn't help. The JSON Settings Editor button still doesn't do anything.
Can anyone explain to me why this happens and how I can fix this?
This is a bug in the latest JupyterLab release v3.4.4. I have reproduced it on 3.4.4 and opened a pull request to fix it: jupyterlab#12892. The fix should be included in the next patch release. In the meantime you can downgrade to 3.4.3 which is not affected.
Thank you for highlighting it (next time if it looks like a bug feel welcome to report directly at https://github.com/jupyterlab/jupyterlab/issues).
Edit: JupyterLab 3.4.5 is now released. Please upgrade using your package manager to get the fix.

How to show all (-Wall) warnings in VSCode

I am using Visual Studio Code with the C/C++ extension. IntelliSense shows some errors but definitely not all of them, I tried settings the following setting:
"C_Cpp.default.compilerArgs": ["${default}", "-Wall"]
But is has no effect. The only thing that's some improvement is adding a build task: when I run it the warnings and errors it generates are displayed inline in VSCode. This workaround is still suboptimal: I need to build to get the errors while I would like to get as soon as I finish typing them (like it already is the case for other errors both in VSCode and other editors I know).
How can I fix this issue ?

ESLint is not running because the deprecated setting 'eslint.enable' is set to false. Remove the setting and use the extension disablement feature

ESLint is not working on my React project, and it keep showing below error even I reinstall vs code(version:1.52.1)
But I have another computer without any problem.
I was wondering if there are any extensions interfere with each other,
so I removed some extensions and still not working.
Here are the rest.
Open Code > Preferences > Settings
Search keyword "eslint", and enable "Always show the ESlint status bar item."
And make sure ESlint is running at bottom right.
My issue was that the settings file of the project itself (.vscode/settings.json) had the setting "eslint.enable": false, in it, for some reason. Removing that fixed the issue for me.

Vscode interfering with npm GitHub install

Today npm started to act up when I executed npm i <github repo> inside a VSCode terminal.
The action was interrupted by a VSCode popup window
"Image: The extension GitHub wants to sign in using GitHub."
I [Cancel]'ed that popup, but npm still hung.
This time two popups occurred in vscode asking me for username and password.Image: VSCode input dialogues for username and password
I [ESC][ESC]'ed out of those, but the same thing happened a second time.
I avoided that too by doing [Cancel][ESC][ESC] again.
Despite my actions to "ignore" the interruption, the GitHub library actually got installed (Hurray).
Retrying the same install in a terminal outside VSCode, did not show the same interruption.
Does anybody know how I can get rid of this annoying interference from VSCode?
It should be noted that there are no GitHub extension showing in the VSCode extension list.
Is there some internal GitHub extention in VSCode?
I already have perfectly good SSH-key credentials for GitHub that works well with npm outside VSCode. I do not see why I should spread my credentials to VSCode as well.
Regards,
Erik
VSCode 1.48.2,
Ubuntu 18.04.5 LTS
I had this problem too, and only found suggestion of setting
"github.gitAuthentication": false,
This stopped the first popup you describe, but I could still not suppress the second Git username and password dialog. I've found that to stop that, it is also necessary to set:
"git.terminalAuthentication": false,
Note: The integrated terminal will need to be exited/restarted for this to take effect.