che-che4z-lsp-for-cobol icon indicating copy to clipboard operation
che-che4z-lsp-for-cobol copied to clipboard

Copybook Resolution Doesn't Work with Shared Folders

Open temanbrcom opened this issue 3 years ago • 1 comments

Description

If a copybook resides in a shared folder, it cannot be found.

Steps to reproduce

  1. Create a shared folder
  2. Put a copybook there
  3. Specify this folder as the path to the local copybooks (it should start with "\\")
  4. Add a COPY statement for this copybook
  5. See an error "Copybook not found"

Expected behavior

Copybook resolved successfully.

Environment

  • OS: Windows 10
  • IDE: VS Code

temanbrcom avatar Oct 15 '21 13:10 temanbrcom

Java doesn't have the native shared folders support, also this behavior might be platform-dependent. The language server may interact with the shared paths in two cases - resolving the copybooks and "go to definition". The first one is applied on the Java side, while the second means only sending the URIs to the client. So, references support is encapsulated into VSCode.

temanbrcom avatar Oct 19 '21 09:10 temanbrcom