Skip to content

vscode extension fails to start when provided binary path #244

@cameronbrill

Description

@cameronbrill

my team develops in a monorepo with a python service in subdirectory b/. we install and use ast-grep only for that service, so the ast-grep binary lives in b's virtual environment at b/.venv/bin/ast-grep. I configured the ast-grep extension as such:

{
	"astGrep.serverPath": "b/.venv/bin/ast-grep",
    "astGrep.configPath": "b/sgconfig.yml",
}

This should work, as I can run b/.venv/bin/ast-grep -h in my terminal and get output. However, when opening the monorepo in vs code, the ast grep vs code extension says `ast-grep cannot be started. Make sure it is installed." Thus, we cannot currently use the ast-grep vs code extension.

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