solidity-ls
solidity-ls copied to clipboard
Solidity language server.
I'm using solidity-ls on a foundry project. I made a remapppings.txt file in my project root with `forge remappings > remappings.txt`, but the ls still is unable to handle imports...
https://github.com/crytic/solc-select Would be nice if solidity-ls could change the version based on file (even better if somehow, install the correct version)
Trying to: '~/.brownie/packages/' Results on: ``` ParserError: Source "OpenZeppelin/[email protected]/contracts/access/Ownable.sol" not found: File not found. Searched the following locations: "/Users/otavio/Projetos/evm-contracts", "/Users/otavio/Projetos/evm-contracts/~/.brownie/packages/.". ```
代码检错缓慢
我配置了nvim的原生lsp, 也出现了错误提示迟缓问题,要多敲几行代码,才缓慢提示出来。
Foundry supports [context-aware remappings](https://getfoundry.sh/guides/project-setup/dependencies/#remapping-conflicts) that allow it to make remappings based on the namespace it is currently in, solving a type of dependency conflict ``` @account-abstraction/contracts/=lib/account-abstraction/contracts/ lib/account-abstraction/:@openzeppelin/contracts/=lib/openzeppelin5/contracts/ @uniswap/v3-periphery/=lib/v3-periphery/ lib/v3-periphery/:@openzeppelin/contracts/=lib/openzeppelin3/contracts/ ```