Ok I got it working using the manual build of the crates on my standalone ubunto install, but when I tried to build elemental chat I got these errors:
david@david-System-Product-Name:~/Downloads/holochain-develop/elemental-chat-develop$ CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown
Compiling byteorder v1.4.2
Compiling hashbrown v0.9.1
Compiling itoa v0.4.7
Compiling cfg-if v1.0.0
Compiling cfg-if v0.1.10
Compiling ppv-lite86 v0.2.10
Compiling smallvec v1.6.1
error[E0463]: canât find crate for core
|
= note: the wasm32-unknown-unknown target may not be installed
error: aborting due to previous error
For more information about this error, try rustc --explain E0463.
error[E0463]: canât find crate for core
|
= note: the wasm32-unknown-unknown target may not be installed
error: aborting due to previous error
For more information about this error, try rustc --explain E0463.
error: could not compile itoa
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finishâŚ
error[E0463]: canât find crate for core
|
= note: the wasm32-unknown-unknown target may not be installed
error: aborting due to previous error
For more information about this error, try rustc --explain E0463.
error[E0463]: canât find crate for std
|
= note: the wasm32-unknown-unknown target may not be installed
error: aborting due to previous error
For more information about this error, try rustc --explain E0463.
error: build failed
david@david-System-Product-Name:~/Downloads/holochain-develop/elemental-chat-develop$
Great thanks, got further. WASM now builds. What has happened to dna-util? The repreo is not there anymore? I think it got integrated into the conductor? But when I view the help for it in the terminal it doesnât list any commands for creating the dna?
dna-util has been deprecated, and its functions moved into âhcâ .
What environment were you using, where âhcâ is not found. Were you in the nix-shell from the nix file thatâs in the dna-build-tutorial project?
If you were, it should be there
nix-shell doesnât work properly on WSL2 in Windows, had nothing but issues with it (see some of the latest above) so now need to use crates directly as a workaround.
Now I can finally get back to HoloNET RSM. I tried connecting and I got back the error:
Unable to connect to the remote server. No connection could be made because the target machine actively refused it. (localhost:8888)
I am running the conductor inside a nix-shell in WLS2 on Windows 10. Is the port being blocked somewhere? The odd thing this use to work fine with the old Redux version.
I noticed it is a lot more complicated with more steps than it use to be. This is what I hope to hide away under the hood with HoloNET and the Low-Code .NET HDK I have been working on (I actually finished this last Sept and was about to release it when RSM was announced, so I had to shelve it until I could add RSM support so you can imagine my frustration! lol
It dynamically generates rust and c# code from templates from a meta-model. It makes building hApps much quicker and you can also debug them because it uses rust for the DAL (Data Access Layer) and it uses C# for the BLL (Business Logic Layer). So people can focus on their app idea rather than the technical DAL stuff. This uses HoloNET under the hood to connect to the conductor. If we could have a Windows binary again I could then auto-start and shutdown the conductor like it use to before nix came along⌠it could also automatically package the dna/hApp etcâŚ
Oh, and it also bridges into any other platform/network/api/protocol using the OASIS API so currently it supports Holochain, EOSIO, Ethereum, MongoDB, SEEDS, Neo4j, SQLLite & IPFS. Soon ThreeFold, ActivityPub, SOLID and many more will be addedâŚ
This is to allow people to bridge into Holochain and create a easy migration path to it. It also uses the best bits of each tech stack/platform to harnesses the power of unity consciousness⌠and removes all silos once and for all. Also when you build on it (OAPPs) you never need to migrate your code again and is always future proof because the OASIS API handles this for youâŚ
People also no longer need to keep learning new languages, stacks, etc. They just use the simple intuitive abstraction API over everythingâŚ
So the only thing holding up releasing this is getting HoloNET to connect to the new RSM conductor so any help with this would be REALLY appreciated.
Oh, and myself and Walter plan to integrate GO (Generative Objects - also written in c#) and the OASIS/.NET HDK so this would be even more powerful then!
Has anyone had any success with connecting UI (natively running on Windows) to the DNA instance (cell) running the conductor in WSL?
'Cause, whatâs the point of developing (h)apps if one canât actively test and use them⌠Last time, I had a very hard time with testing⌠Are things (relatively) stable now? How do you guys (the core team, and @guillemcordoba) test or connect to cells (in Windows; though Iâm damn sure none of you are on Windows)? Iâd request that one of you go through the pain of going through the whole (h)app development cycle on Windows and share your experience and know-hows from the experience⌠[I hate being the first in anything; especially being the first in âgoing through painâ⌠Haha!]
Yes, tryorama is usable again. You can see the dna build tutorial repo for a full working example of everything.
I donât have the bandwidth to go through that cycle, more so as windows doesnât have native nix support. And I think that apart from that there is one piece in holochain core that doesnât have windows support yet. Iâve been going through that experience of advancing through things without any or little documentation, and it feels great to share the discoveries afterwards. I encourage you to go through it if you really want something to work (eg in Windows without any VM), as of now everything is yet to be built (templates, tutorials, guides), and Iâve found myself overworked with everything, so it would be great to have others be involved in that as well
Yeah know the feeling about being overworked brother! lol also battling through health and adrenal issues, which has unfortunately slowed me down a lot but we will get there in the end!
I just tried running the conductor again today and got back another new fun error! lol
[nix-shell:~/holochain-rsm2/elemental-chat-develop/elementalChatHapp]$ hc sandbox generate ElementalChat.happ
hc-sandbox: Creating 1 conductor sandboxes with same settings
hc-sandbox: Config ConductorConfig { environment_path: EnvironmentRootPath("/tmp/tmp.xqmx7dSJtZ/VS7ZNAipLD2AIFCFc3fnP"), use_dangerous_test_keystore: false, signing_service_uri: None, encryption_service_uri: None, decryption_service_uri: None, dpki: None, keystore_path: Some("/tmp/tmp.xqmx7dSJtZ/VS7ZNAipLD2AIFCFc3fnP/keystore"), passphrase_service: None, admin_interfaces: Some([AdminInterfaceConfig { driver: Websocket { port: 0 } }]), network: None }
hc-sandbox: Created directory at: /tmp/tmp.xqmx7dSJtZ/VS7ZNAipLD2AIFCFc3fnP Keep this path to rerun the same sandbox
hc-sandbox: Created config at /tmp/tmp.xqmx7dSJtZ/VS7ZNAipLD2AIFCFc3fnP/conductor-config.yaml
Conductor ready.
Error: Failed to install app: Expected AdminResponse::AppBundleInstalled but got Error(InternalError(âConductor returned an error while using a ConductorApi: EntryDefStoreError(DnaError(WasmError(Compile(âlink error: Import not found, namespace: env, name: __debugâ))))â))
Any ideas anyone? Iâm keen to get this working ASAP, it will then enable the .NET HDK to finally be finished and bring the flood of devs, PR and resources we all need! Thanks
I tried the crate way and that worked fine until I ran the holochain command, which gave this error:
Well, this is embarrassing.
holochain had a problem and crashed. To help us diagnose the problem you can send us a crash report.
We have generated a report file at â/tmp/report-f6c586ab-f108-44bf-b551-a5dc1fa5d9ff.tomlâ. Submit an issue or email with the subject of âholochain Crash Reportâ and include the report as an attachment.