If we create a project and do not install prettier-solidity-plugin locally, then coc.nvim fails at formatting a solidity file. The error is the following:
Note that prettier-solidity-plugin exists on /home/dcordb/.config/coc/extensions/node_modules/coc-solidity/node_modules/prettier-solidity-plugin, since it is a dependency of solidity-ls.
To reproduce, just create inside a folder a contract (for example, Test.sol) and try to format it.
Note that an easy fix for this is just to change the directory where coc.nvim is trying to find prettier-plugin-solidity to the correct directory (since this plugin comes as a dependency of solidity-ls).
If we create a project and do not install prettier-solidity-plugin locally, then coc.nvim fails at formatting a solidity file. The error is the following:
Note that prettier-solidity-plugin exists on
/home/dcordb/.config/coc/extensions/node_modules/coc-solidity/node_modules/prettier-solidity-plugin
, since it is a dependency ofsolidity-ls
.To reproduce, just create inside a folder a contract (for example,
Test.sol
) and try to format it.