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

No valid solidity source files found. #19

Open
MujatabaRehman opened this issue Jul 25, 2023 · 24 comments
Open

No valid solidity source files found. #19

MujatabaRehman opened this issue Jul 25, 2023 · 24 comments
Labels
question Further information is requested

Comments

@MujatabaRehman
Copy link

I am trying to run solidity metrics extension on vscode but it is giving me error of '"No valid solidity source files found". Does the extension only works with truffle projects?

@piyushshukla599
Copy link

Same issue

@blockchainexpert912
Copy link

same issue.

@krypston104
Copy link

I have the same problem. No way of making it work

@varun-doshi
Copy link

Same issue

@Breeje16
Copy link

Same issue

I faced the same problem, but by opening the Command Palette and selecting Solidity Metrics: Report Metrics for all open workspaces, it worked for me.

@0xBoom
Copy link

0xBoom commented Sep 27, 2023

Same issue

I faced the same problem, but by opening the Command Palette and selecting Solidity Metrics: Report Metrics for all open workspaces, it worked for me.

This didn't work for me but I got another error instead while trying that:

Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..

On Windows 11

Edit: For some reason it started to work after a system restart but it does not always work.

@tintinweb
Copy link
Member

@tintinweb tintinweb added bug Something isn't working question Further information is requested and removed bug Something isn't working labels Oct 13, 2023
@Abbasjafri-syed
Copy link

Abbasjafri-syed commented Oct 17, 2023

lmk if this still happens with https://github.com/Consensys/vscode-solidity-metrics/releases/tag/v0.0.23

yes still facing this with above version... try to install through npm but path issue problem...
'solidity-code-metrics' is not recognized as an internal or external command, operable program or batch file.
how to add path in env variables...
also is there a way to export the file in different format like pdf or docx rather than html

@hans-cyfrin
Copy link

I can see the issue happens only on Windows.
Running for the whole workspace works, but running from the context menu does not.
On Mac, everything works as expected. Great tool.

@TheBeanEffect
Copy link

I'm still getting "No valid solidity source files found" on Windows 11, despite having the latest version of the extension installed (today). Does anyone know how to get it to work?

@DCVglobalnetwork
Copy link

2024 still the same error in Windows11

@DCVglobalnetwork
Copy link

I'm still getting "No valid solidity source files found" on Windows 11, despite having the latest version of the extension installed (today). Does anyone know how to get it to work?

Open the command palette (ctrl + shift + P), then type Solidity Metric: report metrics for all open workspaces click enter

@DCVglobalnetwork
Copy link

Screenshot 2024-01-18 151638

@knowAshish
Copy link

knowAshish commented Jan 19, 2024

How to download solidity metrics on windows machine ?

@JDengin
Copy link

JDengin commented Feb 14, 2024

How to download solidity metrics on windows machine ?

If you're using VScode you add it directly as an extension, you don't have to download it

@JDengin
Copy link

JDengin commented Feb 14, 2024

Screenshot 2024-01-18 151638

This method works, thank you !

@deeplus2021
Copy link

On windows, only Solidity Metrics: Report Metrics for all open workspaces of Command Palette is worked.
Only on windows.

@adityaxxz
Copy link

The Solidity Metrics still giving No valid solidity sources error on Windows only. So, I booted Linux and works perfectly fine. Still can it be cured on windows?? ser @tintinweb

@hungtran2492
Copy link

Still not fix?

@abdxzi
Copy link

abdxzi commented Oct 13, 2024

Still have this issue on windows 11

@0x1057
Copy link

0x1057 commented Dec 8, 2024

Issue persists on Windows 11. I will say if I use the command palette fix then it will work when the single time I select 'Solidity Metrics: Report Metrics for all open workspaces' but will work if and only if I use that path to desired results. Using solution/context menu still seems broken.

@Cohee9791
Copy link

windows 11 still have the same issue, I do not know if it is some pluging conficts or something? every sol file cannot be scoped

@Cohee9791
Copy link

Right click is not working,but the using command is fine

@Cohee9791
Copy link

lmk if this still happens with https://github.com/Consensys/vscode-solidity-metrics/releases/tag/v0.0.23

I tried this version ,STILL CANNOT OPEN WITH RIGHT CLICK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests