Open getong opened 1 month ago
I have not been able to reproduce this error when navigating within the vscode extension against the protokol template repo.
Which version of the language server is being used by the emacs package?
0.9.0 I know this work with vscode, but it does not work with emacs. I does not test it with vim, you might take a test with vim.
0.9.0 I know this work with vscode, but it does not work with emacs. I does not test it with vim, you might take a test with vim.
The latest version of the solidity language server is 0.8.3
, is 0.9.0
the version of the emacs package?
Can you try updating to the last language server and retesting?
I initially thought there might be a mapping issue with the line/column numbers coming from the emacs package, but the message shown matches the message that vscode sends for onDefinition
for the ERC20Pausable
token in BasicERC20.sol
. If other messages are give correct responses then is suggests it is not a message encoding issue either.
I update it with
npm install @nomicfoundation/solidity-language-server -g
same error
Does it setup with initial setting?
The defaults should work in this case. The directory that you start the language server might have an effect, if its not able to identify the Hardhat/Foundry project directory.
Can you point me to the emacs package you are using to interact with our Language Server?
The code file example
contracts/BasicERC20.sol
from https://github.com/protokol/solidity-typescript-hardhat-templateThe code sample:
find
ERC20Pausable
definition fail:But find the file definition works, find the
"@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"
, it jump to the right fileI also test the code with emacs lsp-mode package, same behaviour, same error.