We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to run this first example of HttpServer via clojuredart https://api.dart.dev/stable/2.17.1/dart-io/HttpServer-class.html I wrote this code
(ns aim.main (:require ["dart:io" :as io])) (defn main [] (let [server (await (.bind io/HttpServer (.-anyIPv6 io/InternetAddress) 8080))] (.forEach server (fn [^io/HttpRequest r] (.close (.-response r)) nil))))
When I try to dart run, it generates this error:
dart run
Failed to build aim:aim: lib/cljd-out/aim/main.dart:5:8: Error: Can't access platform private library. import "dart:_http" as d_http;
src:
https://github.com/souenzzo/aim
The text was updated successfully, but these errors were encountered:
Ok, I reproduced it - Will fix it soon
Sorry, something went wrong.
between, to make it pass right now you can use (let [^io/HttpServer server ...
(let [^io/HttpServer server ...
This works ^io/HttpServer server (await But this, don't server ^io/HttpServer (await
^io/HttpServer server (await
server ^io/HttpServer (await
In clojure, they are equivalent. This is a know/documented difference from clojure?
@souenzzo it's fixed on the compiler. for type hinting it's a bug in this case
No branches or pull requests
I'm trying to run this first example of HttpServer via clojuredart
https://api.dart.dev/stable/2.17.1/dart-io/HttpServer-class.html
I wrote this code
When I try to
dart run
, it generates this error:src:
https://github.com/souenzzo/aim
The text was updated successfully, but these errors were encountered: