bash-lsp/bash-language-server

VSCode extension doesn't handle relative source paths correctly on Windows

Opened this issue · 0 comments

Code editor

Visual Studio Code

Platform

Windows

Version

1.43.0

What steps will reproduce the bug?

#!/bin/sh
# shellcheck source=test/sourced.sh
. sourced.sh
# shellcheck source=/Users/MyUser/path/to/workspace/test/sourced.sh
. sourced.sh

Only the second command works correctly but is not portable.

How often does it reproduce? Is there a required condition?

always

What is the expected behavior?

Both commands should work in the same way.

What do you see instead?

[Warn  - 11:43:20 AM] 10:43:20.729 WARNING ⛔️ file:///c%3A/Users/MyUser/path/to/workspace/test/source.sh line 3: failed to resolve path

Additional information

No response