nwolverson/vscode-ide-purescript

Formatter local installation

laurentpayot opened this issue · 3 comments

Hi,

Local installation (in npm projects) of the default formater via npm i -D purs-tidy does not work with this plugin. To make it work, I had to install it globally with npm i -g purs-tidy, which is considered a bad practice.
Even PureScript itself works perfectly when installed locally as a dev dependency 😉

wclr commented

Do you use purescript.addNpmPath vscode setting?

I was not using it. I added "purescript.addNpmPath": true, to my vscode settings.json file and the local installation of purs-tidy now works! Thanks @wclr 👍

I just RTFM displayed on vscode and added the specified 3 lines for spago 🤦‍♂️ Thanks again.