You are not logged in.

#1 2023-08-25 16:47:11

miomio
Member
Registered: 2016-01-17
Posts: 167

VSCodium intellisense broke

I installed from the AUR to machine 1 (plus vscodium-bin-marketplace then vscodium-bin-features) with no problems. Later, I installed to machine 2 and have noticed intellisense is broken in Python scripts. I am unable to find the difference between the two installations except for the fact the earlier installation is version 1.80 (from memory at time of writing this post) of VSCodium whereas the other on machine 2 is 1.81.1.

User settings.json has what I believe are the correct settings for intellisense (provided by pylance). I've search high and low to try to find the solution before posting. Do you have any suggestions? What logs etc should I provide you with to assist me locate the issue?

Thx

Offline

#2 2023-08-26 01:00:50

ZonicTrout
Member
Registered: 2023-07-20
Posts: 24

Re: VSCodium intellisense broke

First, are you trying to install extra/code, or aur/vscodium, or even the aur/visual-studio-code-bin? I would double check that you are installing the same package for both, as I have gotten confused before. Also, I would search for any mentions of vscode in your "pacman -Q" call, as you may have downloaded a language server without realizing. Also, could you provide some examples of the differences in intellisense? that would be really helpful if you could.
try:

        pacman -Q | grep vscode

Hope I can help!

Last edited by ZonicTrout (2023-08-26 01:01:54)

Offline

#3 2023-08-26 02:43:23

miomio
Member
Registered: 2016-01-17
Posts: 167

Re: VSCodium intellisense broke

ZonicTrout wrote:

First, are you trying to install extra/code, or aur/vscodium, or even the aur/visual-studio-code-bin? I would double check that you are installing the same package for both, as I have gotten confused before. Also, I would search for any mentions of vscode in your "pacman -Q" call, as you may have downloaded a language server without realizing. Also, could you provide some examples of the differences in intellisense? that would be really helpful if you could.
try:

        pacman -Q | grep vscode

Hope I can help!

I've installed aur/vscodium-bin, twice (machine 1 and machine 2). Same package (more recent commit on machine 2). Also followed by aur/vscodium-bin-marketplace and aur/vscodium-bin-features.

The issue is I do not have any dynamic suggestions (also nothing when I press `ctrl + space`) , so for example, if I type `imp` on machine 1 intellisense suggests `import` whereas this is does not occur on machine 2. Nowhere in my py scripts on machine 2. One other difference between py scripts on machine 1 and 2 is machine 1 has better syntax highlighting than on machine 2. I think it is correlated with intellisense not functioning.

If you ask me for any logs I'll take a look.

As requested:

pacman -Q | grep vscode | wc -l
0

Offline

#4 2023-08-26 03:11:53

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 713

Re: VSCodium intellisense broke

@miomio, have you installed the Python vscode extension on machine 2?

Offline

#5 2023-08-26 03:30:52

miomio
Member
Registered: 2016-01-17
Posts: 167

Re: VSCodium intellisense broke

@bulletmark yes python and pylance extensions on both machines.

Offline

#6 2023-08-26 04:33:08

miomio
Member
Registered: 2016-01-17
Posts: 167

Re: VSCodium intellisense broke

Also, should add, machine 1 shows symbols in `outline` pane, whereas machine 2 does not.

Offline

#7 2023-08-26 04:40:16

ZonicTrout
Member
Registered: 2023-07-20
Posts: 24

Re: VSCodium intellisense broke

@miomio Sorry I'm taking so long to respond, I'm trying to replicate the issue and I think i've succeeded. Unfortunately, I don't have a lot of time tonight, as it's almost 10 pm and I need to get some sleep. I'll be back in the morning, sorry I couldn't help much today!

Offline

#8 2023-08-26 05:43:36

ZonicTrout
Member
Registered: 2023-07-20
Posts: 24

Re: VSCodium intellisense broke

Scratch that, Try uninstalling pylance (it is apparently unsupported in FOSS projects idk) and install the "Python(with jedi language server)" extension (it's also probrably better to disable all your other extentions to make sure they don't mess with it). Then after a system update, install the pylint package with "sudo pacman -S extra/python-pylint". Finally, reload vscodium and it should all be in order. If not, please say so and we can try other solutions.
I hope this solved your issue!

this is where I found out about Jedi and pyLances incompatibility:
https://stackoverflow.com/questions/753 … -to-vscode

Offline

#9 2023-08-26 15:13:16

miomio
Member
Registered: 2016-01-17
Posts: 167

Re: VSCodium intellisense broke

@ZonicTrout The screenshot provided in that SO post is exactly the syntax highlighting difference I described. I'm certain you have probably located the solution. So thnx for replying with it!

But I am now side-tracked on a new problem... In an excruciatingly irritating stubby-fingered moment after my last post, I was trying to identify why machine 1 has Pylance working given the same configuration is present on both machines. I want to know what I did different on machine 1. After changing a string in `product.json` on machine 2 and reloading VSCodium, it created a new directory under ~/.config. I then intended to move and rename my previous ~/.VSCodium dir to the string of the new one, but in doing this I issued a `rm -rf ~` in my home directory and now I have a more important issue to see if I can resolve which is to recover my last two days of code that I didn't push to machine 1!

I will come back at a later time depending on how quickly I figure recovery is impossible, to complete this thread...

Offline

#10 2023-08-26 15:53:04

ZonicTrout
Member
Registered: 2023-07-20
Posts: 24

Re: VSCodium intellisense broke

I found some links that may help in your recovery (I'm assuming you are using ext4):
https://recoverit.wondershare.com/file- … -ext4.html
Also:
https://forum.level1techs.com/t/acciden … d/182751/7

It really sucks that happened, I hope you can recover it quickly and easily
Good luck!

Offline

#11 2023-08-30 19:35:06

miomio
Member
Registered: 2016-01-17
Posts: 167

Re: VSCodium intellisense broke

@ZonicTrout back to test solutions (have replaced the 40gig of erased data I obliterated in my fat finger mistake). I'm keen to compare my installation on machine 1 and 2 to see what is different because pylance is definitely working on machine 1. I also cannot locate the "Python with jedi language server" extension in the extension list of machine 2. Besides wasn't Jedi (or its use in settings.json) abandoned or am I thinking of something else?

EDIT:

What is the guy/gal in those post suggesting https://stackoverflow.com/a/76227927 ? What VS binaries are used?

Last edited by miomio (2023-08-30 19:40:21)

Offline

#12 2023-09-01 03:46:51

ZonicTrout
Member
Registered: 2023-07-20
Posts: 24

Re: VSCodium intellisense broke

First, I would double check that you install the aur/vscodium-bin-marketplace and aur/vscodium-bin-features packages (wasn't sure if they were uninstalled) also, could you send a screenshot of the marketplace?
One more thing to look at, https://github.com/pappasam/jedi-language-server

For that second question, they used the aur/visual-studio-code-bin package from microsoft. (You could use this to solve your problems if you are willing to swap from codium NOTE: They have the same codebase, but one pylance works automagically with, and the other needs tinkering):
https://aur.archlinux.org/packages/visu … o-code-bin

Sorry I was late answering this, I kinda forgot about it and just saw the email/notification
Hope this helps!

Last edited by ZonicTrout (2023-09-01 03:48:33)

Offline

Board footer

Powered by FluxBB