[ANN] New Version of ClojureScript One

558 views
Skip to first unread message

Brenton

unread,
Jan 25, 2012, 3:40:14 PM1/25/12
to Clojure
We have released a new version of ClojureScript One.

The most significant changes are:

No more scripts! Everything now works through Leiningen. We have added
support for retrieveing git dependencies via Leiningen.

Allow connections to the REPL form remote machines.

See the change log:

https://github.com/brentonashworth/one/wiki/Change-Log

Ryan Waters

unread,
Jan 25, 2012, 4:04:23 PM1/25/12
to clo...@googlegroups.com
On Wed, Jan 25, 2012 at 2:40 PM, Brenton <bash...@gmail.com> wrote:
> We have released a new version of ClojureScript One.
>
> ...

>
> No more scripts! Everything now works through Leiningen. We have added
> support for retrieveing git dependencies via Leiningen.
>

It's nice that leiningen can handle the classpath issues and repl now.
I bet clojure-jack-in works too. Thank you!

- Ryan

Sam Aaron

unread,
Jan 25, 2012, 4:15:03 PM1/25/12
to clo...@googlegroups.com
Very nice :-) I've got some quality code reading ahead of me...

One quick question - why do you still rely on git checkouts of ClojureScript and Domina - especially now ClojureScript is available on maven?

Sam

---
http://sam.aaron.name

> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

Stuart Sierra

unread,
Jan 25, 2012, 5:09:46 PM1/25/12
to clo...@googlegroups.com
"Why git checkouts?"

We don't have automated Maven releases of ClojureScript yet, so to pull the latest code it needs to get it from git.

Maybe this Friday I'll be able to get automated releases up on Hudson.
-S

Rafał Babinicz

unread,
Jan 25, 2012, 5:07:21 PM1/25/12
to Clojure
Thanks for great work, Brenton. Keep it coming!

PS
I stubbed sever side of 'CS One's example, but still have some
troubles with making it work on mobile browsers.
Anybody try this with success?

Brenton

unread,
Jan 25, 2012, 5:27:02 PM1/25/12
to Clojure
> One quick question - why do you still rely on git checkouts of ClojureScript and Domina - especially now ClojureScript is available on maven?

ClojureScript will continue to change rapidly. We are already
depending on a newer version than the one in Maven. Also, I don't
think that Domina has a release yet.

For times when we only need a source dependency and only at
development time, I like this approach to dependencies. I plan to
continue improving support for this in Leiningen and using it as much
as i can.

For more of the rationale, see https://github.com/brentonashworth/one/wiki/Dependencies.

You rock!

Brenton

On Jan 25, 4:15 pm, Sam Aaron <samaa...@gmail.com> wrote:
> Very nice :-) I've got some quality code reading ahead of me...
>
> One quick question - why do you still rely on git checkouts of ClojureScript and Domina - especially now ClojureScript is available on maven?
>
> Sam
>
> ---http://sam.aaron.name

Sam Aaron

unread,
Jan 26, 2012, 6:34:02 AM1/26/12
to clo...@googlegroups.com

On 25 Jan 2012, at 22:27, Brenton wrote:

> ClojureScript will continue to change rapidly. We are already
> depending on a newer version than the one in Maven. Also, I don't
> think that Domina has a release yet.
>
> For times when we only need a source dependency and only at
> development time, I like this approach to dependencies. I plan to
> continue improving support for this in Leiningen and using it as much
> as i can.
>

Sounds extremely sensible.

Wow. Documentation like this makes me want to shout out with joy!

> You rock!

We all rock, and soon we'll all be rocking together at the Clojure/West Overtone unjam... I can't wait :-)

Sam

---
http://sam.aaron.name


Christofer Jennings

unread,
Jan 27, 2012, 1:05:02 PM1/27/12
to clo...@googlegroups.com
I get the error below when I run ClojureScript One's 'lein bootsrap'. Any ideas?

I'm pretty new to Clojure. This is my first time using Leiningen and first attempt at using ClojureScript. ... pretty hopeless :-)

