-
Couldn't load subscription status.
- Fork 3.3k
Lesson 7: Error Highlighting extension used in VSCode? #312
-
Hi everyone!
I've noticed that in lesson 7, when Patrick refactors the FundMe contract in the "Solidity Style Guide" section, each time an error occurs in the contract (e.g. when a variable name changes and isn't recognized anymore by the compiler), the filename color changes to red and the error in the contract is highlighted in red as well. Yet this feature does not seem to exist in my local environment.
For example, at 11:02:50:
- Patrick changes the error name from
NotOwnertoFundMe__NotOwner - The Error revertion in the contract is no longer valid, and is being highlighted in red
I've searched online and I've found a few solidity error highlighter extensions for VSCode (e.g. Juan's popular solidity extension has an error highlighting feature), but I was wondering if anyone knows what's being used in this course and if it was configured somewhere in the first lessons. I don't want to download any random extensions so that my environment won't break later on.
Thanks in advance and happy coding!
Omer
Beta Was this translation helpful? Give feedback.
All reactions
Are you using this extension?
https://marketplace.visualstudio.com/items?itemName=NomicFoundation.hardhat-solidity
Replies: 2 comments 2 replies
-
Are you using this extension?
https://marketplace.visualstudio.com/items?itemName=NomicFoundation.hardhat-solidity
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes, I've downloaded this extension as was recommended in the course.
TL;DR: Error highlighting exists in the "Solidity + Hardhat" extension. The problem is probably in VSCode / the extension itself and disabling the extension and then restarting VSCode and enabling it again solved the issue for me.
I've done some more digging on the subject and on this specific extension as well, and it is indeed supposed to help with inline code validations:
After figuring that it should work with this extension, I was able to solve this problem by disabling the "Solidity + Hardhat" extension and then restarting VSCode and enabling it again.
Yet it seems that the problem will happen again each time I restart my computer. I guess reinstalling or updating VSCode might solve this issue, but either way it should relate to this specific extension / VSCode itself / my own system.
Hope this will help someone anytime in the future.
Thank you Patrick for your answer and for this excellent course!
Omer
Beta Was this translation helpful? Give feedback.
All reactions
-
Perfect!
Beta Was this translation helpful? Give feedback.
All reactions
-
I have the same problem though I installed the solidity+hardhat extension. My vscode is unable to identify the sol language.
Screenshot 2025年09月30日 190628
Beta Was this translation helpful? Give feedback.