Skip to content

Language server only looking in first namespace in workspace for class references #419

Closed

Description

@isc-rluman
  • VS Code Version: 1.136.1
  • Extension Version: 2.8.5
  • OS: Windows 11

Steps to Reproduce:

  1. Add IRIS namespace folder to current workspace (i.e. IRIS1 for example)
  2. Add a second IRIS namespace folder to current workspace (i.e. IRIS2)
  3. View any code in the second namespace (IRIS2) that has a class reference to another class within that namespace
  4. Language server indicates error that class cannot be found within the first namespace in the workspace list (IRIS1)
  5. Remove first namespace from workspace
  6. Error disappears
Image Image

This was not an issue prior to updating to Language Server extension v2.8.5 today.

Activity

  1. isc-bsaviano commented on Sep 8, 2026

    @isc-bsaviano
    Collaborator

    @isc-klu Culprit is probably #416.

  2. added
    bug
    on Sep 8, 2026
  3. jdkdtm commented on Sep 10, 2026

    @jdkdtm

    Can confirm this on a multi-root workspace with several isfs:// folders pointing to the same Caché server but different namespaces.
    The language server appears to always resolve routine/class references against the namespace of whichever isfs folder for that server is listed 'first' in the workspace, causing false "does not exist in namespace X" diagnostics in files belonging to the other folders.
    Reordering the folders in the .code-workspace file changes which namespace gets treated as correct.

    Versions:

    • VS Code: 1.137.0
    • intersystems.language-server: 2.8.5
    • intersystems-community.vscode-objectscript: 3.8.6-beta.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions