[Bug]: Ambiguous compiler error when instantiating a class that does not exist #42705
Labels
Area/CodeAnalysis
Data flow , Code and Closure analysis related issues #Compiler
Crash
All issues caused by NPE, CCE, etc
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
userCategory/Compilation
Description
When a class is instantiated with the
new
keyword, if you give a class that does not exist, the thrown compiler error is vague and causes a Bad Sad error. The project folder has a red dot marked on VS Code without an indication as to which file the error is stemming from. The resulting compiler error also points to the first line, first column of thebal
file.Here, note that the class
db
does not exist.Steps to Reproduce
Affected Version(s)
Ballerina Swan Lake Update 09
OS, DB, other environment details and versions
OS: Ubuntu 22.04.4 LTS
VS Code Version: 1.88.1
Ballerina VS Code Extension: v4.6.0
Related area
-> Compilation
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: