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 #"}
{:
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
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
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
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?
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
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
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.
>
>
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
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
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
>
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
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"))
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
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
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
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
17 matches
Mail list logo