Mac OSX 10.7.2
Clojure 1.3.0
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)

Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodError: clojure.lang.KeywordLookupSite.<init>(ILclojure/lang/Keyword;)V
at clojure.lang.Util.runtimeException(Util.java:165)
at clojure.lang.Compiler.eval(Compiler.java:6476)
at clojure.lang.Compiler.eval(Compiler.java:6431)
at clojure.core$eval.invoke(core.clj:2795)
at clojure.main$eval_opt.invoke(main.clj:296)
at clojure.main$initialize.invoke(main.clj:315)
at clojure.main$script_opt.invoke(main.clj:339)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at clojure.lang.Var.invoke(Var.java:413)
at clojure.lang.AFn.applyToHelper(AFn.java:172)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)
Caused by: java.lang.NoSuchMethodError: clojure.lang.KeywordLookupSite.<init>(ILclojure/lang/Keyword;)V
at leiningen.util.paths$native_arch_path.<clinit>(paths.clj:32)
at leiningen.util.paths__init.load(Unknown Source)
at leiningen.util.paths__init.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at clojure.lang.RT.loadClassForName(RT.java:2030)
at clojure.lang.RT.load(RT.java:417)
at clojure.lang.RT.load(RT.java:398)
at clojure.core$load$fn__4610.invoke(core.clj:5386)
at clojure.core$load.doInvoke(core.clj:5385)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5200)
at clojure.core$load_lib.doInvoke(core.clj:5237)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:602)
at clojure.core$load_libs.doInvoke(core.clj:5271)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:602)
at clojure.core$require.doInvoke(core.clj:5352)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at leiningen.core$loading__4414__auto__.invoke(core.clj:1)
at leiningen.core__init.load(Unknown Source)
at leiningen.core__init.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at clojure.lang.RT.loadClassForName(RT.java:2030)
at clojure.lang.RT.load(RT.java:417)
at clojure.lang.RT.load(RT.java:398)
at clojure.core$load$fn__4610.invoke(core.clj:5386)
at clojure.core$load.doInvoke(core.clj:5385)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5200)
at clojure.core$load_lib.doInvoke(core.clj:5237)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:602)
at clojure.core$load_libs.doInvoke(core.clj:5271)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:604)
at clojure.core$use.doInvoke(core.clj:5363)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at user$eval1.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6465)
... 11 more

Thanks for all the cool stuff!
,chris

Brenton

unread,
Jan 28, 2012, 8:28:25 AM1/28/12
to Clojure
Christofer,

This is a problem with the current version of Leiningen. There are a
couple of ways to work around the problem. Here is one:

Create a new Leiningen project.

lein new delete-me
cd delete-me

Open project.clj and change

:dependencies [[org.clojure/clojure "1.3.0"]]

to

:dependencies [[org.clojure/clojure "1.2.1"]]

Save this file and then run

lein deps

You can now delete this project. The whole point was to get
clojure-1.2.1 into your local maven repository. lein should now work
in ClojureScript One and with any other Clojure 1.3 projects.

This issue will be fixed in Leiningen soon.

Brenton
> >> For more of the rationale, seehttps://github.com/brentonashworth/one/wiki/Dependencies.

Michael J. Forster

unread,
Jan 27, 2012, 6:56:21 PM1/27/12
to Clojure
On Jan 27, 12:05 pm, Christofer Jennings <boz.li...@gmail.com> wrote:
> I get the error below when I run ClojureScript One's 'lein bootsrap'. Any ideas?
>
> I'm pretty new to Clojure. This is my first time using Leiningen and first attempt at using ClojureScript. ... pretty hopeless :-)

Hi Christofer,

No need to feel badly. I ran into the same problem myself. The short
answer is that you need to add the Leiningen standalone JAR to your
class path. For example,

export CLASSPATH="$HOME/.lein/self-installs/leiningen-1.6.2-
standalone.jar"

See this as well: http://stackoverflow.com/a/9020020


Cheers!

Mike



Craig Andera

unread,
Jan 31, 2012, 12:01:45 PM1/31/12
to clo...@googlegroups.com
> This is a problem with the current version of Leiningen. There are a
> couple of ways to work around the problem. Here is one:
>
> Create a new Leiningen project.
>
> lein new delete-me
> cd delete-me
>
> Open project.clj and change
>
> :dependencies [[org.clojure/clojure "1.3.0"]]
>
> to
>
> :dependencies [[org.clojure/clojure "1.2.1"]]
>
> Save this file and then run
>
> lein deps
>
> You can now delete this project. The whole point was to get
> clojure-1.2.1 into your local maven repository. lein should now work
> in ClojureScript One and with any other Clojure 1.3 projects.

I just ran into this myself. I think a slightly more convenient fix is to run

lein install org.clojure/clojure "1.2.1"

In any event, that did it for me. I'll try to get the wiki and website
updated so people can be aware of the workaround.

Christofer Jennings

unread,
Feb 4, 2012, 12:57:06 PM2/4/12
to clo...@googlegroups.com
Thanks All for the replies!
The
lein install org.clojure/clojure "1.2.1"
did not work for me. Got the same missing method error.

But the delete-me project approach did work. :-)

Now to have some fun!
,chris

Reply all
Reply to author
Forward
0 new messages