Comments (6)
I can't reproduce what you are describing.
When you look at both generated dart under lib/cljd-out/quickstart/helloworld.dart
the code looks great.
Maybe I am missing something
from clojuredart.
Indeed, that looks fine. But when I run the program I get these results:
~/Projects/tests/clojuredart/repro/helloworld % dart run
Building package executable... (1.0s)
Built helloworld:helloworld.
hello, world
~/Projects/tests/clojuredart/repro/hello-clojurdart % dart run
Building package executable...
Built hello_clojurdart:hello_clojurdart.
Hello world!
You don't? Is there some info from my system I should provide that could point at what is making the difference?
from clojuredart.
and if you do
dart run -t /lib/cljd-out/quickstart/helloword.dart
?
from clojuredart.
That gives me an error that -t
is not an known option. But if I skip the -t
:
~/Projects/tests/clojuredart/repro/hello-clojurdart % dart run lib/cljd-out/quickstart/helloworld.dart
lib/cljd-out/quickstart/helloworld.dart: Warning: Interpreting this as package URI, 'package:hello_clojurdart/cljd-out/quickstart/helloworld.dart'.
hello, world
I don't know what I am doing here, totally new to Dart. 😄
from clojuredart.
The contents of the bin
directory is quite different between the two:
- https://github.com/PEZ/clojuredart-quickstart-root-problem/tree/master/hello-clojurdart/bin2.
- There's a
bin/hello_clojurdart.dart
here with the code that matches what is executed withdart run
- And also a
bin/hello-clojurdart.dart
which just imports the stuff inlib
- There's a
- https://github.com/PEZ/clojuredart-quickstart-root-problem/tree/master/helloworld/bin
- Here only a
bin/helloworld.dart
with the imports.
- Here only a
from clojuredart.
ah ah it's some dash-munging on the Dart side!
from clojuredart.
Related Issues (20)
- platform conditionals HOT 3
- doseq and for but for streams
- Add a "nano pass" to the compiler to perform statements lifting
- Stop generating dart functions HOT 1
- Make magicast open
- `:keep-alive` on `f/widget` HOT 1
- Can't `with-open` HOT 4
- Printing cyclic data structure causes stack overlow HOT 1
- `doseq` with `await` in body evaluates to a future HOT 1
- cljd type parameter inference on static methods could be better
- Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null.
- static methods on interfaces backing protocols
- Type hinting a `Future` fn won't compile
- Resolution of types across conditional import/export
- Loose type inference on functions that are type hinted
- How to write this go_router example in this? HOT 9
- (docs) Minor typo in the cheatsheet HOT 2
- Interoperability with Flutter/Dart Dart code HOT 4
- Type inference on destructuring headers with http HOT 1
- magicast Error: A value of type 'num' can't be returned from a function with return type 'int?'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clojuredart.