-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
v 0.2.0 broken on windows 11 vscode 1.94.2, unlimited loading or stuck #23
Comments
^^ Same on Mac OS for this. Had to uninstall the plugin 😢 |
@rylanharper for now you can just choose "Install another version" options when clicking gear icon, and pick 0.18.0 |
Can anyone share a reproduction? /cc @Donovan-Ye are you aware of this? Could you help to take a look? Thank you |
I got same problem too |
1 similar comment
I got same problem too |
👌 I am looking at this issue now. |
@rylanharper Could you please provide a minimal reproduction in MacOS? I am unable to replicate this issue on my Mac with MacOS 14.2 and VSCode 1.95.0. I will attempt to downgrade my VSCode version to resolve it. |
After downgrading vscode to version 1.94.2 on my macOS, I am still unable to reproduce the issue with plugin v0.2.0 and vitesse... |
Fyi I'm using nuxt 3, but currently on holiday, not with my machine |
I will try again later with more complex projects. |
For some reason, now that I have re-installed the plugin, I'm not getting the unlimited loading like I was (even though I'm working on the same project).. Trying to replicate this again.. Also, what do you need for a reproduction with a vscode plugin? I've only ever had to create reproductions via Stackblitz before. |
After trying several times, I discovered that when I reload VSCode and use command+click to go to the definition, it sometimes shows "loading progress" under the tab. This happens because TypeScript needs time to resolve the code in my cases. But rarely encountered. For the minimal reproduction, I think which is the simplest code that consistently triggers the bug. |
Same on my Mac |
@dtrongphuc Can you find which plugin or process is loading? and you can try reinstalling the plugin to see if that fixes it. |
I can somewhat confirm this since, my project is right now considerably minimal |
Could you please share your code with me so I can investigate further the issue? with github, sandbox or any other ways. |
@Donovan-Ye This issue occasionally appears around 30 minutes to 1 hour after I start working in VSCode. In my case, I'm working on a file with several components, and Just disable the extension, and I haven't seen this issue again. ![]() ![]() |
It seems to be a race condition issue. Assume we trigger First, set To repro it, we can add a delay manually(This also shows that the problem usually occurs on machines with worse performance): function sleep(ms: number) {
return new Promise(res => setTimeout(res, ms))
} Add the code here: https://github.com/antfu/vscode-goto-alias/blob/main/src/index.ts#L48 triggerPos = position
console.log('hi') // for test
await sleep(500) Use any code like: const one = 1
const two = 2 Hold down ctrl and move the mouse back and forth between the two of them. On my computer this can stably reproduce the issue. To fix it, I think use |
really sorry this project is internal only, I also can confirm other people reply about high CPU usage after the infinite loading start |
Excellent! I will give it a try and make the necessary corrections as soon as possible. |
@s3xysteak Thank you for your inspiration! It was indeed caused by a race condition. Initially, I attempted to add a WeakSet. However, if it is not cleaned properly, subsequent attempts to control+click on the definition will fail to navigate to the intended location. And I found even if the |
Please upgrade to version 0.2.1. If the issue still happens, please respond here~ |
Now works better, there is no stuck at all but with a new problem on my side. Sometimes it perfectly goes to the definition, but sometimes it goes to It's unimportant, but I just put it here for your information. |
ok~ I will fix it later. |
Thanks a lot @Donovan-Ye it really improves my coding experience with Nuxt, cheers 🥂 |
Describe the bug
Now there is a loading bar moving just below the tab, everything looks just fine.
But nope, IntelliSense is not working after that
Reproduction
go to a component, close, go to same component again
System Info
Used Package Manager
pnpm
Validations
Contributions
The text was updated successfully, but these errors were encountered: