Discussion (11)5
Log in or sign up to continue

To address the issue of failing to fetch the namespace list from the server in VS Code using the InterSystems Language Server extension, you can try the following steps:

  1. Ensure you have correctly configured the server settings in your settings.json file, which should include the server name, namespace, and credentials. Below is a sample configuration for reference:

    {
       "objectscript.conn": {
           "server": "your_server_name",
           "ns": "USER",
           "active": true
       },
       "intersystems.servers": {
           "your_server_name": {
               "webServer": {
                   "scheme": "http", // or "https" depending on your server
                   "host": "your_host_address",
                   "port": your_port_number
               },
               "username": "your_username",
               "password": "your_password"
           }
       }
    }
    

    Replace your_server_name, your_host_address, your_port_number, your_username, and your_password with your actual connection details. Ensure that the namespace you are trying to connect to is available on the server and accessible with your credentials [1][2].

  2. Verify that the namespace exists on the server. If the namespace you set in the configuration has been deleted or does not exist, VS Code may fail to fetch the list or connect. You can recreate the namespace temporarily on the server, which may help resolve the issue and allow you to switch namespaces via the UI [3].

  3. Confirm that the web application api/atelier is correctly enabled on the server. If it is not properly configured, the connection might fail.

  4. If the issue persists, try using the "Choose Server and Namespace" functionality in the ObjectScript Explorer view to manually select or update the namespace [4].

If none of these steps resolve the issue, seeking guidance in the InterSystems Developer Community might be necessary.

Sources:

if your VS Code with the InterSystems Language Server isn’t fetching the namespace list, and you’ve confirmed the namespace exists and api/atelier is enabled, the next things to check are usually around connection config + network/auth:

make sure settings.json has the correct server, port, scheme (http vs https), and credentials. even small typos or wrong case in username/password can block fetching.

try using “Choose Server and Namespace” in ObjectScript Explorer — sometimes the cached connection info trips the extension up.

check for any firewall or proxy on Ubuntu ARM64 that could be blocking the VS Code extension from reaching the web app.

confirm the extension version (2.8.0) is fully compatible with IRIS 2024.3; occasionally newer IRIS builds need the latest language server release.

basically, the extension looks fine, so it’s almost always a config or network hiccup, not a namespace/server issue.

  1. The curl command on the local machine can retrieve the correct response from api/atelier.
  2. The latest plugin management package intersystems-community.servermanager-3.10.5.vsix is being used.
  3. VS Code OUTPUT: The ObjectScript panel outputs "ERROR: write EACCES". It is inferred that this may be a startup permission issue with the VS Code user; however, VS Code cannot start normally when run as the root user.