Motoko extension & moc version mismatchs

Hello :slight_smile:

I’m using moc 0.14.3 but the VSCode Motoko extension shows warnings like: this declaration is currently implicitly transient, please declare it explicitly 'transient'Motoko(M0219)

It seems error M0219 was only introduced post-0.14.3, confirming the extension uses a newer bundled compiler than my local installation.

Question: Is there any way to configure the extension to not show those warnings? The best scenario would be to make the extension use my local moc version instead of its bundled compiler (node-motoko)? Or maybe pin it to a specific node-motoko version? Also just curious - why does the language server uses `node-motoko` instead of the regular moc binary anyway? Any particular reason for that choice?

1 Like

I faced the same problem, and as a temporary solution, until I upgrade my projects to newer moc, I downgraded vscode extension to 0.18.3 (right click on ext and “Install Specific Version…”)

2 Likes