go to post Evgeny Shvarov · May 20, 2023 Yes, this will work. But you also need to +1 for the "top" of the array to indicate the amount of params. I'd do the following: set arr($I(arr))=value in this case $I will increment the value at arr as arr=arr+1, and return it to let you enter the value of a new param
go to post Evgeny Shvarov · May 20, 2023 They are "special" :) and called locals for variables and globals for persisted variables. in case if you are in debug you can always print out the array with zwrite array_name. E.g. in your case: USER>zw args will print out all the data it contains. useful for understanding and debugging.
go to post Evgeny Shvarov · May 18, 2023 Please, give VSCode a try. Regarding of extensions, you can give students a repository with .vscode/extensions.json, that will already contain examples. E.g. here is how my extensions.json looks like: { "recommendations": [ "eamodio.gitlens", "georgejames.gjlocate", "github.copilot", "intersystems-community.servermanager", "intersystems-community.sqltools-intersystems-driver", "intersystems-community.vscode-objectscript", "intersystems.language-server", "mohsen1.prettify-json", "ms-azuretools.vscode-docker", "ms-python.python", "ms-python.vscode-pylance", "ms-vscode-remote.remote-containers" ] } This will not install extensions automatically, but they will be shown as recommended for the workspace, like that: Here is the template they can start from and here is an example extensions.json file.
go to post Evgeny Shvarov · May 16, 2023 thank you, @Pravin Barton ! Any feedback and issues are welcome! And kudos to @Gevorg Arutiunian who introduced it!
go to post Evgeny Shvarov · May 16, 2023 Thanks Brett! I will add the support of: Docker Git source control Github/Gitlub interactive plugins Embedded Python Co-pilot (when VScode writes ObjectScript for you instead of you) Full-functional IRIS Terminal And options to use 3rd-party plugins, e.g. from George James, @John Murray mentioned earlier.
go to post Evgeny Shvarov · May 16, 2023 Thanks @Michael Angeleri ! Do you plan to write a similar article related to Visual Studio Code? Just connecting it to the recent announcement.
go to post Evgeny Shvarov · May 16, 2023 What is the benefit of exporting to XML vs exporting to CLS?
go to post Evgeny Shvarov · May 15, 2023 Thanks Tim! How do you debug a particular unit test in VSCode?
go to post Evgeny Shvarov · May 14, 2023 @Alex Woodhead , do you know by a chance why unittest methods are instance methods but not classmethods? Could it be converted to classmethods or provided the option to do that?
go to post Evgeny Shvarov · May 14, 2023 In fact there is a handy way to run all the tests via: zpm "test module-name" But, I'd love to see debugging of it
go to post Evgeny Shvarov · May 14, 2023 Thanks Alex. See the following: USER>Do ##class(%UnitTest.Manager).DebugRunTestCase("", "dc.irisbi.unittests.TestBI", "", "TestPivots") (root) begins ...LogStateStatus:0:Finding directories: ERROR #5007: Directory name '/usr/irissys/mgr/user/u:/internal/testing/unit_tests/' is invalid <<==== **FAILED** (root)::
go to post Evgeny Shvarov · May 12, 2023 Hi @Mikko Taittonen! Why would you need XML export for classes/routines? Why not UDL? UDL is much more readable?