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

Sidebar Debug QA [DO NOT MERGE] #11

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

TilakMaddy
Copy link
Contributor

No description provided.

@TilakMaddy
Copy link
Contributor Author

TilakMaddy commented Feb 28, 2025

Alex, please checkout this branch locally, after that -

Follow the first 3 steps from the Contributing section https://github.com/Cyfrin/vscode-aderyn?tab=readme-ov-file#-contributing

Then jump to step 6, open Cyfrin Attester

After that open sidebar, then go to Cmd+shift+P: open developer tools

See if you get the following logs :

Screenshot 2025-02-28 at 5 00 06 PM Screenshot 2025-02-28 at 5 00 20 PM

@TilakMaddy
Copy link
Contributor Author

@alexroan

@TilakMaddy TilakMaddy changed the title Sidebar Debug QA Sidebar Debug QA [DO NOT MERGE] Feb 28, 2025
@alexroan
Copy link

@TilakMaddy Error message:

{"errorType":0,"payload":"error: Fatal compiler bug!\n\nThis is a fatal bug in Aderyn, sorry!\n\nPlease report this crash to https://github.com/cyfrin/aderyn/issues/new and include this error message with your report.\n\nPanic: aderyn_driver/src/process_auto.rs:50\n\tcalled `Result::unwrap()` on an `Err` value: FailedResolveImport(Resolve(SolcIoError { io: Os { code: 2, kind: NotFound, message: \"No such file or directory\" }, path: \"/Users/alexroan/Documents/Cyfrin/cyfrin-attester/node_modules/@ethereum-attestation-service/eas-contracts/IEAS.sol\" }), \"/Users/alexroan/Documents/Cyfrin/cyfrin-attester/src/CyfrinAttester.sol\", \"@eas/contracts/IEAS.sol\")\nAderyn version: 0.4.3\nOperating system: macos\n\nIf you can also share your code and say what file you were editing or any\nsteps to reproduce the crash that would be a great help.\n\nYou may also want to try again with the `ADERYN_LOG=trace` environment\nvariable set.\n\n"} 

Could be a remappings issue only in the sidebar?

@TilakMaddy
Copy link
Contributor Author

TilakMaddy commented Feb 28, 2025

Thanks, from the error it appears that in src/CyfrinAttester.sol there is an import statement like @eas/contracts/IEAS.sol . which clearly maps to /Users/alexroan/Documents/Cyfrin/cyfrin-attester/node_modules/@ethereum-attestation-service/eas-contracts/IEAS.sol .However it also says that the reason in No such file or directory .I can guess it's because npm install needs to be run 🤔 ? Can you re-run npm install, make sure that file above is present in node modules and then get back?

@TilakMaddy
Copy link
Contributor Author

Or...if it's a pnpm install chances are the file is a symlink which is not supported yet 😢

@TilakMaddy
Copy link
Contributor Author

I found out like this - https://chatgpt.com/share/67c1f311-ac1c-8013-a196-4ec1757be58a 😅

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

Successfully merging this pull request may close these issues.

2 participants