-
Notifications
You must be signed in to change notification settings - Fork 16
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 fails to start when provided binary path #244
Comments
hi, can you try setting |
so it seems setting
Back to the topic of getting the extension to work, even when specifying the absolute path, while the error I mentioned in the issue body goes away, it seems that the extension is still not working. there are errors that show up when I run ast-grep scan on my codebase, but I am seeing no squiggly lines on the relevant files. Is there a way to view debug logs for the extension? I don't see anything ast-grep related under the vs code |
As far as I can tell from the information you provided, I think the issue should probably be the config path. "astGrep.configPath": "b/sgconfig.yml", The server configPath is not supported yet. only
Thanks for the suggestion! I will add related output/debugging info in the output tab. |
I have pushed a fix to solve the binary server issue. Now it always resolves relative to current workspace directory. The remaining issue is tracked by #228 . Thanks! |
my team develops in a monorepo with a python service in subdirectory
b/
. we install and use ast-grep only for that service, so theast-grep
binary lives in b's virtual environment atb/.venv/bin/ast-grep
. I configured the ast-grep extension as such: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.The text was updated successfully, but these errors were encountered: