for 3 hours and it’s not working. The button “Who am I” isn’t working… I asked ChatGPT for debugging and anything, but without success. The only difference in my code from the link is that in lib.rs I added: use candid::Principal; ,use ic_cdk::caller; otherwise cannot deploy the project. Can someone test it to see that the given code in the webpage of internetcomputer.org is not working? Also how to fix it ?
bro 40 minutes I cannot upload the files for github. again using chat gpt to help me and again NOTHING WASTE OF TIME. I am so pissed off. Lost over 20 hours of my life fighting with ubuntu dfx icp github and everything… why it’s made to be so hard. this ecosystem is crap… I was iOS App developer. on Apple ecosystem everything was so easy, but here is a nightmare… updates, upgrades, nvm, nvp, --clean, I can’t even find the local files of my project in my computer to drag them to github… I get 10000 errors, Fixing 1 and another appears right after…
error: remote origin already exists.
error: src refspec main does not match any
error: Your local changes to the following files would be overwritten by merge:
README.md
Please commit your changes or stash them before you merge.
Aborting
Username for ‘https://github.com’: bbogdanov93
Password for ‘https://bbogdanov93@github.com’:
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see About remote repositories - GitHub Docs for information on currently recommended modes of authentication.
fatal: Authentication failed for ‘https://github.com/bbogdanov93/icp-ie-rust-vanillajs.git/’
I even edited readme.md with my all terminal codes that I typed to try the uploading to github and I got an email for exposed secred… so I deleted the repository…
I admit that I wrote the guide under the assumption that users have already created IC smart contracts before, most users end up on this page to integrate II into an existing project.
Based on your feedback and going once more through the guide in detail, I found the following issues and points for improvements:
The guide assumes the user knows that it should also add the whoami method to the ii_integration_backend.did file, I’ll explicitly add this in the steps instead.
The guide incorrectly shows an await statement in the App constructor, I’ll update this step to correct this mistake.
Let me know if there any other issues with the guide, feedback is highly appreciated.
As for your issues with GitHub, this seems out of scope of IC development itself, users are free to choose where and how they host their IC project files. See the following documentation for GitHub: Getting started with Git - GitHub Docs
To clarify, IC projects can also be developed on macOS directly or on Windows with WSL, linux is not a requirement.