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

solidity nomic foundation not work #672

Open
mittko opened this issue Apr 6, 2025 · 21 comments
Open

solidity nomic foundation not work #672

mittko opened this issue Apr 6, 2025 · 21 comments

Comments

@mittko
Copy link

mittko commented Apr 6, 2025

It doesn't work at all, it doesn't highlight errors in red even though I've been trying to get it to work for two days, and my computer sounds like it's overloading the processor, but it doesn't actually work, very disappointing.

@antico5
Copy link
Collaborator

antico5 commented Apr 6, 2025

We had an issue for 2 days where the extension may have been failing on arm64 processors. Can you check what extension version you are running now and see if there's anything in the logs?

@mittko
Copy link
Author

mittko commented Apr 6, 2025

version 0.8.17,
also this task on image below never ends
Image

@antico5
Copy link
Collaborator

antico5 commented Apr 6, 2025

Can you check the logs by opening the console and then going to the Output tab, then selecting Solidity on the dropdown? like this:

Image

@mittko
Copy link
Author

mittko commented Apr 6, 2025 via email

@antico5
Copy link
Collaborator

antico5 commented Apr 6, 2025

Can you lower the verbosity level? otherwise the logs may be too big to paste. You can do that in the settings like this:

Image

That will only show info level logs and above. I want to see where the logging stops, because it seems that the problem is that the indexing stage never finishes

@mittko
Copy link
Author

mittko commented Apr 7, 2025 via email

@kanej
Copy link
Member

kanej commented Apr 7, 2025

@antico5 is this potentially a timing issue with the changes on onReady in the Solidity Language server? That the analysis completes but the message is sent out of order.

@mittko does this happen across all your Solidity repos, or is it specific to only this one? Is it open source - so we can clone it locally to help reproduce?

@mittko
Copy link
Author

mittko commented Apr 7, 2025

it's look like specific for this project, link https://github.com/R-Santev/softuni-blockchain-advanced.git

@kanej
Copy link
Member

kanej commented Apr 7, 2025

it's look like specific for this project, link https://github.com/R-Santev/softuni-blockchain-advanced.git

Thanks! We will try and reproduce the issue.

@kanej
Copy link
Member

kanej commented Apr 7, 2025

I was able to use the latest vscode extension in https://github.com/R-Santev/softuni-blockchain-advanced.git in codespaces, once I had installed forge and done a local build.
@antico5 can you try the same on Windows?

@antico5
Copy link
Collaborator

antico5 commented Apr 7, 2025

@kanej I'm able to use the extension normally on windows on this repo.

@mittko can we set the Verbosity option back to verbose like you first had ? then I'd need the full logs, but since they are too big you can probably use pastebin.com instead of pasting it here. Also confirm that when doing it, the spinner is stuck on "Scanning for solc files" and never ends.

@mittko
Copy link
Author

mittko commented Apr 7, 2025

here it is the link https://pastebin.com/PRjph2ED , strange but after i was disabled extension for some hours and enable it now spinner is Not stuck on 'Scanning for solc files'

@antico5
Copy link
Collaborator

antico5 commented Apr 7, 2025

@mittko I noticed that you enabled the verbose logging midway through the initialization, it would be more helpful if you can restart so the full logs are captured with high verbosity (e.g. we lost the part where it finishes initialization).

Now that it's not stuck anymore, do you get validation on your contracts? (the red/yellow lines on syntax errors). Keep in mind that for hardhat projects you need to run npm install on it first so it has the packages. You should be getting validation on the foundry project contracts though

@mittko
Copy link
Author

mittko commented Apr 7, 2025

https://pastebin.com/PuHJaHGu, 'do you get validation on your contracts? (the red/yellow lines on syntax errors)' - yes I have validation for now

@mittko
Copy link
Author

mittko commented Apr 7, 2025

after some time validation gone again, sad.

@antico5
Copy link
Collaborator

antico5 commented Apr 7, 2025

Is it possible that you are running on a computer with low specs? I can see on the logs that actions that should take ~100ms normally, are taking 2000ms+. Maybe there's a performance issue due to computer specs or some other extension using too many resources. Maybe you are not getting validation sometimes because it's just taking too long and gets cancelled

@mittko
Copy link
Author

mittko commented Apr 7, 2025

anything is possible, it is possible that it is related to another extension, the fact is that as soon as I activate solidity nomic foundation the processor is heavily loaded, as soon as I deactivate it the processor calms down, the computer is an Assus TUF Gaming FX504 SERIES with 32GB Ram and for comparison programs like Android Studio run smoothly

@antico5
Copy link
Collaborator

antico5 commented Apr 7, 2025

That hardware is very powerful, it should not be the issue. I'll discuss with @kanej what options are there to troubleshoot this

@mittko
Copy link
Author

mittko commented Apr 8, 2025

strange but today extension works well, i have a validation and no more cpu burn out.

@antico5
Copy link
Collaborator

antico5 commented Apr 8, 2025

strange but today extension works well, i have a validation and no more cpu burn out.

Glad to hear that, let us know if you have any more troubles. May we suggest you rate our extension on the vscode marketplace? That's very significant for us.

@mittko
Copy link
Author

mittko commented Apr 8, 2025

ok, i will post new rate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants