neovim integration in vs code errors - neovim

I get these 2 errors the moment I open vscode. Neovim works from the terminal but I don't think it does in vscode. I have no idea why because I am a novice and I just started seriously getting into programming like 2 months ago so please bare with me, this is my first post. Thank you in advance!
MainController: Neovim spawn error: spawn /.../.../.config/nvim EACCES
MainController: Neovim was disconnected

try change the path to the executable programm, not the bin folder.
It fixed mine issue

Related

Vs Code, pylance stops for no reason

It starts and stops all the time.Highlighting and autocompletes goes missing.
I think something is forcing it to stop, then it autostarts again.
I reinstalled VScode a few times, tried reinstalling extensions.
Preferences-settings-extensions-python-> 'Language server' is 'Pylance'.
Python path is okay.
I use python 3.9.10 / VsCode 1.6.3.2 x64
If you can give me some advice, it will be appreciated. Thanks..

How To Fix VSCode: Exception has occurred: ReferenceError: closeDescriptionPopup is not defined

Not sure how this problem specifically occurred. I've been doing some googling trying to narrow down what exactly is going wrong as my project was fine a few days ago. When i attempt to debug my VSCODE project i'm presented with this error.
this is a picture of my launch.json file:
Also, this an error if it helps displayed in the debug console.
Things i've tried so far,
Rebooting the computer
Uninstalling and Reinstalling VSCODE as well as disabling extensions
Creating a new VSCODE Project to attempt to debug
Deleting the launch.json file and creating a new one
just delete the launch.json file and it will work again
After spending some time debugging I solved this problem by simply installing npm packages, I executed command npm i
Just make sure that your npm packages are all installed and none is failing.
Hopefully this helps you or someone with the same issue.
I've solve this problem.
Remove the launch.json file and do not replace it.
Just try to build with F5 button.
Start Debugging from within VSCode
run npm start from a separate terminal and wait for the server to start
refresh the page in your browser
My intuition is that this would create 2 instances of the server binding to the same port and cause a bunch of problems. I'm not sure why, but in my case it worked as expected and let me debug with breakpoints normally.
You don’t need to use the VS Code run button with Live Server. You just right-click the HTML file in explorer and use the menu option “Open with Live Server”.

My VS code keeps crashing when opening it

I have tried uninstalling and reinstalling it, but the problem did not dissappear. It seems that when I open the app, more than 20 windows open at the same time, causing the app to crash. Here is a screenshot:
I've searched on the internet for what else to do, but I didn't come across any solution.
The solution was to start VS Code from the command prompt with the following command:
code --disable-extensions --max-memory=12288mb
Then to close all open tabs and correctly exit VS Code without any open files.
Hopefully this helps someone!
I tried all the fixes above when my Ubuntu install of VS Code crashed repeatedly at startup. The only thing that worked for me was deleting the entire ~/.config/Code/Backups folder. Back it up first, just in case!
I had the same issue with the latest version of VSCODE. Then i tried installing "Downloads: Windows: User" one from https://code.visualstudio.com/updates/v1_52. It worked. I am not sure of the root cause.
I observed that after installing the extension 'Django Template Support' the VSCode started crashing.
I tried by installing the latest version of VSCode too. Still the VSCode did crash.
Once after uninstalling that extension, VSCode is working fine.
May be, we should note the change which has made the VScode to crash (though, it shouldn't, I believe.)

Ubuntu 20.04 WSL2 working moments ago but now I cannot access VSC

I set up Windows Terminal using Ubuntu 20.04 and it was working great. I was able to access Visual Studio Code until I began receiving errors. VSC is my bread-and-butter to coding through WSL2 so can anybody help me with this error? (I have not done any updates to VSC or Ubuntu 20.04. This just happened 30 minutes ago.)
My VSC error is this:
/c/Users/Owner/AppData/Local/Programs/Microsoft VS Code/bin/code: 61: /c/Users/Owner/AppData/Local/Programs/Microsoft VS Code/Code.exe: not found
I dug through the location of the code file of my computer and went to line 61 of the error of where it is coming from:
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$#"
exit $?
Would anybody know if anyone has experienced this issue? I would appreciate any help!
I restarted my computer and it seems to be working now. I always put my computer in Sleep so not sure if the system needs to be turned off. Hope this helps anyone out there.

Can't run python code through VS Code. Can't open file ptvsd_launcher.py [Errno 22] Invalid Argument

VSCode was working perfectly a few days ago before this started happening. Attempting to run any python code through VSCode (with or without debugging) Results in this error in the terminal
can't open file '"c:/Users/Rastus22/.vscode/extensions/ms-python.python-2019.5.17517/pythonFiles/ptvsd_launcher.py"': [Errno 22] Invalid argument
A little after the error shows I get a message telling me there was a timeout waiting for the debugger. There aren't any errors in the python itself, currently testing with a file that contains only a print statement. My only other extension is the Darkula theme.
I've tried reinstalling the Python extension and resetting the launch.json file as well as my settings.json file. I've also tried copying over a known good copy of launch and settings file from a different machine and had no luck.
I can't really seem to find anyone else online with the same issue either.
Downgrading to the 2019.4 fixed the issue completely. Thanks to Samuel Cooper for this answer.
Steps to downgrade:
Make sure the Python extension is installed.
Hit the "manage" button on the extension.
"Install another version"
Search for the version you want to move to. I downgraded to version 2019.4.12954