Visual Studio terminal crashes when executing a simple set instruction
Hi,
I'd like to report a really strange behavior of the Intersystems Lite Terminal after executing a simple ObjectScript instruction.
From the Intersystems Lite terminal, execute the following instructions:
- Set uniqueId = "12345678_1"
- Set uniqueId = $p(uniqueId,"_",1)_"_"_($p(uniqueId,"_",*)+1)
After executing the second instruction, the terminal closes without any error.
Even stranger, when the second instruction is executed with 2 instead of 1, it executes correctly:
- Set uniqueId = "12345678_1"
- Set uniqueId = $p(uniqueId,"_",1)_"_"_($p(uniqueId,"_",*)+2)
- Write uniqueId
12345678_3
Installed Versions
VS
Version: 1.105.1 (user setup)
Commit: 7d842fb85a0275a4a8e4d7e040d262
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100
Extensions
Identifier
intersystems-community.vscode-
Version
3.2.0
Identifier
intersystems-community.
Version
3.10.5
Does anyone have any ideas on how to get around this problem?
Regards
Rudy
Comments
JavaScript uses underscores as separators in (big)number literals.
<script>alert(1_234);</script> displays 1234
<script>alert(12_345_678_901_234_567_890_123n);</script> displays 12345678901234567890123
Maybe there is a quirk/problem in VS terminal...
With IRIS 2025.1.1 on Windows, I cannot reproduce your issue. Both sets of instructions execute normally.
VS Code Version: 1.105.1 (user setup)
Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.19045
ISC ObjectScript Extension 3.2.1-beta.1
ISC Server Manager 3.10.6-beta.3
ISC Language Server 2.8.0
I have indeed noticed the same thing. Thanks
thanks for your answer