intersystems / language-server

Repository for the VS Code Language Server
https://marketplace.visualstudio.com/items?itemName=intersystems.language-server
Other
16 stars 6 forks source link

Can't list classes/routines/etc #295

Closed eduard93 closed 8 months ago

eduard93 commented 8 months ago

I have a working server connection with a %ALL user. I can connect and import/compile classes, But when I switch to a InterSystems tab, I don't see any classes (or any other elements):

image

Extension host log:

2023-11-02 13:33:59.792 [info] Extension host with pid 32396 started
2023-11-02 13:33:59.792 [info] Skipping acquiring lock for c:\Users\elebedyu\AppData\Roaming\Code\User\workspaceStorage\17b3a889a69d8e81145a598793d3bd64.
2023-11-02 13:33:59.898 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2023-11-02 13:33:59.903 [info] ExtensionService#_doActivateExtension vscode.json-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2023-11-02 13:33:59.926 [info] ExtensionService#_doActivateExtension vscode.typescript-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2023-11-02 13:34:00.302 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.git
2023-11-02 13:34:00.405 [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*'
2023-11-02 13:34:00.422 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
2023-11-02 13:34:00.501 [info] ExtensionService#_doActivateExtension intersystems-community.vscode-objectscript, startup: true, activationEvent: 'workspaceContains:**/*.cls,**/*.mac,**/*.int,**/*.inc,**/*.csp,**/*.csr'
2023-11-02 13:34:00.565 [info] ExtensionService#_doActivateExtension intersystems-community.servermanager, startup: false, activationEvent: 'api', root cause: intersystems-community.vscode-objectscript
2023-11-02 13:34:04.508 [info] ExtensionService#_doActivateExtension intersystems.language-server, startup: true, activationEvent: 'workspaceContains:**/*.cls,**/*.mac,**/*.int,**/*.inc,**/*.csp,**/*.csr'
2023-11-02 13:34:04.524 [info] Eager extensions activated
2023-11-02 13:34:04.561 [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: false, activationEvent: 'onStartupFinished'
2023-11-02 13:34:04.564 [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished'
2023-11-02 13:34:04.570 [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-wsl-recommender, startup: false, activationEvent: 'onStartupFinished'

InterSystems ObjectScript: v2.10.5 InterSystems Server Manager: v3.4.2 InterSystems Language Server: v2.4.0

isc-bsaviano commented 8 months ago

@eduard93 This should be reported on the vscode-objectscript GitHub. Is there anyhting in the ObjectScript output channel? If not, can you get a wireshark trace?

EDIT: Actually, that tree is probably empty because you have no Studio projects in that namespace

eduard93 commented 8 months ago

ObjectScript output channel is empty. Wireshark trace can't be decrypted as DH is used and VSCode does not allow export of session keys (as far as I know).

eduard93 commented 8 months ago

But before I could see all classes in the namespace there. I don't have any projects, yes.

isc-bsaviano commented 8 months ago

Are you using server-side editing? If so, what's the contents of your .code-workspace file?

eduard93 commented 8 months ago

Yes: "objectscript.serverSideEditing": true, and I don't have a .code-workspace file.

isc-bsaviano commented 8 months ago

That setting was deprecated and removed multiple versions ago. "Server-side editing" means "using virtual isfs workspace folders to edit documents directly on a server". If you just have a local folder open then you're using client-side editing, and the ObjectScript Explorer should be visible by default. You may have the objectscript.showExplorer set to false.

isc-bsaviano commented 8 months ago

Resolved internally

gjsjohnmurray commented 8 months ago

I guess the ObjectScript Explorer view had been hidden, leaving only the Projects view visible in the view container. So its title merged with the container title, as seen in the screenshot.

isc-bsaviano commented 8 months ago

The settings.json was malformed