Question Michael Gosselin · Jun 15, 2023

VS Code Intersystems Server Manager can't save a new server setting

I am trying to set up VS Code so that it will connect to a new server running IRIS 2023.1, and I can't seem to get the setup to accept my errors. I enter all the requested information, and at the end I receive a message:

Failed to store server '$(name)' definition.

Source: InterSystems Server Manager (Extension)

I've submitted a bug log with VSCode, but then I noticed the source, and figured it might be related to the extension instead of the program, and was wondering if others have received this message. The VSCode is 1.79.1, for the record.

Thanks as always.

Product version: IRIS 2023.1

Comments

Brett Saviano · Jun 15, 2023

@Michael Gosselin 
The best place to report those issues is the GitHub repository for the Server Manager extension. Also, any details you can give us would be great. Does a server already exist with that name in your user settings? Do you have a workspace open?

cc @John Murray 
 

0
Michael Gosselin  Jun 16, 2023 to Brett Saviano

Thank you for the suggestion. The server exists, but not on my laptop. I don't think there's a workspace open; should there be?

0
John Murray · Jun 15, 2023

Please use Command Palette to run "Preferences: Open User Settings (JSON)", then review the contents for any syntax errors. My hunch is the file contains an invalid JSON structure, so the extension's call to update the "intersystems.servers" object in it is failing.

0
Michael Gosselin  Jun 16, 2023 to John Murray

@John Murray : this is my entire JSON user settings:

{

    "intersystems.servers": {

        }

    }

}

I bet you didn't expect that.

0
Michael Gosselin  Jun 16, 2023 to Michael Gosselin

And I just noticed there was a third "}".  I'll try removing that.

0
John Murray  Jun 16, 2023 to Eduard Lebedyuk

@Eduard.Lebedyukthe presence of '$(name)' in that message is misleading because of a small SM bug. If @Michael Gosselin had tried entering exactly that when adding the definition he would have seen this:

0