Closed tomijaga closed 1 year ago
Thanks for opening this issue!
What happens if you run npm i -g ic-mops
and then restart the Motoko language server? I changed this behavior for security reasons (since it might be concerning if the extension silently installed a third-party npm package without confirmation).
I'm planning to revisit this in the near future by bundling MOPS with the extension (or adding a prompt to install the latest version). Let me know if the short-term solution mentioned above works for you; otherwise I'll do my best to implement this today.
Thank you for your response, @rvanasa.
I had already installed the mops CLI globally on my system and attempted to reinstall it and restart the language server multiple times before creating the issue. After some time, I reopened the VSCode app and the issue was resolved.
I agree with the decision to change the behaviour due to security concerns, and think that the solution of detecting the mops CLI or adding a prompt to install the latest version of mops is a good approach, as it ensures the CLI version used is the one expected by the user.
Hey @rvanasa, I've been using this vscode extension for a while now and would like to say that it's been very helpful for formatting and highlighting errors and warnings. 🙌
It has been working great for me, however the latest update to the extension throws an error for me on initialization:
I tried running this command locally in my terminal and found out that it asks to install the package before running the command.
When I responded with a yes (
y
) the command ran successfully and returned the file paths for all my dependencies