Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erjang: Elements with attributes throw an error #4

Open
oubiwann opened this issue Apr 11, 2014 · 0 comments
Open

Erjang: Elements with attributes throw an error #4

oubiwann opened this issue Apr 11, 2014 · 0 comments
Milestone

Comments

@oubiwann
Copy link
Member

Using simple Exemplar in Erjang works:

LFE Shell V5.10.1 (abort with ^G)
> (p '"My paragraph.")
"<p>My paragraph.</p>"
> (html (body (div (p '"A paragraph in my page."))))
"<html><body><div><p>A paragraph in my page.</p></div></body></html>"

However, when trying to add attributes to an element, an error is thrown:

> (div '(class "some-css") '"some content")
Apr 11, 2014 9:57:21 AM erjang.EProc execute0
SEVERE: [java] exiting <0.0.1139> with:
java.lang.InternalError: bad capture_type index
    at erjang.m.re.Native.nocapture(Native.java:290)
    at erjang.m.re.Native.capture(Native.java:300)
    at erjang.m.re.Native.run2(Native.java:171)
    at erjang.m.re.Native.run(Native.java:110)
    at erjang.m.re.re.do_replace__5(re.erl)
    at erjang.m.re.re.do_replace__5$call(re.erl)
    at erjang.m.re.re.replace__4(re.erl)
    at erjang.m.re.re$FN_replace__4.go2(Unknown Source)
    at erjang.EFun.go(EFun.java:76)
    at erjang.EFun1.invoke(Unknown Source)
    at erjang.m.exemplar.exemplar.$2Dopening$2Dtag__3(exemplar.lfe:65535)
    at erjang.m.exemplar.exemplar$FN_$2Dopening$2Dtag__3.go(Unknown Source)
    at erjang.EFun2.invoke(Unknown Source)
    at erjang.m.exemplar$2Dxml.exemplar$2Dxml.make$2Dxml__3(exemplar-xml.lfe:65535)
    at erjang.m.exemplar$2Dxml.exemplar$2Dxml$FN_make$2Dxml__3.go(Unknown Source)
    at erjang.EFun2.invoke(Unknown Source)
    at erjang.m.lfe_shell.lfe_shell.eval_exp_form__2(lfe_shell.erl:187)
    at erjang.m.lfe_shell.lfe_shell$FN_eval_exp_form__2.go(Unknown Source)
    at erjang.m.lfe_shell.lfe_shell.eval_form__2$call(lfe_shell.erl)
    at erjang.m.lfe_shell.lfe_shell.server_loop__1(lfe_shell.erl:80)
    at erjang.m.lfe_shell.lfe_shell$FN_server_loop__1.go(Unknown Source)
    at erjang.m.erlang.ErlBif.apply(ErlBif.java:140)
    at erjang.m.erlang.ErlBif$FN_apply__2.go(Unknown Source)
    at erjang.EProc.execute1(EProc.java:682)
    at erjang.EProc.execute0(EProc.java:607)
    at erjang.EProc.execute(EProc.java:590)
    at kilim.Task._runExecute(Task.java)
    at kilim.WorkerThread.run(WorkerThread.java:32)
@oubiwann oubiwann changed the title Erjang: Elemens with attributes throw an error Erjang: Elements with attributes throw an error Apr 11, 2014
@oubiwann oubiwann added this to the Backlog milestone Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant