Open hediet opened 7 months ago
Using pwsh may be the problem. Would you like install it via cmd? by default the command is ast-grep.exe on windows. you can tweak it via https://github.com/ast-grep/ast-grep-vscode?tab=readme-ov-file#extension-settings
I think npm/yarn just don't generate any .exe
files. Neither for PWSH nor CMD.
It should be fixed in 0.1.3! Thanks for reporting!
Still does not work :/
Also, when I click x
in that dialog, it wants to open a website, which is quite annoying.
weird, @hediet would you like to confirm if this is caused by VSCode not picking up npm?
Say, you can change the serverPath to the absolute path to ast-grep binary installed globally? Thanks!
I tried on my windows machine by installing nodejs via its official website.
then I installed npm install @ast-grep/cli -g
in the vanilla command prompt.
I did find some issues about vcruntime140.dll but after I installed vc redistribution package the DLL is okay.
Then ast-grep vscode can work properly.
I suggest to show more error details, so that debugging is easier.
I like the idea of this extension! Unfortunately, I didn't manage to get it working.
Version: 1.88.0-insider (user setup) Commit: be210b3a60c7d60030c1d3d92da00d008edf6ab9 Date: 2024-03-15T05:48:19.790Z Electron: 28.2.6 ElectronBuildId: 27476517 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.22631