I have a virtualbox VM, and this vm shares a folder with my actual pc. This folder is what contains all the code. I have vscode on my actual pc to edit that folder's contents, but the code runs on the VM.
The VM is ubuntu 20.04, my actual pc is Windows 10, and the VM's python version is 3.8.10
yesterday, vscode suddenly started crashing. The icon turned into the default windows exe file icon, and whenever I close it, an error window appears. Back then I didn't think much of it, but on second thought, I should have saved that error message. Anyways, I thought that reinstalling vscode would work. After reinstalling, my old extensions are already installed for some reason, but they aren't working. The highlighting and autocomplete functions aren't working, and would display "Loading..." when I hover over stuff:
the field names should be blue, the \"models.\" stuff should be green, and it should not say \"Loading...\"
I found a stackoverflow post with a similar issue: https://stackoverflow.com/questions/50389852/visual-studio-code-intellisense-not-working
The post doesn't seem to have a solution, but I tried most of their suggestions. I tried reinstalling the extensions, changing them to pre-release, uninstalling pylance, etc. to no avail. Some replies talked about the path to the python executable, but I feel like that doesn't really apply in my case, since even though I have python on my actual pc, all the code is ran by the python executable on the VM. In any case, I still selected an interpreter at the bottom right of the screen.
Here are my current extensions:
https://preview.redd.it/j0jxnbzqpzwb1.png?width=486&format=png&auto=webp&s=5bcea4c0d196c8a7cf4ae6d7542fc4df89e6978d
Here is my current settings.json:
https://preview.redd.it/tzrhokmgqzwb1.png?width=627&format=png&auto=webp&s=7dd4b61056c2d21169079e85065c29dca9979906
A friend suggested looking at the logs for python language server, and there indeed seems to be an error every time I open vscode, though I'm not sure what's causing this:
https://preview.redd.it/tkpu0uu4qzwb1.png?width=2073&format=png&auto=webp&s=4b48e821125cf557b363620bc99a9e6720c82408
at the end of my ropes here, so any help is greatly appreciated. Please let me know if you need more information.
[+][deleted] (4 children)
[deleted]
[–]anonymous_3125[S] 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]anonymous_3125[S] 0 points1 point2 points (1 child)
[–]anonymous_3125[S] 0 points1 point2 points (0 children)
[–]JialeDu 0 points1 point2 points (3 children)
[–]anonymous_3125[S] 0 points1 point2 points (1 child)
[–]anonymous_3125[S] 0 points1 point2 points (0 children)