Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-29 Thread Bozhidar Batsov
Sounds like a plan to me. :-) On 28 July 2015 at 20:35, Stuart Sierra wrote: > Thanks for the responses everyone. > > So far, my general plan is starting to look like this: > > c.t.n.*dependency* and c.t.n.*track* are platform agnostic. > > c.t.n.*file* and c.t.n.*parse* can be extended to suppo

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-28 Thread Stuart Sierra
Thanks for the responses everyone. So far, my general plan is starting to look like this: c.t.n.*dependency* and c.t.n.*track* are platform agnostic. c.t.n.*file* and c.t.n.*parse* can be extended to support Clojure & ClojureScript by adding an optional argument read-opts passed through to too

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-28 Thread W. David Jarvis
Yagni uses dir/scan-all and tracker. Would love to have ClojureScript support. On Saturday, July 25, 2015 at 7:29:24 PM UTC-4, Brian Marick wrote: > > Midje > > Stuart Sierra wrote: > > 1. Do you need/want ClojureScript support? > > Eventually, but not soon. > > > > > 2. What namespa

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-25 Thread Brian Marick
Midje Stuart Sierra wrote: 1. Do you need/want ClojureScript support? Eventually, but not soon. 2. What namespaces (repl, find, dir, file, parse) do you call in tools.namespace? repl, dir, track, reload 3. How would you like to distinguish between "get me Clojure sources" a

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-25 Thread Stuart Sierra
On Sat, Jul 25, 2015 at 11:15 AM, Bozhidar Batsov wrote: > it'd be great if we could provide the same functionality for cljs. I'd like to say I know how to do that, but I just don't think it's possible right now. The way tools.namespace does reloading in Clojure(JVM) depends on implementation de

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-25 Thread Bozhidar Batsov
Stuart mentioned that equivalent tools already exist for cljs, but I'm not sure what he refers to. CIDER makes use of `c.t.n.repl/refresh` (its lower-level blocks to be precise) and it'd be great if we could provide the same functionality for cljs. On 25 July 2015 at 17:37, Dylan Butman wrote: >

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-25 Thread Stuart Sierra
On Sat, Jul 25, 2015 at 10:37 AM, Dylan Butman wrote: > Clojurescript support would be a fantastic improvement for reloading cljs > component systems. As I said, I am not planning a complete port of the reloading functionality of clojure.tools.namespace.repl to work in ClojureScript. The mechan

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-25 Thread Dylan Butman
I use .repl constantly for namespace reloading. Clojurescript support would be a fantastic improvement for reloading cljs component systems. On Friday, July 24, 2015 at 5:14:04 PM UTC-4, Stuart Sierra wrote: > > Hello to anyone and everyone writing tools for working with Clojure and > ClojureScr

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-25 Thread Lars Andersen
refactor-nrepl, which is the brain behind refactoring libraries like clj-refactor and clj-light-refactor uses: 1. find/find-namespaces-in-jarfile 2. file/clojure-file? 3. find/find-clojure-sources-in-dir 4. parse/read-ns-decl And finally, dependency, file and track are used together to get a lis

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-25 Thread Daniel Compton
Kibit uses a vendored copy of file/clojure-file? and find/find-clojure-sources-in-dir, to support other possible Clojure extensions like cljx. Without the ability to add more extensions like cljx we couldn't switch back, however even if they were added, it's probably not worth adding the dep for tw

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-24 Thread Ambrose Bonnaire-Sergeant
In core.typed I use *parse* and *file* to parse Clojure files and probably ClojureScript files eventually. I resolve the files myself so I don't have strong opinions on 3). Thanks, Ambrose On Sat, Jul 25, 2015 at 5:14 AM, Stuart Sierra wrote: > Hello to anyone and everyone writing tools for wo

Tool authors: ClojureScript support in tools.namespace?

2015-07-24 Thread Stuart Sierra
Hello to anyone and everyone writing tools for working with Clojure and ClojureScript source files … I've been looking into adding better support for ClojureScript in tools.namespace. It's not a trivial problem. Lots of places in tools.namespace assume there is only one kind of source file. Fo