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

[Bug]: Language Server crashes when opening a project with a large number of Ballerina types #42612

Open
nipunayf opened this issue Apr 22, 2024 · 1 comment
Labels
Fix/Crash All issues caused by NPE, CCE, etc Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug

Comments

@nipunayf
Copy link
Contributor

nipunayf commented Apr 22, 2024

Description

The LS crashes when trying to open the Ballerina Zuora module in VS Code. Although the server crashes without showing any error logs, it appears to be an OOM leading to its shutdown.

The program can be successfully built without encountering any issues. However, the LS crashes in the same for a new package that relies on the locally published Zuora module as a dependency.

Steps to Reproduce

Clone the following project and open the ballerina directory in VSCode.

https://github.com/ayeshLK/module-ballerinax-zuora/tree/openapi-spec

Affected Version(s)

Ballerina 2201.8.6 (Swan Lake Update 8)

OS, DB, other environment details and versions

OS: macOS 14.4.1 23E224
JDK: openjdk 17.0.8 2023-07-1

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@nipunayf nipunayf added Type/Bug Team/LanguageServer Language Server Implementation related issues. #Compiler Fix/Crash All issues caused by NPE, CCE, etc labels Apr 22, 2024
@nipunayf
Copy link
Contributor Author

nipunayf commented Apr 22, 2024

The server does not crash when the types.bal(https://github.com/ayeshLK/module-ballerinax-zuora/blob/openapi-spec/ballerina/types.bal) file is divided into four separate files, which can be used as a workaround for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix/Crash All issues caused by NPE, CCE, etc Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug
Projects
None yet
Development

No branches or pull requests

1 participant