Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense infinitly loading #181953

Closed
cryptobredda opened this issue May 9, 2023 · 18 comments
Closed

Intellisense infinitly loading #181953

cryptobredda opened this issue May 9, 2023 · 18 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@cryptobredda
Copy link

Type: Bug

I can not use intellisense for autocomplete and auto import for my project. this is affecting the speed at which I work on which is causing me a lot of issues. Could you please look into this more and let me know what I am doing wrong and what settings do i have set wrong to fix this issue.

VS Code version: Code 1.78.1 (6a995c4, 2023-05-04T09:48:08.683Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: Yes

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.93GB (17.45GB free)
Process Argv --crash-reporter-id 24f91f23-3b20-4994-965a-5da2a9690562
Screen Reader no
VM 0%
Extensions (4)
Extension Author (truncated) Version
es7-react-js-snippets dsz 4.4.3
copilot Git 1.86.82
solidity Jua 0.0.155
vscode-typescript-next ms- 5.1.20230508
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30610679
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
6233i204:30730053
vsctsb:30705553
azdwalk:30721579
pythonms35:30701012
pythonfmttext:30731395
pythoncmvfstrcf:30731970
fixhidewlkth:30730051

@cryptobredda
Copy link
Author

cryptobredda commented May 9, 2023

Additional Information - This is all the steps I already tried that doesnt fix my issue.

  1. Disable unnecessary extensions: Some extensions may be causing the IntelliSense to load slowly. Try disabling any unnecessary extensions and see if the issue persists.

  2. Increase the memory limit: You can increase the memory limit of VS Code by adding the following line to your VS Code settings.json file:

    "javascript.memoryLimit": 8192
    

    This will increase the memory limit to 8 GB, which should help with IntelliSense performance.

  3. Disable unused features: You can also try disabling unused features in VS Code to improve performance. For example, you can disable code folding by adding the following line to your settings.json file:

    "editor.folding": false
    
  4. Clear the workspace cache: VS Code caches the IntelliSense data for your workspace, which can cause the loading loop issue. Try clearing the workspace cache by running the "Developer: Reload Window with Extensions Disabled" command from the Command Palette (Ctrl+Shift+P).

  5. Increase the TypeScript server timeout: If you're working with TypeScript, you can increase the server timeout by adding the following line to your settings.json file:

    "typescript.tsserver.maxTsServerIdleTime": 600000
    

    This will increase the server timeout to 10 minutes, which should help with IntelliSense performance.

@mjbvz
Copy link
Collaborator

mjbvz commented May 10, 2023

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

@mjbvz mjbvz added the info-needed Issue requires more information from poster label May 10, 2023
@cryptobredda
Copy link
Author

cryptobredda commented May 13, 2023

So I done further more invesitagion and I found that this error occurs mainly on folder location.

Its still slow with other projects but this one project it never loads properly.

The project folder do not contain the .Vscode folder (other projects have them)

the project folder mainly deals with a NextJS 12 and Express JS server so I dont think it should have any problems with that.

if you need further information please let me know.

I will keep updating you with the progress of this error.


Edit:

Using VS Code Insiders seems to be much faster and works good with the same project compared to standard VS code

@cryptobredda
Copy link
Author

Unfortunatily the issue isnt solved with VS Code Insiders, once I started to work in more complicated file paths it started to bug out again.

Reloading the window breifly fixes it but then it ends on an endless loop

@cryptobredda
Copy link
Author

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

It has been 5 days with no reply?

@cryptobredda
Copy link
Author

2 weeks and still waiting for a response guys, I have been strggling with this issue.....

@mjbvz
Copy link
Collaborator

mjbvz commented May 23, 2023

Please share an example project that demonstrates this issue

@cryptobredda
Copy link
Author

cryptobredda commented May 24, 2023

I have multiple projects in the parant folder that are in similar size to thsi one. I am not sure how to demonstrate it for you

This is the package.json for one project and its the Next JS project

{
  "name": "my-app",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@chakra-ui/color-mode": "<1.2.0",
    "@chakra-ui/icons": "^2.0.9",
    "@chakra-ui/react": "^1.8.8",
    "@coinbase/wallet-sdk": "^3.5.2",
    "@emotion/react": "^11.10.4",
    "@emotion/styled": "^11.10.4",
    "@ethersproject/units": "^5.7.0",
    "@toruslabs/torus-embed": "^1.32.0",
    "@vercel/analytics": "^0.1.5",
    "@walletconnect/web3-provider": "^1.8.0",
    "axios": "^1.3.4",
    "ethers": "^5.6.9",
    "fireworks-js": "^2.10.2",
    "framer-motion": "^6.5.1",
    "fs": "^0.0.1-security",
    "highlight.js": "^11.6.0",
    "keccak256": "^1.0.6",
    "merkletreejs": "^0.3.9",
    "moment-timezone": "^0.5.38",
    "next": "12.2.2",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-icons": "^4.4.0",
    "react-jazzicon": "^1.0.4",
    "react-tooltip": "^4.2.21",
    "react-usestateref": "^1.0.8",
    "toastify-js": "^1.12.0",
    "web3modal": "^1.9.9"
  },
  "devDependencies": {
    "eslint": "8.20.0",
    "eslint-config-next": "12.2.2",
    "highlight.js": "^11.6.0",
    "highlightjs-solidity": "^2.0.5"
  }
}

@mjbvz
Copy link
Collaborator

mjbvz commented May 24, 2023

@cryptobredda Try putting together a minimal project which demonstrates this issue. You can share this as a GitHub repo to help us investigate

@cryptobredda
Copy link
Author

cryptobredda commented May 26, 2023

@mjbvz

I have created a new Next JS App using

npx create-next-app

it is in the same folder as my other projects
it also have the same issue.

Repo:
https://github.com/cryptobredda/example

Image:

image

I do understand that "rfce" is part of an extension but I am also having the issue with simple imports.

like in this project I am using chakraUI and if I try to type a component that I want to auto import with intellisense it doesnt work.

I have included another image of the project folder so you can see what I am talking about:

image

@mjbvz
Copy link
Collaborator

mjbvz commented May 26, 2023

I do understand that "rfce" is part of an extension but I am also having the issue with simple imports.

What is supposed to happen?

Screenshot 2023-05-26 at 12 57 12 PM

like in this project I am using chakraUI and if I try to type a component that I want to auto import with intellisense it doesnt work.

Please share steps to reproduce that issue

@cryptobredda
Copy link
Author

cryptobredda commented May 27, 2023

@mjbvz

Screenshot 2023-05-26 at 12 57 12 PM

This is what suppose to happen

image

I have made a video to demo this so you can view it. Its 7 min long and its on Youtube. I do apologize for the slow talk, I wasnt really prepared for this. However this does demotstrate the entire problem.

https://youtu.be/lASZ6zwW-w4

@cryptobredda
Copy link
Author

@mjbvz

Hi, I am sending a message again hoping you could get me an update to this bug

@cryptobredda
Copy link
Author

@mjbvz @mojodna @doudou @mkhl

Could I please get a reply on this?

@mjbvz
Copy link
Collaborator

mjbvz commented Jun 5, 2023

Sorry I don't have time to watch a lengthy video. Can you capture the logs from when this happens:

  1. Set "typescript.tsserver.log": "verbose",
  2. Restart VS Code and reproduce the problem
  3. In VS Code, run the TypeScript: Open TS Server log command
  4. This should open a large log file called tsserver.log

⚠️Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this from when this happens:

@cryptobredda
Copy link
Author

Sorry I don't have time to watch a lengthy video. Can you capture the logs from when this happens:

  1. Set "typescript.tsserver.log": "verbose",
  2. Restart VS Code and reproduce the problem
  3. In VS Code, run the TypeScript: Open TS Server log command
  4. This should open a large log file called tsserver.log

⚠️Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this from when this happens:

Sorry for the long wait, I had a busy week. Could you please provide a private way for me to send this information? just for the side of procaution

@mjbvz
Copy link
Collaborator

mjbvz commented Jun 13, 2023

You can send the logs to matb at microsoft .com

@VSCodeTriageBot
Copy link
Collaborator

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Aug 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants