go to post Brett Saviano · Feb 26, 2024 Thanks for the information @Daniel Raderstrong. Can you please run the troubleshooting steps found in the docs and post the contents of the trace global here? That will help me identify the cause of your issue.
go to post Brett Saviano · Feb 23, 2024 @Daniel Raderstrong How are you running the debugger? What version of the vscode-objectscript extension do you have and what's the $ZV of your server?
go to post Brett Saviano · Feb 21, 2024 @Evan Gabhart No, you can't import .rtn files and we have no plans to add that. Other than the SMP, you can use the VS Code integrated terminal to open an IRS terminal, or the WebSocket Terminal to import the .rtn files. I would recommend using a different format for your exports though, like XML or UDL.
go to post Brett Saviano · Feb 9, 2024 Thanks for the screenshots. I've never seen that happen before. I just booted up my windows machine and tried to reproduce that behavior but couldn't. If you delete the src/index.csp file and then save src/goerke/index.csp, does src/index.csp re-appear? Do you see any errors or messages in the ObjectScript Output channel?
go to post Brett Saviano · Feb 9, 2024 I'm not sure what you mean by "it recreates the file in the root directory of the namespace". Can you post a screenshot? Also, can you describe in more detail what you're trying to test? We will be able to give better advice with more context.
go to post Brett Saviano · Feb 9, 2024 @Daniel Goerke What learning course/training steps are you following? Do you mean to be creating CSP files? CSP files need to be stored inside a web application so they can be served by the web server. They can't be created as standalone files without that context. Therefore, you need to have the CSP file in folders that tell VS Code what web application it goes it. For example, if you want to create mypage.csp in web application /csp/user, the path to the file inside your local workspace should be something like src/csp/user/mypage.csp. You may also find it easier to edit web application files directly on your IRIS server using server-side editing.
go to post Brett Saviano · Feb 9, 2024 Thanks for your feedback! In response, I've submitted Pull Request #1311 which removes the comment-continuation feature for ObjectScript comments (it's still enabled for class description /// comments). It also adds auto-closing of C-style block comments (e.g. typing /* automatically adds */ after the cursor). You can try this out by downloading and installing the latest beta version of the vscode-objectscript extension from GitHub, which can be found here.
go to post Brett Saviano · Feb 7, 2024 @Evgeny Shvarov This should work: Do ##class(%Studio.General).GetWebServerPort(,,,.url) Write url,"csp/sys/UtilHome.csp" Kill url
go to post Brett Saviano · Feb 1, 2024 @Norman W. Freeman If you upgrade to version 2023.3 or newer, you can use ##class(%RoutineMgr).OutOfDateDocuments() to check all documents in a namespace. You can use the various arguments to filter the documents that are checked (for example, to only check classes).
go to post Brett Saviano · Jan 29, 2024 Hi @Mathew Rimmington, thanks for following up with your solution! That is a creative way to solve the problem and I encourage you to submit your code as a Pull Request to the vscode-objectscript extension. It is a community tool so we would happy to include your code if it improves your experience. The contributing guide can be found here.
go to post Brett Saviano · Jan 25, 2024 Hi @Mathew Rimmington, this exact question was asked in a GitHub discussion a few weeks ago. To summarize my answer there, this isn't easy to add because the text that gets added on enter (besides indentation) is static. It acn't be generated from the regular expression used to match the previous line, so I couldn't dynamically add the correct number of dots. My recommendation is to use modern brace syntax instead of legacy dot syntax.
go to post Brett Saviano · Jan 24, 2024 @Nicki Vallentgoed You can convert the HttpResponse.Data into a %DynamicObject without using an intermediate stream: Set jsonob = ##class(%DynamicObject).%FromJSON(httprequest.HttpResponse.Data)
go to post Brett Saviano · Jan 23, 2024 @Evgeny Shvarov You can't use macros in a terminal so that's probably the cause.
go to post Brett Saviano · Jan 19, 2024 @Joseph Griffen ZWrite is going to output the internal format of the %Status value, which isn't that easy to parse visually. $SYSTEM.Status.DisplayError() will output the status text to the current device in a more readable format. USER>Write ##class(%Atelier.v1.Utils.General).ValidateDocName("project.prj",.sc) 0 USER>ZWrite sc sc="0 "_$lb($lb(16006,"project.prj",,,,,,,,$lb(,"USER",$lb("e^ValidateDocName+33^%apiSRC^2","e^ValidateDocName+1^%Atelier.v1.Utils.General.1^1","e^^^0"))))/* ERROR #16006: Document 'project.prj' name is invalid [ValidateDocName+33^%apiSRC:USER] */ USER>Do $SYSTEM.Status.DisplayError(sc) ERROR #16006: Document 'project.prj' name is invalid [ValidateDocName+33^%apiSRC:USER] If you need to store the status text in a variable you can use $SYSTEM.Status.GetErrorText().
go to post Brett Saviano · Jan 19, 2024 The list of supported file systems for your version (2023.1) can be found here.
go to post Brett Saviano · Jan 18, 2024 Sorry, I see that now! Have you checked your server connection information and made sure you have the correct host, port username and password?
go to post Brett Saviano · Jan 18, 2024 @Nimisha Joseph If you uninstalled Ensembe, what server are you trying to connect to?
go to post Brett Saviano · Jan 17, 2024 I just created a code-workspace file using your example above and I couldn't reproduce this is it possible that there's a .vscode/settings.json inside the "." folder that contains different objectscript.export settings? If so, those will take precedence. Folder-specific settings take precedence over workspace-specific settings, and workspace-specific take precdence over user-specific.
go to post Brett Saviano · Jan 17, 2024 @Mathew Rimmington Based on your description, I think that your setting for "objectscript.export.folder" should be "appname/src/database" instead of "src/database".
go to post Brett Saviano · Jan 17, 2024 The "Export Project Contents" command that you clicked is for exporting as individual UDL files in your workspace for editing with local source control. To export server documents in a single XML file, you an use the "Export Documents to XML File..." command that's documented here.