I have selected “select default profile”, then click “command prompt”. But it said " Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again. " as below on the right bottom of the first image. I then come to the what you can see in the second image. May I know what I should do next please?
Oh, I also read about truffles when I was in university. I was very interested in this subject, but we didn’t touch it with my professors. In fact, we didn’t touch many topics during our studies, but I needed there topics in the future during my work.
Below are the error it’s indicating:
“terminal.integrated.profiles.windows”:
“Git Bash”
May I know what to do please? I would appreciate it if you could help!!
Below are the code for investigation:
{
"files.autoSave": "afterDelay"
"terminal.integrated.profiles.windows":{"Git Bash":{"path":"C:\\Program Files\\Git\\bin\\bash.exe"}, },
"terminal.integrated.defaultProfile.windows": "Git Bash"
}
SOLUTION:
Use --user
when installing.
Hi, I am having trouble with Truffle Init on my computer. I am able to create the “helloworld” directory successfully via the command prompt (“mkdir helloworld”). I am also able to run successfully “truffe init”. However, something strange happens. After running “truffle init”, when I open the “contracts” and “migrations” folders (within helloworld), all I get is one empty “.gitkeep” folder in “contracts”, one empty “.gitkeep” folder in migrations, and one empty .“gitkeep” folder in “test”. The “package” and “truffle config” files appear okay.
Please help! How do I fix this? I had github desktop installed on my computer. I uninstalled it but this didn’t solve the problem.
hey can u post a screenshot of what your vs code looks like. github desktop doesnt have anything to do wit it
Sure … attached is a screenshot of what I see in Visual Studio Code:
yeah strange but this doesnt matter. you can create contracts as you need them. the only thing you will need tho is the initial migration file. so in migrations make a file called 1_initial_migration.js
then just continue as normal
const Migrations = artifacts.require("Migrations");
module.exports = function (deployer) {
deployer.deploy(Migrations);
};
Okay, thanks for your help!
Hello @thecil
I’m having problems with truffle migrate
truffle migrate
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
> Something went wrong while attempting to connect to the network at http://127.0.0.1:7545. Check your network configuration.
ProviderError:
Could not connect to your Ethereum client with the following parameters:
- host > 127.0.0.1
- port > 7545
- network_id > *
Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" or "--http" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle-config.js)
Thanks in advance
Mildo
Hello @thecil I was able to run it by running migrate from the truffle develop but in the video @filip did it outside of the development console
Glad to know you solve it @Mildo
By the time the video was made, there has been a lot of changes on truffle, some times the old method works, but its easier to follow the new process, all you need is to run your own local blockchain while testing your contract.
The command truffle develop
will start a local blockchain and then inside this one, you can call the usual commands from the video, like migrate
or compile
, you also can deploy
your contracts or migrate.
So the process is quite simple:
- Start a truffle local blockchain
truffle develop
-
compile
your contracts. -
migrate
ordeploy
.
Carlos Z
hey can someone hepl me figure out the proble i have tried all solutions already given in the frum cant seem to figure out the issue.
these are just warning messages you can disregard these. errors come up in red
this is fine this is showing its installed all those messages are just showing the different commands you can execute with truffle via the command line. keep following the videos and message me back if you run into any problems when actually using truffle in a smart contract project
its not showing migration.sol or the js file
you can just create these files yourself. the only thing that needs to be generated with the truffle project is package.json and truffle0config. also im not sure what issue you are facing. the output when your execute the truffle command is the correct output. you can run truffle develop
if you want to enter the command line version of truffle