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
571 stars 60 forks source link

Windows: Codelenses not showing up #35

Closed Bobface closed 4 years ago

Bobface commented 4 years ago

I have just freshly installed the plugin on Windows 10 VS Code. The codelenses are not showing up for me. I have installed Surya and Graphviz before.

I saw that there is a bug mentioned about codelenses not showing up. So I changed the file and saved it to trigger a reload but it doesn't help. Also uninstalled / reloaded the plugin multiple times. The settings for codelenses are enabled.

I'm not sure what exactly I need to post so you can investigate, just let me know.

tintinweb commented 4 years ago

Hi @Bobface,

please provide the source code and I'll investigate.

cheers, tin

Bobface commented 4 years ago

I don't get them at all, doesn't matter the code I am looking at. For example looking at MakerDAO's dss they don't show up.

tintinweb commented 4 years ago

🤔

image

image

thanks @Bobface

Bobface commented 4 years ago

Both options are enabled and there is no error popup. There is an error in the developer console though which seems to be related to the Codelenses:

err

Arnas-Kucinskas commented 4 years ago

Hello, I'm experiencing same symptoms. And problem looks to be very similar if no the same. M aybe some additional logs will be of use.

I'm getting the same error as bobface "Cannot read property 'contracts' of undefined" when opening .sol file file. But i do get aditional errors when trying to run surya graph functionality. All of the errors say "no such file or directory, open" regarding the smart contract file.

logs.log

tintinweb commented 4 years ago

Thanks for the stacktrace @Bobface @Arnas-Kucinskas. will look into this asap!

tintinweb commented 4 years ago

vscode and path separators on windows.. what a mess 🙄 you might want to use it on macos in the meantime until I am done with cleaning up the os dependant parts :D

tintinweb commented 4 years ago

@Bobface, here's a preview version of the windows compatible visual auditor extension. Let me know if that fixes your problem and I am going to publish it pending some cross OS tests.

solidity-visual-auditor-0.0.21.vsix (Save Link As -> .vsix; remove the .png extension!)

Bobface commented 4 years ago

@tintinweb It works, thank you!