getcursor / cursor

The AI-powered code editor
https://cursor.sh
20.55k stars 1.38k forks source link

JS/TS Intellisense status loading #1500

Open anandpeethambarantp opened 2 weeks ago

anandpeethambarantp commented 2 weeks ago

Type: Bug

I don't know how to reproduce this issue. Its just one workspace behaving like this and not others. Its just loading, not getting completed.

VS Code version: Cursor 0.35.0 (5f9353ed8be369c4ac2b4d43596f5ff281746ec0, 2024-06-08T04:53:54.048Z) OS version: Darwin arm64 23.0.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|9, 6, 6| |Memory (System)|16.00GB (0.08GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (32) Extension|Author (truncated)|Version ---|---|--- jupyter-keymap|ms-|1.1.2 pyright|any|1.1.327 npm-dependancy-graph|Art|0.0.7 turbo-console-log|Cha|2.10.4 csharpier-vscode|csh|1.7.3 vscode-eslint|dba|3.0.8 gitlens|eam|15.1.0 prettier-vscode|esb|10.4.0 vscode-pull-request-github|Git|0.88.1 go|gol|0.41.4 todo-tree|Gru|0.0.226 rainbow-csv|mec|3.12.0 document|min|2.2.2 vscode-docker|ms-|1.29.1 csharp|ms-|2.33.17 vscode-dotnet-runtime|ms-|2.0.6 debugpy|ms-|2024.6.0 python|ms-|2023.22.1 vscode-pylance|ms-|2023.10.40 jupyter|ms-|2024.4.0 jupyter-renderers|ms-|1.0.18 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 remote-containers|ms-|0.327.0 vscode-typescript-next|ms-|5.6.20240616 prisma|Pri|5.15.0 r|REd|2.8.4 vscode-git-commit|rio|3.2.1 code-spell-checker|str|3.0.1 vscode-icons|vsc|12.8.0 fig|wit|0.0.7 JavaScriptSnippets|xab|1.8.0
miich43l commented 1 week ago

Just stumbled across this because I had the same issue where in one project Intellisense was loading forever. All other TS projects worked. (VSCode itself had the same issues as Cursor) Checked the TS versions for VSCode and was 5.4.5 and workspace version 4.9.5

workspace_and_vs_code_ts_version

Updated the TS Version in package.json from "typescript": "^4.9.3" to "typescript": "^5"

after doing a rm -rf node_modules/ package-lock.json followed by a npm install - Intellisense works again

just out of interest I reverted the version back to 4.9.3, removed the modules & packages.lock and did an npm install - Intellisense is still working so maybe just a rm -rf node_modules/ package-lock.json followed by a npm install solves the issue.

anandpeethambarantp commented 1 week ago

Hi @miich43l, Thank you for the comment. I'll give your method a try.