VS Code PowerShell intellisense has suddenly become very slow for me. It was working fine for a few days. I have uninstalled all extensions, except the one for PowerShell.
Here are the details about VS code.
Version: 1.28.2 (user setup)
Commit: 7f3ce96ff4729c91352ae6def877e59c561f4850
Date: 2018-10-17T00:23:51.859Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
Here are the user settings for PowerShell:
"powershell.bugReporting.project":
"https://github.com/PowerShell/vscode-powershell",
"powershell.codeFolding.enable": true,
"powershell.codeFormatting.alignPropertyValuePairs": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.codeFormatting.newLineAfterCloseBrace": true,
"powershell.codeFormatting.newLineAfterOpenBrace": true,
"powershell.codeFormatting.openBraceOnSameLine": true,
"powershell.codeFormatting.preset": "Custom",
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.debugging.createTemporaryIntegratedConsole": false,
"powershell.developer.bundledModulesPath": "",
"powershell.developer.editorServicesLogLevel": "Normal",
"powershell.developer.editorServicesWaitForDebugger": false,
"powershell.developer.featureFlags": [],
"powershell.developer.powerShellExeIsWindowsDevBuild": false,
"powershell.developer.powerShellExePath": "",
"powershell.enableProfileLoading": true, "powershell.helpCompletion":
"BlockComment", "powershell.integratedConsole.focusConsoleOnExecute":
true, "powershell.integratedConsole.showOnStartup": true,
"powershell.powerShellAdditionalExePaths": [],
"powershell.powerShellDefaultVersion": "",
"powershell.powerShellExePath": "",
"powershell.scriptAnalysis.enable": true,
"powershell.scriptAnalysis.settingsPath": "",
"powershell.startAutomatically": true, "powershell.useX86Host": false
Does anyone has suggestions?
Since reinstalling VSCode didn't help, it's probably some issue with powershell.
Few things to consider.
I used to experience some lagging with intellisense/ps loading due to some module folders were located on the network drive. I didn't find any better solution rather than copying all modules locally.
I had big issues with PS after upgrading from v3 to v5 on Win 7. Pretty much it stopped working. Downgrading back didn't help. Surprisingly it worked fine if I logged as different user, so I just deleted and recreated my profile and it helped. Log as different user and see if it work differently.
I use VSCode on my linux machine with powershell core (pwsh), as an ISE alternative. It works good, and I have same version on VSCode as you. Try to install powershell core on your machine and then switch VSCode to use it instead of 5.0
https://learn.microsoft.com/en-us/powershell/scripting/core-powershell/vscode/using-vscode?view=powershell-6#using-a-specific-installed-version-of-powershell
Related
I am trying to get PEP8-naming working on my VSCode (Version: 1.72.2 (Universal)) without luck.
I have flake8, isort and mypy enabled in my code and this all works as expected. I have installed pep8-naming (conda install -c conda-forge pep8-naming) and it shows in my flake8 version info:
flake8 --version
4.0.1 (mccabe: 0.7.0, naming: 0.13.2, pycodestyle: 2.8.0, pyflakes: 2.4.0) CPython 3.8.13 on Darwin
However, I am not seeing the errors for naming conventions showing in my VSCode editor.
I have the following set in my settings.json file
{
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.pycodestyleEnabled": true,
"python.linting.pycodestyleArgs": ["--max-line-length=120"]
}
What am I missing so as to be able to see (for instance) that variables are named in Camel case rather than lower case with underscores?
I have tried this without any luck.
I run Jupyter on a remote server via ssh inside VSCode. Everything works fine except that Jupyter does not create any checkpoints. However, it creates empty .ipynb_checkpoints folder.
If I start the browser version of Jupyter Notebook from the VSCode terminal, it saves checkpoints with no problems. I prefer the VSCode extension over regular Jupyter because it enables autocompletion and lots of other features. Still, I feel unsafe about not having an option to revert to a checkpoint.
Any suggestions on what might be wrong and how I could fix it?
VSCode version: 1.63.0
Jupyter Extension version: v2021.11.1001550889
settings.json
"remote.SSH.remotePlatform": {
"remote_server": "linux"
},
"terminal.integrated.inheritEnv": false,
"notebook.lineNumbers": "on",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"workbench.iconTheme": "material-icon-theme",
"window.autoDetectHighContrast": false,
"workbench.colorTheme": "Visual Studio Light",
"editor.fontSize": 15,
"notebook.output.textLineLimit": 100,
"breadcrumbs.enabled": false,
"checkpoints.addCheckpointOnSave": true,
"checkpoints.askForCheckpointName": false,
"jupyter.generateSVGPlots": true,
"files.autoSave": "onFocusChange"
}
Thank you for the help!
This is driving me crazy! I see solutions all over the web and I still can't get this to work. Here is my settings.json file:
{
"C_Cpp.updateChannel": "Insiders",
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"arduino.additionalUrls": "",
"arduino.path": "C:\\Program Files (x86)\\Arduino",
"arduino.commandPath": "arduino.exe",
"files.autoSave": "onWindowChange",
}
I am running on Windows 10 and Arduino is installed in:
C:\Program Files (x86)\Arduino
I have four executables there:
arduino.exe
arduino_debug.exe (I downloaded this for good measure!)
arduino-cli.exe
uninstall.exe
When I click "Select Programmer" in VSC, I get"
"Cannot find Arduino IDE. Please specify the "arduino.path" in the User Settings. Requires a restart after change.
I have restarted the IDE and still get the same problem.
I have rebooted the laptop.
I have tried uninstalling both VSC and Arduino.
The Arduino IDE works fine stand-alone.
Wow! I finally stumbled on these installation instructions:
https://nortronics.com.au/setting-up-visual-studio-code-for-arduino-programming/
This is what my .vscode/settings.json (you can find it in the left pane under .vscode in your project folder) now looks like:
{
"arduino.path": "C:\\Program Files (x86)\\Arduino",
"C_Cpp.intelliSenseEngineFallback": "Disabled",
"C_Cpp.intelliSenseEngine": "Tag Parser",
"arduino.enableUSBDetection": true,
}
Using version listed below. Have the experimental feature turned on, Debug button was there on the toolbar at 1 time now it's gone? Is anyone else using this feature yet?
"jupyter.experimental.debugging": true,
Version: 1.59.0-insider (user setup)
Commit: 50b3811fdc5b5c80ca516a2edfffedcbd464b033
Date: 2021-07-15T05:13:58.348Z
Electron: 13.1.6
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.19043
I had the same problem. I played a bit around and found out that ipykernel in version 6.2 or higher is necessary to get debugging running. I only had version 5.3.8 installed. Also I was a bit confused, because there is no debug symbol. The feature is called "Run by line". You can also have a lock at:
https://github.com/microsoft/vscode-jupyter/wiki/Setting-Up-Run-by-Line-and-Debugging-for-Notebooks
https://code.visualstudio.com/docs/python/jupyter-support-py#_debug-a-jupyter-notebook
As a workaround I exported my notebook to a python skript. There debugging was working as usual.
I'm going crazy, VSCode is giving me this error EVERYWHERE (including js files and .gitignore .dockerignore files, even for simple lines such as node_modules in .gitignore)
I need some ideas
my config file
{
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "One Monokai",
"vsicons.dontShowNewVersionMessage": true,
"editor.formatOnSave": true,
"editor.tabSize": 4,
"prettier.tabWidth": 4,
"editor.tabCompletion": "on",
"prettier.singleQuote": true,
"prettier.printWidth": 80,
"window.zoomLevel": 0,
"editor.acceptSuggestionOnEnter": "off",
"editor.minimap.enabled": false
}
My extensions are pretty standard
prettier
react snippets
docker
sass
eslint
some random themes
editor config
graphql
auto-import
This issue randomly appeared for me today as well.
This process worked to solve it on my system, although I don't know what actually caused the issue.
restart vscode
check for a vscode update
(optional) Restart system
If 1-3 don't work you can try
In the command palette run Extensions: Disable All Installed Extension
These steps worked for me when this issue started popping up after installing macOS 10.15 Catalina.
Reinstall node.js using nvm, e.g. nvm install 10 && nvm use 10 to install and use the latest node.js 10.x version (pick your preferred version)
Reinstall eslint via npm i -g eslint
Restart VS Code