Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
escoand opened this issue Jan 8, 2025 · 0 comments
Open

Comments

@escoand
Copy link

escoand commented Jan 8, 2025

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

@escoand escoand changed the title VSCode extension doesn't handle source paths correctly on Windows VSCode extension doesn't handle relative source paths correctly on Windows Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant