Open beaker-meeep opened 23 hours ago
I tried this repro on a much newer machine and ran into the same behavior. I also downloaded IntelliJ with the Solidity plugin and I was able to navigate between definitions in the chainlink lib contracts with no issue at all.
So my thinking is that I've got something configured incorrectly ... and it's not my old CPU or the size of the dependency.
Have you got Copilot installed?
Hello everyone!
I am seeing very slow Go To Definition behavior (on the order of 80 seconds). Is this normal? Is there a way I can improve this performance? I searched the existing issues for related wording (
slow definition
) but couldn't find anything. I have an old machine with an Intel i5-5200U CPU and 12 GB of RAM but even which these old specs I feel like 80 seconds means something is wrong.VSCode version:
1.94.0
Solidity extension version:v0.0.176
Local user settings are empty. Global user settings.json looks like this:
Steps to repro:
forge init
a clean directoryforge install smartcontractkit/chainlink-brownie-contracts@1.1.1 --no-commit
@chainlink/contracts/=lib/chainlink-brownie-contracts/contracts/
Counter.sol
contract and add these three imports:VRFConsumerBaseV2Plus
,VRFV2PlusClient
orAutomationCompatibleInterface
. Some may work, some may not. For me, sometimesVRFConsumerBaseV2Plus
works, in which case I attempt to do another Go To Definition from the imports inVRFConsumerBaseV2Plus
. InVRFConsumerBaseV2Plus
I attempt to Go To Definition forIVRFCoordinatorV2Plus
.I also see the request for the definition of
VRFConsumerBaseV2Plus
I then see a couple of replies to the request that look like this:
Followed by the final
'textDocument/didOpen'
which opens the relevant file.Thanks a lot for your help!