Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Go To Definition does not work or is not fully resolved #553

Open
DrakeEvans opened this issue Apr 12, 2024 · 7 comments
Open
Labels
status:ready This issue is ready to be worked on

Comments

@DrakeEvans
Copy link

Feature: Go To Definition should support function definitions as well as fully resolve Definitions

Current Situation: Function definitions not supported, For supported symbols Go To Definition only goes to the nearest declaration not to the implementation

Current.mp4

Proposed: Function definitions supported, Go To Definition fully resolves to implementation not nearest declaration

OptimalOutcome.mp4
@DrakeEvans
Copy link
Author

The OptimalOutcome.mp4 is generated from using the Tools For Solidity extension

@kanej
Copy link
Member

kanej commented Apr 15, 2024

Hey @DrakeEvans, thanks for the reproduction videos they are always valued.
Can you point me to to the repo you where using if its open source?

@DrakeEvans
Copy link
Author

@kanej Yes you can see it at https://github.com/agora-finance/agora-dollar-evm-tests/blob/master/src/test/erc20-privilaged/TestMinting.t.sol

You will need to run forge install and npm i to make it work

@DrakeEvans
Copy link
Author

DrakeEvans commented Apr 18, 2024

Will need to run npm i inside of one submodule as well cd lib/agora-dollar-evm/ && npm i

@kanej kanej added status:ready This issue is ready to be worked on and removed status:triaging labels Jul 29, 2024
@kanej kanej moved this to Todo in hardhat-vscode Aug 1, 2024
@moray5554
Copy link

so there is no way to fix this thing? I experiencing the same with almost every project

@DrakeEvans
Copy link
Author

so there is no way to fix this thing? I experiencing the same with almost every project

Im not a contributor but this may be fixed as they move to a different syntax tree parser. You can check out the slaang project

@kanej
Copy link
Member

kanej commented Nov 12, 2024

so there is no way to fix this thing? I experiencing the same with almost every project

Im not a contributor but this may be fixed as they move to a different syntax tree parser. You can check out the slaang project

That is correct. We are rolling out Slang internally within the extension (it is currently used to support the outline view).

The Slang project is working on Solidity lang binding information to enable go to definition type use cases. Once we have integrated Slang's binding info and its more robust project analysis, there should be significant improvements in our navigation support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready This issue is ready to be worked on
Projects
Status: Todo
Development

No branches or pull requests

3 participants