clojurescript error

2012-05-12 Thread Murtaza Husain
Hi, I have an array of maps defined as below - (def input-boxes [{:name ":person/first-name" :label-text "Full Name" :help-text "Please enter your full name as - First Middle Last"} {:name ":person/ejamaat" :label-text "Ejamaat Number" :placeholder-text "Ejamaat #"} {:

Re: clojurescript error

2012-05-13 Thread David Nolen
How are you compiling your source? On Sunday, May 13, 2012, Murtaza Husain wrote: > Hi, > > I have an array of maps defined as below - > > (def input-boxes [{:name ":person/first-name" :label-text "Full Name" > :help-text "Please enter your full name as - First Middle Last"} > {:name

Re: clojurescript error

2012-05-13 Thread Murtaza Husain
I am using Chris Ganger's noir-cljs. Any leads on how I could debug it? Thanks, Murtaza On Sunday, May 13, 2012 7:35:13 PM UTC+5:30, David Nolen wrote: > > How are you compiling your source? > > On Sunday, May 13, 2012, Murtaza Husain wrote: > >> Hi, >> >> I have an array of maps defined as b

Re: clojurescript error

2012-05-14 Thread Raju Bitter
I've compiled your code without problems in the CLJS REPL, and embedded in a CLJS app I'm working on. Do you get the same bug when you evaluate your code snippet using the script/repljs? Raju -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: clojurescript error

2012-05-14 Thread Murtaza Husain
Raju thanks for your comments. I tried building using cljsbuild and the code is now compiling without any errors. I am curious to know, when you say script/repljs, are you referring to the browser based repl that cljsbuild provides access to or a cmd based repl? How do you access the latter?

Re: clojurescript error

2012-05-26 Thread Alexander Kellett
A clean of temp files (namely, rm -rf resources/public/cljs) source tree should have fixed it. Just worked for me after upgrading to latest ClojureScript. On Monday, May 14, 2012 3:29:16 AM UTC+2, Murtaza Husain wrote: > > > I am using Chris Ganger's noir-cljs. > > Any leads on how I could de

ClojureScript error messages

2012-03-18 Thread Aaron
Is there any reason why ClojureScript does not return a source file and line number when there are reader errors? All I get is a long stack trace that only has line numbers for the clojure/clojurescript code that threw - not very helpful. Looking at the source for cljs.compiler/compile-file* a

Re: ClojureScript error messages

2012-03-18 Thread David Nolen
On Fri, Mar 16, 2012 at 6:11 PM, Aaron wrote: > Is there any reason why ClojureScript does not return a source file and > line number when there are reader errors? All I get is a long stack trace > that only has line numbers for the clojure/clojurescript code that threw - > not very helpful. > >

Re: ClojureScript error messages

2012-03-19 Thread Aaron
I pushed the patch to my fork on github in this commit: https://github.com/aaronc/clojurescript/commit/3193ed6e27061765782da32d36a63b0f7630f5e9 Should I submit a pull request? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

Re: ClojureScript error messages

2012-03-19 Thread David Nolen
On Mon, Mar 19, 2012 at 1:36 PM, Aaron wrote: > I pushed the patch to my fork on github in this commit: > https://github.com/aaronc/clojurescript/commit/3193ed6e27061765782da32d36a63b0f7630f5e9 > > Should I submit a pull request? Clojure doesn't take pull requests. Have you sent in your CA? If

Re: ClojureScript error messages

2012-03-20 Thread Aaron Craelius
Not yet. I'll have to take care of that. On Mon, Mar 19, 2012 at 5:48 PM, David Nolen wrote: > On Mon, Mar 19, 2012 at 1:36 PM, Aaron wrote: > >> I pushed the patch to my fork on github in this commit: >> https://github.com/aaronc/clojurescript/commit/3193ed6e27061765782da32d36a63b0f7630f5e9 >

Clojurescript Error: Undefined nameToPath for goog.ui

2013-04-15 Thread Răzvan Rotaru
Hi, I am currently unable to get to the bottom of a "undefined nameToPath" error in clojurescript. Here's the script: *test.cljs:* (ns test (:require [goog.dom :as gdom] [goog.ui :as gui])) (.render (new gui/Button "Hello!") (gdom/getElement "b1")) And the compiled output: *test.js (compile

Re: Clojurescript Error: Undefined nameToPath for goog.ui

2013-04-16 Thread Răzvan Rotaru
I found the cause after looking at google closure more closely. The following is wrong: goog.require('goog.ui'); It must be: goog.require('goog.ui.Button'); So the correct clojurescript code is: (ns test (:import goog.ui.Button)) (.render (new Button "Hello!") (goog.dom/getElement "b1"))

Re: Clojurescript Error: Undefined nameToPath for goog.ui

2013-04-18 Thread Răzvan Rotaru
Hmm, I'm stuck again. :) I don't know why, but it seems that building the project with * lein-cljsbuild* does not accept :import. Here's the code: (ns habarnam (:use [domina :only [xpath]]) (:import [goog.ui [Button]]) And here's the compilation error: Compiling ClojureScript. Compiling

Re: Clojurescript Error: Undefined nameToPath for goog.ui

2013-04-18 Thread Michał Marczyk
Firstly, :import in ClojureScript only supports symbols as libspecs, so you'd need to write (:import goog.ui.Button) (foo Bar Quux) support could be added easily, but currently ClojureScript's ns form doesn't support the equivalents for :require and :use, to it makes sense to expect full names

ClojureScript: Error when calling require in repljs REPL.

2011-12-18 Thread Fiel Cabral
I'm trying to learn ClojureScript and I get this error when calling require in the repljs REPL: (I ran these commands after cloning the git repo last night and running script/bootstrap) ./script/repljs "Type: " :cljs/quit " to quit" ClojureScript:cljs.user> (+ 1 1) 2 ClojureScript:cljs.user> (zer

Re: ClojureScript: Error when calling require in repljs REPL.

2011-12-18 Thread Fiel Cabral
I found the answer in the clojurescript wiki under "The REPL and Evaluation Environments". https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments (require x) is not supported but (ns ...) supports :require. On Dec 18, 4:23 pm, Fiel Cabral wrote: > I'm trying to learn