I've created an JIRA issue for this:
http://dev.clojure.org/jira/browse/CLJS-402
and added a patch for the build script:
---
Auto-generation from the build script of version_autogen.clj and
version_autogen.cljs files
that both define the cljs.version-autogen/clojurescript-version
with the current version info for both the clj and cljs environments
---
Feels a little crude, but it works…:
---
user=> (require 'cljs.version-autogen)
nil
user=> cljs.version-autogen/*clojurescript-version*
{:minor 0, :incremental 1514, :major 0}
user=> (run-repl-listen)
"Type: " :cljs/quit " to quit"
ClojureScript:cljs.user> (load-namespace 'cljs.version-autogen)
ClojureScript:cljs.user> cljs.version-autogen/*clojurescript-version*
{:incremental 1514, :major 0, :minor 0}
ClojureScript:cljs.user>
---
Any alternative approaches that would be more elegant?
-FrankS.
On Oct 21, 2012, at 8:02 AM, David Nolen <[email protected]> wrote:
> There is not. That would be useful.
>
> On Saturday, October 20, 2012, Frank Siebenlist wrote:
> When you have different versions of clojurescript in the dependencies of your
> main project, how do you ask the repl what version it is running with… is
> there any easy function/var that I overlooked?
>
> Thanks, FrankS.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en