Skip to content

debug command doesn't work in WSL #181

Description

@bribroder

When I use the debug command in WSL, I get mixed signals:

--------------------Testing Extension--------------------

working directory - /home/ubuntu/project
shell - false

--------------------Testing Working Directory--------------------

command - dir 
Temporarily settings 'shell' to 'true' for this test


TEST SUCCESS - Valid Working Directory

--------------------Testing SQLFluff Location--------------------

command - where sqlfluff

TEST FAILED - SQLFluff location not found
Error: spawn where ENOENT
------------------------------------------------------------

It appears from this output, and looking at debug.ts, that the script assumes a windows environment and will use windows/powershell commands like dir and where, which don't work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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