Re: [ClojureScript] ANN: ClojureScript 0.0-2030, core.async compatibility

2013-11-14 Thread Tim Visher
Figure I'd ask this on this thread since it's the latest public release.

I'm trying to get relative source maps to work and I'm not sure if I'm
doing something wrong or there's a bug.

I have the following entry in my [project.clj][] `cljsbuild` section
with `0.0-2030` in my deps:

{:id "advanced"
 :source-paths   ["src/cljs"]
 :compiler   {:pretty-print  false
  :output-to "resources/public/js/bible-plan.js"
  :output-dir"resources/public/js"
  :source-map"resources/public/js/bible-plan.js.map"
  :externs   ["externs/bible-plan-bibles-externs.js"]
  :optimizations :advanced}}

The effect that I would expect that to have would be to output
`bible-plan.js` into `resources/public/js` with the line `//#
sourceMappingURL=bible-plan.js.map` at the bottom, and
`bible-plan.js.map` into `resources/public/js`, and indeed it does.

The contents of [`bible-plan.js.map`][], however, I would expect to
have entries like:

["goog/base.js",
 "goog/string/string.js",
 "goog/debug/error.js",
 "goog/asserts/asserts.js",
 "goog/array/array.js",
 "goog/object/object.js",
 …

In it, because the all the files are being output to common directory.

Instead, it contains:

["resources/public/js/goog/base.js",
 "resources/public/js/goog/string/string.js",
 "resources/public/js/goog/debug/error.js",
 "resources/public/js/goog/asserts/asserts.js",
 "resources/public/js/goog/array/array.js",
 "resources/public/js/goog/object/object.js",
…

Which doesn't then resolve automatically because it becomes
`js/resources/public/js/…` in the resulting server.

Is this the intended behavior?

[project.clj]: 
https://github.com/timvisher/bible-plan/blob/source-maps/project.clj#L36-L53
[`bible-plan.js.map`]:
https://github.com/timvisher/bible-plan/blob/source-maps/resources/public/js/bible-plan.js.map

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [ClojureScript] ANN: ClojureScript 0.0-2030, core.async compatibility

2013-11-08 Thread Joe Smith
Thanks- addresses my duplicate bug!

---
Joseph Smith
j...@uwcreations.com
@solussd






On Nov 8, 2013, at 5:11 PM, David Nolen  wrote:

> ClojureScript, the Clojure compiler that emits JavaScript source code.
> 
> README and source code: https://github.com/clojure/clojurescript
> 
> New release version: 0.0-2030
> 
> Leiningen dependency information:
> 
> [org.clojure/clojurescript "0.0-2030"]
> 
> This release is mostly to address compatability issues with the latest
> release of core.async.
> 
> Bug fixes:
> * CLJS-663: keyword too permissive on inputs
> * CLJS-660: keyword fn behavior inconsistent with Clojure
> * CLJS-528: Warns on any attempted extension of protocols
>   to base JavaScript types, using the new warning system.
> 
> 
> -- 
> Note that posts from new members are moderated - please be patient with your 
> first post.
> --- 
> You received this message because you are subscribed to the Google Groups 
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.