Skip to content

Can not go to definition and remote "latest" compiler version is still 0.8.19 #440

Open
@ClaudeZsb

Description

@ClaudeZsb

I have two project, one with solc 0.8.19 and the other one with solc 0.8.21.

First of all, within the project with solc 0.8.19, I have default extension settings, which means in this workspace, remote and latest compiler will be used. If you run cmd Solidity: get compiler release, you'll see that the latest is 0.8.23. But if you run cmd Solidity: compiler information, you'll get Compiler using remote version: 'latest', solidity version: 0.8.19+commit.7dd6d404.Emscripten.clang. So this is my first question, that the remote latest solc is somehow locked on 0.8.19.

Secondly, within the project with solc 0.8.19, I cannot use goto definition and references, and hover neither. Output of Solidity language server said that

[Error - 15:14:40] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: Cannot read properties of undefined (reading 'sort')
  Code: -32603 
[Error - 15:14:40] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read properties of undefined (reading 'sort')
  Code: -32603 

Within the project with solc 0.8.21, since the latest remote is 0.8.19, I've already changed it to remote 0.8.21 instead of latest. Hover seems good. But when you want to goto definition or references, the output log said that

[Error - 15:17:17] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Maximum call stack size exceeded
  Code: -32603 

Although, goto definition or references didn't work for both of projects, their reason seems to be different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions