-
Notifications
You must be signed in to change notification settings - Fork 763
[Bug]: Low performance in VSCode Extension in Windows #44095
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
Comments
We have tried to reproduce the issue on a Windows machine, and it is not reproducible from my side. In order to proceed further,
|
Shared
Setup the profiler and will get a snapshot when I encounter this again
Sure. will start back with clean cache |
@KavinduZoysa I was able to reproduce this. This seems to happen when one of the dependency cache is corrupted. In my case it was locally published cache. Shared the jps separately. |
We have analysed the shared JPS files. According to them, there was no clue of slowness on the LS. Once we run the LS based on the shared Since the LS is crashed at this moment, there were no suggestions, error highlighting, etc, at all. We will further analyse this error and handle, so as not to crash the LS. Edited: |
Since a bala file in the repository has crashed, LS is unable to compile the source. It throws an error at this point. Since the compilation fails, LS is unable to proceed, and because of that, LS features are not working. Furthermore, LS handles the error without crashing itself. Also I think we need to prevent adding invalid bala files to the repository. @hasithaa WDYT? |
@KavinduZoysa: Preventing the addition of invalid Bala files will fix the issue. However, there can be scenarios where Bala files get corrupted even when downloaded from Central. Therefore, the compiler API needs to handle this gracefully. @azinneera: Since the LS doesn't have control over invalid Bala files, can we handle this scenario gracefully from the compiler APIs? |
@hasithaa When the bala is downloaded, it is downloaded to a temporary location, and only if the download and the hash verification is successful, we copy it to the dedicated cache location. Corrupted/invalid @KavinduZoysa, can we debug further and see what exactly makes the bala invalid? |
@azinneera, at this point we expect to have la ist of source files in the bala path. But it is empty. |
Description
Code suggestions in the Ballerina VS Code extension are not shown up at all. Feels like typing in a notepad. :(
Also, error messages only show for lines I typed earlier — it doesn't seem to update properly with the latest changes.
Steps to Reproduce
Open https://github.com/niveathika/module-ballerinax-cdc/tree/dev and try to edit a util function.
Affected Version(s)
Ballerina 2201.12.3
OS, DB, other environment details and versions
No response
Related area
-> Other Area
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: