Describe the bug
Some messages produced by the type checker have logical locations; some have physical locations.
To Reproduce
- Set a breakpoint on the first line of method
translateCheckResults in RascalLanguageServices.java. This function processes the messages produced by the type checker.
- Launch a VS Code instance with the Rascal extension using the "Run Extension" launch configuration
- Open a test workspace and run
mvn clean
- Create the following modules:
// A.rsc
module A
import B;
str x = y;
// B.rsc
module B
public str y = "foo";
public int z = false;
- Trigger the type checker. The breakpoint will be hit. Inspect variable
messages. It will show two messages with a physical location.
- Add a space somewhere and trigger the type checker again. The breakpoint will be hit. Inspect variable
messages. It will show two messages with a physical location and one message with a logical location.
Describe the bug
Some messages produced by the type checker have logical locations; some have physical locations.
To Reproduce
translateCheckResultsinRascalLanguageServices.java. This function processes the messages produced by the type checker.mvn cleanmessages. It will show two messages with a physical location.messages. It will show two messages with a physical location and one message with a logical location.