ericglau / cairo-ls

Cairo Language Server

Home Page:https://marketplace.visualstudio.com/items?itemName=ericglau.cairo-ls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pop up red underline all the time

0xKarl98 opened this issue · comments

when I enable cairo ls extension with another extension called cairo syntax support extension , it pops red underline all the time . It disappears when I disabled this extension .

These extensions should be able to work together.

Did you follow the steps under the Setup section of https://github.com/ericglau/cairo-ls/blob/main/VSCODE.md#setup? Particularly, do you have a Python virtual env in either env/bin/activate or ~/cairo_venv/bin/activate?

Can you go to Cairo LS in the Output tab at the bottom of VS Code, and provide the logs? For example:
cairolsoutput

I don't use the cairo hint support extension now , and instead follow the instructions :
image
And it worked , both starknet-compile found and have hints when coding

Sounds like it is working for you, so I will close this issue. Feel free to comment or reopen if you have further concerns.

Just to note, if you are using a custom venv directory, you can customize the settings in the VS Code preferences under Extensions > Cairo LS. For example, if you are not using Nile, you can disable "Nile Use Venv" and enable "Use Venv", then customize the directory in the "Venv Command" if needed:

screenshot