Consensys / vscode-solidity-auditor

Solidity language support and visual security auditor for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=tintinweb.solidity-visual-auditor
GNU General Public License v3.0
569 stars 60 forks source link

Outline not loading for some files #139

Closed Minh-Trng closed 8 months ago

Minh-Trng commented 9 months ago

For some .sol files I encounter the issue that the outline (giving an overview of all functions, modifiers and variables in the file) does not load:

image

This also affects the Syntax highlighting and navigation from the Visual Developer extension:

image

an example of this is the following: https://github.com/code-423n4/2023-09-maia/blob/main/src/RootPort.sol

I checked the following:

vquelque commented 8 months ago

Hi @Minh-Trng, I tried reproducing the bug with the file you submitted, but I couldn't. The bug might have to do with your particular vscode configuration. Could you maybe check the console (help>toggle developer tools) and check if there is an error message returned by the extension?

Minh-Trng commented 8 months ago

hey @vquelque, thanks for taking a look!

here is what I see in the console:

image

image

vquelque commented 8 months ago

Ok. Could you host a zip of your 2023-09-maia folder and provide the link? @Minh-Trng

Minh-Trng commented 8 months ago

Ok. Could you host a zip of your 2023-09-maia folder and provide the link? @Minh-Trng

The issue occured to me on the repo of the file without any modifications: https://github.com/code-423n4/2023-09-maia/tree/main

I just managed to replicate the issue on another windows 10 machine with the following steps:

On some other files, the outline was shown, such as VirtualAccount.sol

vquelque commented 8 months ago

Thanks for the details @Minh-Trng. This should be fixed in the next release 😀

Minh-Trng commented 8 months ago

Thanks for the details @Minh-Trng. This should be fixed in the next release 😀

I am the one who has to thank 😊 Great extension that has become an essential part of my workflow