-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Undefined symbols for architecture arm64 #7447
Comments
Hi @BlowaterNostr, I'm not sure if you want to build the platform from source or not, if not use this:
if you do want to build basic-cli from source:
If I made an incorrect assumption, seeing your full I'll add a nice comment that links to the build instructions in each example. |
I've made some improvements to the basic-cli examples: Feel free to provide additional suggestions for improvements. |
@Anton-4 the code you pasted works but I get a new error: app [main!] {
pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br",
json: "https://github.com/lukewilliamboswell/roc-json/releases/download/0.11.0/z45Wzc-J39TLNweQUoLw3IGZtkQiEN3lTBv3BXErRjQ.tar.br",
}
import pf.Http
import pf.Stdout
import json.Json
# HTTP GET request with easy decoding to json
main! = \_args ->
# Easy decoding/deserialization of { "foo": "something" } into a Roc var
{ foo } = try Http.get! "http://localhost:8000" Json.utf8
# If you want to see an example of the server side, see basic-cli/ci/rust_http_server/src/main.rs
Stdout.line! "The json I received was: { foo: \"$(foo)\" }"
got
|
@BlowaterNostr -- you've posted an example using the older release of basic-cli. The new (still pre-release) is required if you want to use purity inference. This works for me.... if I have a server running locally app [main!] {
pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o.tar.br",
json: "https://github.com/lukewilliamboswell/roc-json/releases/download/0.11.0/z45Wzc-J39TLNweQUoLw3IGZtkQiEN3lTBv3BXErRjQ.tar.br",
}
import pf.Http
import pf.Stdout
import json.Json
# HTTP GET request with easy decoding to json
main! = \_args ->
# Easy decoding/deserialization of { "foo": "something" } into a Roc var
{ foo } = try Http.get! "http://localhost:8000" Json.utf8
# If you want to see an example of the server side, see basic-cli/ci/rust_http_server/src/main.rs
Stdout.line! "The json I received was: { foo: \"$(foo)\" }" |
The text was updated successfully, but these errors were encountered: