Hi Community,
We're pleased to invite you to the upcoming webinar in Hebrew:
👉VS Code - Beyond the Basics 👈
📅 Date & time: February 6th, 3:00 PM IDT
VSCode is a short name form for a popular cross-platform editor VisualStudio Code from Microsoft.
Hi Community,
We're pleased to invite you to the upcoming webinar in Hebrew:
👉VS Code - Beyond the Basics 👈
Hello dear developers,
I am currently doing an internship and learning about InterSystems IRIS and ObjectScript and have downloaded and installed the community version of IRIS.
I have not made any changes in the Management Portal.
In Visual Studio Code I have loaded the InterSystems ObjectScript Extension Pack.
If I now want to compile a file, VSC throws an error:
"ERROR #16006: Document name 'x.csp' is invalid"

The name of the file is "index.csp"
This error also appears when I try to compile other files.
I have noticed that the first 4 characters of the name are always missing.
Hi community.
Yes, I know that there is other question "VS Code - debugging doesn't work" that is the same issue, but my IRIS instance is not using IIS.
Some times ago, I could debug without problems, but after some updates of Visual Studio, I get the following error
Failed to start the debug session. Check that the Intersystems server's web server supports WebSockets
I've activated the WebSocket protocol in the server (Windows Server 2019) but it still doesn't work.
The IRIS instance is not using IIS, I think it is using the Apache by default.
Do I need to do anything in special?
The launch.
Hey Community,
Watch this video to learn how to use terminal aliases for InterSystems IRIS and also how to set it up with your Docker Developer Environment:
⏯ InterSystems Terminal Aliases and How To Have It In Docker Environment
אתם משתמשים כבר ב-VS Code עם שרת InterSystems או שרק עכשיו מתחילים להשתמש?
אנחנו קוראים לכל מפתחי הקהילה שלנו להצטרף לוובינר הבא (בעברית!) שבו נעסוק בכל הנושאים היותר מתקדמים בעבודה עם VS Code.
לרישום ומידע:
https://community.intersystems.com/post/hebrew-webinar-vs-code-beyond-b…
ואם פספסתם את הוובינר הראשון בנושא VS Code למתחילים, זה הזמן להשלים פערים:
In VS Code using the InterSystems ObjectScript extensions, I'd like the indentation applied to match that of IRIS Studio. Specifically for comments and dot syntax, I'd like pressing enter (carriage return) to preserve the current dot depth and same comment beginning.
In IRIS Studio after changing the indentation settings to custom using " \t.
In VSCode using the InterSystems extensions, I now have an almost working environment where routines can be created or modified on disk and these are pushed to the developer's IRIS instance.
One issue I'm finding whilst testing is that if I rename or delete a routine from disk, the change isn't pushed to IRIS and I can't work out how to make this happen.
This means that a developer can have renamed or deleted a file on disk, but can still call functions within the renamed/deleted routine within the IRIS instance and not experience any NOROUTINE errors.
The company I work for have a repository for one of our products which already contains both InterSystems and non-InterSystems source code. I'm in the process of trying to migrate us over to using VSCode to edit the InterSystems source but am stuck on some issues surrounding the files on disk and the routines in the IRIS instance.
The folder structure inside the repo is \appname\src\database. Directly underneath the database folder is all of our InterSystems source code. If I add a new routine to the root of the database folder called ROUTINEA.
When using VS Code to develop with Object Script, the Server Credentials prompt for connecting to the IRIS instance is happy accept a blank for UnknownUser. See screen shot:
.png)
From here VS Code happily connects to the IRIS instance using unauthenticated access. But the standard VS Code "Go To Definition" appears to do nothing. Whilst looking through the documentation I found that in the Language Server extension, there is a setting to output verbose trace details.
Hi,
I'm trying to access to my datas stored in a RecordMap from SQLAlchemy, and I need to access to any tables already created before using SQLAlchemy.
Here is some part of my code :
TestBase:
classTestBase(DeclarativeBase)Engine creation and entities binding :
bases = {
"TEST"create_engine_and_sessionMy RecordMap entity :
class"extend_existing"Each part of my code are in different files, the "User_BastideRecord.
In the wew versions of IRIS the Studio is going to be deprecated. In the Studio when editing classes there is an option to add information at package level, with the option "Package Information" that shows this dialog:
In VSCode there is the option to add/edit this package information? If no, how can one add/edit this information without the Studio?
Thanks.
Occasionally, in VSCode, compile errors stop displaying. I'll be getting errors on compile all along (expected, and it compiles while saving using CTRL+S), until they'll suddenly stop. I haven't found any solution, including restarting VSCode and restarting my user session in Fedora. I'm running IRIS locally on Fedora and running VSCode also on the same machine. The only solution I've found is to restart IRIS. It's a solo dev environment and relatively small, so restarting isn't anything but an annoyance.
Are there any known bugs around this or any other solutions?
As first announced in May, and after many presentations and robust discussions at Global Summit 2023, we are continuing with the plans to deprecate InterSystems Studio (deprecated designates a feature or technology that InterSystems no longer actively develops, and for which better options exist).
InterSystems Studio was deprecated in 2023.2 but will continue to ship with versions 2023.3 and 2024.1. The latter will be the last release that includes Studio as part of the Windows kit, and it will be the only version that allows connections to future versions of InterSystems IRIS.
Using VSCode in a team.
Classes are edited locally and then saved to server.
Sometimes if we save a change to a class the "version on the server" does not happen or does not function properly and the class gets overwritten.
.png)
All the intersystems extensions are updated.
objectscript.overwriteServerChanges is false
This has the potential for serious issues if it happens in a persistent class, but it is difficult to reliably recreate.
1. Is there a command to do the check manually( without saving)?
2. Is there a some setting I can change to help with this?
import os
# Get environment variables
db_host = os.getenv('DB_HOST')
db_port = os.getenv('DB_PORT')
db_namespace = os.getenv('DB_NAMESPACE')
db_username = os.getenv('DB_USERNAME')
db_password = os.getenv('DB_PASSWORD')
# Create a database connection
conn = irisnative.createConnection(db_host, db_port, db_namespace, db_username, db_password)
# Create an IRIS instance from this connection
iris_native = irisnative.createIris(conn)
status = iris_native.classMethodValue('%SYSTEM.OBJ', 'Load', 'Production.cls', 'ck')
if status == 1:
print("The Production.cls file was compiled successfully.
When you use VS Code to edit source code, the settings model allows you to specify folder-specific values for some settings by using a settings.json file located in a .vscode sub-folder of the workspace root folder. A value set here takes precedence over one from your personal settings when you are working within that workspace root folder.
If you use an isfs-type workspace to operate directly in a namespace on a server, you first need to configure that server to support a special .vscode folder for each of its namespaces, present and future.
Does anybody know if there is a wizard to create SOAP client/server web services for IRIS from VS Code? I would like to not use Studio anymore but for SOAP web services looks like there is no alternative in VSCode.
Thank you in advance!
Until a couple of days ago the most downloaded bookmark extension for VS Code, Bookmarks by Alessandro Fragnani, wasn't able to handle the isfs file references that the InterSystems ObjectScript extension uses when you are operating in a Studio-like way and editing classes & routines directly in a namespace.
In support of our efforts at George James Software to facilitate migration from Studio I raised the issue with Alessandro and helped him resolve the incompatibility.
Are you preparing to use VS code for the first time? Just make sure you have enough privileges.
Have you defined your Iris server in your VS Code settings, and still get the following error?

VS Code accesses Iris/HealthConnect using the web application /api/atelier. If you do not have permission (i.e. you are using an LDAP user to connect and the web application is not configured to support LDAP), this is the reason why you couldn't connect.
you will also notice a 'Login Failure' entry in the audit database, with the reason for it.
When we add a new class in VSCode, the name automatically is set to <Folder>.<Filename>.
Because we are doing interoperability, we remove the default and type "interop" to get assistance on creating the class. This works fine on some machines, however on others it generates:
/// DescriptionClassExtendsSo it uses the full pathname instead of Test.MyProd.
I guess it is a setting somewhere (settings.json?), but how can this be fixed/what is the setting that controls this?
Hi All,
is there any way how to hide or remove storage "Histogram" section in the file with persistent class definition, but keep the data both in globals and sql table?
The reason is that we use on-premise version control system and since the data is sensitive, it cannot be uploaded along with the files.
.png)
I have already tried "NoExtent" keyword, but that does remove the sql table and just keeps the data only in globals. The only solution I have come up with so far is to remove all the "property" sections from storage in file everytime before committing changes.
Hi everyone,
Today I have a simple yet potentially valuable question: How can I begin a new line of text within $$$LOGINFO or $$$TRACE?
For instance, if I need to display a long log message within the visual trace, is it possible to do something like this:
$$$LOGINFO"object: 'This is a try'""this is the second line with an example parameter: "Does anyone know if such a feature exists? It has the potential to greatly enhance code readability and layout.
Thanks :)
Hello,
I begin to work with VSCode and all is ok but i have just one problem with ObjectscriptQuality plugin. I have no feedback in the problem tab using the objectScriptQuality plugin.
I only have feedback from InterSystems Language Server plugin. Where could the problem come from?
My goal is to use objectscriptQyality with the basic rules at first
I work with iris 22.3
The VS Code extension for Deltanji source control has been updated to version 1.2.3. View the change log here for a full list of updates: https://bit.ly/3PqMJ26
Users can now benefit from the VS Code Quick Diff feature when using the ObjectScript extension. To use this feature just click on the gutter decorations to reveal an inline diff experience, where you can contribute contextual commands. You just need to provide VS Code with the original contes of any given file.

Find out more about the Quick Diff feature here > https://bit.
We have some custom tools that do project based deployment from environment to environment. In VS Code, we're struggling to find the best way to export PRJ files that contain the contents of a project the way we were able to in Studio. We can edit existing projects, and in server side editing we can create projects, but we can't seem to extract the project files (Not the classes, the wrapper) to store in our source control solution for deployment purposes.
I realize that a transition to ZPM would potentially render project files in this way unnecessary, but we're not there yet.
.png)
Hi Community
In this article, I will introduce my application IRIS-GenLab.
IRIS-GenLab is a generative AI Application that leverages the functionality of Flask web framework, SQLALchemy ORM, and InterSystems IRIS to demonstrate Machine Learning, LLM, NLP, Generative AI API, Google AI LLM, Flan-T5-XXL model, Flask Login and OpenAI ChatGPT use cases.
For several years now Visual Studio Code has supported the notebook coding paradigm with a maturing UX and an API that is enabling a notebook extensions ecosystem to grow. One of the best-known notebook platforms is Jupyter Notebooks. A Microsoft team publishes an extension that allows VS Code to handle .ipynb notebook files. These can either work against a local Python environment or connect to a Jupyter Server, which typically hosts remote Python environments with beefier resources.
What if your InterSystems IRIS environments, whether local on your workstation or remote in your organization / cloud, could operate as Jupyter Servers? And not only for Embedded Python but also for ObjectScript and SQL
Thank you for your time to read this,
Could you please guide , how to import XML schemas in VS Code to class files?
Thanks,
I have a VS Code workspace using server-side editing with separate folders for different namespaces on the instance:
{
"folders""name"
The VS Code search works well to find symbols in ObjectScript files, but it searches across all folders. Is there a way to include or exclude certain folders from the search? I've tried adding some patterns to the "files to exclude" dialog, but none of these seem to work: SYS/**, /SYS/**, %.*, \%.*