Skip to content

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

Open
@escoand

Description

@escoand

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions