I've encountered a similar issue several times with source code that was correctly saved and compiled using the "old" InterSystems Studio, but not with VS Code.
In my case, it turned out that certain lines of code were causing the saving process to fail. Specifically, I had to:
Add parentheses in conditional or loop statements when there's a dot (.) in the condition (e.g., if obj.myProperty = "something" → if (obj.myProperty = "something"))
In embedded SQL, when using INSERT in conjunction with INTO, I had to place INTO on a new line.
I've also noticed that this doesn't happen in the newest versions of IRIS.
Hi Matjaz,
I've encountered a similar issue several times with source code that was correctly saved and compiled using the "old" InterSystems Studio, but not with VS Code.
In my case, it turned out that certain lines of code were causing the saving process to fail.
Specifically, I had to:
.
) in the condition (e.g.,if obj.myProperty = "something"
→if (obj.myProperty = "something")
)INSERT
in conjunction withINTO
, I had to placeINTO
on a new line.I've also noticed that this doesn't happen in the newest versions of IRIS.
Hope this helps!
Simone