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.
Comments
@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
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?
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.
@John Murray : this is my entire JSON user settings:
{
"intersystems.servers": {
}
}
}
I bet you didn't expect that.
And I just noticed there was a third "}". I'll try removing that.
That fixed it. Thank you @John Murray
I'm glad to hear that. Don't know how it could have happened, unless you'd been editing the JSON directly.
I have opened https://github.com/intersystems-community/intersystems-servermanager/is… to capture the issue about the error message not being a template literal.
Server name must be in all lowercase.
@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:
.png)
Fair enough.