Hi,
i evaluated some code in Amber Workspace: document links asJQuery toArray detect: [:e | e text = 'Get involved']. "Working OK" But if you evaluate: | link | link := document links asJQuery toArray detect: [:e | e text = 'Get involved']. Gives the following errror: JavaScript exception: InternalError: too much recursion. I used the Amber environment of your web page. Regards, Bruno -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Hi,
I rewrite the previous messages as following and this fix it. Is this a bug or feature ? (to avoid nested messages) | link block node | block := [:e | e text = 'Get involved']. link := document links asJQuery toArray. node := link detect: block. node click. Amber is pretty cool, to be able to evaluate Javascript on the fly in a Workspace. Regards, Bruno -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Hi Bruno,
Can you report the issue on the issue tracker on github at https://github.com/amber-smalltalk/amber/issues Thanks in advance, Nico On Jun 17, 2013, at 2:30 AM, Bruno <[hidden email]> wrote: Hi, -- Nicolas Petton http://www.nicolas-petton.fr You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
hi,
The issue has been reported: https://github.com/amber-smalltalk/amber/issues/521 Regards, Bruno El lunes, 17 de junio de 2013 06:47:52 UTC-3, nicolas petton escribió: -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
thanks!
Nico On Jun 17, 2013, at 4:50 PM, Bruno <[hidden email]> wrote: hi, -- Nicolas Petton http://www.nicolas-petton.fr You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
In reply to this post by Bruno-2
I have the feeling that it is browser specific.
I got this bug in Firefox. Chrome seems to work fine. |
Hi,
Yes, i commented that on https://github.com/amber-smalltalk/amber/issues/521 "The error happens in Firefox 21.0. I tested in Chrome and works ok." Regards, Bruno On Tuesday, June 18, 2013 5:28:28 PM UTC-3, laci wrote:
-- I have the feeling that it is browser specific. You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Hi,
I played with this error in order to gain more knowledge on Amber, i did a some tests with odd results. Without changing the test code sometime all tests passed and somtime not. Working with Windows 7 and Firefox 21.0. With Chrome everything works ok. Check the AVI video of the tests. I will try to figure out what is going on on Firefox. TestCase subclass: #CompilerTest instanceVariableNames: 'source' package: 'Bruno-Tests' setUp source := '| link | link := document links asJQuery toArray detect: [:e | e text = ''Get involved'']' testCompileExpression | result compiler | compiler := Compiler new. result := true. self assert: ((compiler compileExpression: source) class = String). testCompileExpressionOn | result compiler | compiler := Compiler new. result := true. self assert: ((compiler compileExpression: source on: DoIt new) class = String). testCompileNode | result compiler node | compiler := Compiler new. compiler currentClass: DoIt. source := 'xxxDoIt ^[', source, '] value'. result := true. [node := compiler parse: source] on: Error do:[:err | result := false]. self assert: result. [node := compiler compileNode: node] on: Error do:[:err | result := false]. testParseAndCompileNode | result compiler node | compiler := Compiler new. compiler currentClass: DoIt. source := 'xxxDoIt ^[', source, '] value'. result := true. [compiler compileNode: (compiler parse: source)] on: Error do:[:err | result := false]. self assert: result. testParseSource | result compiler | compiler := Compiler new. source := 'xxxDoIt ^[', source, '] value'. result := true. [compiler parse: source] on: Error do:[:err | result := false]. self assert: result. You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. amber tests firefox.avi (4M) Download Attachment |
thanks
I'll look at the compiler output to see what's really going on here. Nico On Jun 19, 2013, at 10:59 PM, Bruno <[hidden email]> wrote: Hi, -- Nicolas Petton http://www.nicolas-petton.fr You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Hi,
The issue has been fix in Firefox 22 Here the release notes. May someone can detect what change in Firefox fixed it. https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/22 Regards, Bruno -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
thanks Bruno. Can you update the issue on the bug tracker?
Nico On Jun 27, 2013, at 12:55 AM, Bruno <[hidden email]> wrote: Hi, -- Nicolas Petton http://www.nicolas-petton.fr You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Hi Nicolas,
I already did it. Regards, Bruno El jueves, 27 de junio de 2013 07:41:38 UTC-3, nicolas petton escribió: -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Free forum by Nabble | Edit this page |