rchain-community / rchain-api

An API for rchain dapps to communicate with the blockchain
Other
22 stars 12 forks source link

Include instructions for using flow #20

Closed JoshOrndorff closed 6 years ago

JoshOrndorff commented 6 years ago

@dckc Could you give a quick tutorial sometime?

joshy@MicrosoftSurface:~/ProgrammingProjects/RChain-API$ npm run flow-status

> rchain-api@0.1.9 flow-status /home/joshy/ProgrammingProjects/RChain-API
> flow status --from emacs

Could not find a .flowconfig in . or any of its parent directories.
See "flow init --help" for more info

npm ERR! code ELIFECYCLE
npm ERR! errno 12
npm ERR! rchain-api@0.1.9 flow-status: `flow status --from emacs`
npm ERR! Exit status 12
npm ERR! 
npm ERR! Failed at the rchain-api@0.1.9 flow-status script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/joshy/.npm/_logs/2018-10-03T15_41_34_353Z-debug.log
joshy@MicrosoftSurface:~/ProgrammingProjects/RChain-API$ flow init --help
bash: flow: command not found
JoshOrndorff commented 6 years ago

Okay node_modules/flow-bin/flow-linux64-v0.81.0/flow init did better. Now I get

joshy@MicrosoftSurface:~/ProgrammingProjects/RChain-API$ npm run flow-status

> rchain-api@0.1.9 flow-status /home/joshy/ProgrammingProjects/RChain-API
> flow status --from emacs

Launching Flow server for /home/joshy/ProgrammingProjects/RChain-API
Spawned flow server (pid=20477)
Logs will go to /tmp/flow/zShomezSjoshyzSProgrammingProjectszSRChain-API.log
Monitor logs will go to /tmp/flow/zShomezSjoshyzSProgrammingProjectszSRChain-API.monitor_log
File "/home/joshy/ProgrammingProjects/RChain-API/RHOCore.js", line 16, characters 45-48
Error: Cannot resolve name `IPar`.

File "/home/joshy/ProgrammingProjects/RChain-API/RHOCore.js", line 41, characters 29-37
Error: Cannot resolve name `JsonArray`.

File "/home/joshy/ProgrammingProjects/RChain-API/RHOCore.js", line 52, characters 21-25
Error: Cannot resolve name `ISend`.

File "/home/joshy/ProgrammingProjects/RChain-API/RHOCore.js", line 53, characters 22-29
Error: Cannot resolve name `IChannel`.

File "/home/joshy/ProgrammingProjects/RChain-API/RHOCore.js", line 80, characters 40-43
Error: Cannot resolve name `Json`.

File "/home/joshy/ProgrammingProjects/RChain-API/rnodeAPI.js", line 120, characters 50-53
Error: Cannot resolve name `Json`.

File "/home/joshy/ProgrammingProjects/RChain-API/rnodeAPI.js", line 133, characters 37-51
Error: Cannot resolve name `unforgeableName`.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! rchain-api@0.1.9 flow-status: `flow status --from emacs`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the rchain-api@0.1.9 flow-status script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/joshy/.npm/_logs/2018-10-03T15_47_02_544Z-debug.log
dckc commented 6 years ago

Will do. Thanks for giving it a try.

Maybe I forgot to check in .flowconfig

On Wed, Oct 3, 2018, 10:48 AM Joshy Orndorff notifications@github.com wrote:

Okay node_modules/flow-bin/flow-linux64-v0.81.0/flow init did better. Now I get

joshy@MicrosoftSurface:~/ProgrammingProjects/RChain-API$ npm run flow-status

rchain-api@0.1.9 flow-status /home/joshy/ProgrammingProjects/RChain-API flow status --from emacs

Launching Flow server for /home/joshy/ProgrammingProjects/RChain-API Spawned flow server (pid=20477) Logs will go to /tmp/flow/zShomezSjoshyzSProgrammingProjectszSRChain-API.log Monitor logs will go to /tmp/flow/zShomezSjoshyzSProgrammingProjectszSRChain-API.monitor_log File "/home/joshy/ProgrammingProjects/RChain-API/RHOCore.js", line 16, characters 45-48 Error: Cannot resolve name IPar.

File "/home/joshy/ProgrammingProjects/RChain-API/RHOCore.js", line 41, characters 29-37 Error: Cannot resolve name JsonArray.

File "/home/joshy/ProgrammingProjects/RChain-API/RHOCore.js", line 52, characters 21-25 Error: Cannot resolve name ISend.

File "/home/joshy/ProgrammingProjects/RChain-API/RHOCore.js", line 53, characters 22-29 Error: Cannot resolve name IChannel.

File "/home/joshy/ProgrammingProjects/RChain-API/RHOCore.js", line 80, characters 40-43 Error: Cannot resolve name Json.

File "/home/joshy/ProgrammingProjects/RChain-API/rnodeAPI.js", line 120, characters 50-53 Error: Cannot resolve name Json.

File "/home/joshy/ProgrammingProjects/RChain-API/rnodeAPI.js", line 133, characters 37-51 Error: Cannot resolve name unforgeableName.

npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! rchain-api@0.1.9 flow-status: flow status --from emacs npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the rchain-api@0.1.9 flow-status script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/joshy/.npm/_logs/2018-10-03T15_47_02_544Z-debug.log

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JoshOrndorff/RChain-API/issues/20#issuecomment-426688261, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJNym61pOKo34Rfog46YMsyGH-GNs95ks5uhNw5gaJpZM4XGUHb .

JoshOrndorff commented 6 years ago

This was reasonably clear after .flowconfig showed up. I touched up the CONTRIBUTING.md in 2e36be1f274820c724

Might be good to say what npm run flow-check actually does, but this is fixed enough for me.