Evaluation bug ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Evaluation bug ?

Bruno-2
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.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Evaluation bug ?

Bruno-2
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.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Evaluation bug ?

Nicolas Petton
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,

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.
 
 


--
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.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Evaluation bug ?

Bruno-2
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ó:
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="cwbLXmjA7BwJ">bruno.b...@...> wrote:

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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="cwbLXmjA7BwJ">amber-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
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.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Evaluation bug ?

Nicolas Petton
thanks!

Nico

On Jun 17, 2013, at 4:50 PM, Bruno <[hidden email]> wrote:

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ó:
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="cwbLXmjA7BwJ">bruno.b...@...> wrote:

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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="cwbLXmjA7BwJ">amber-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
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.
 
 


--
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.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Evaluation bug ?

laci
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.
Reply | Threaded
Open this post in threaded view
|

Re: Evaluation bug ?

Bruno-2
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.
I got this bug in Firefox. Chrome seems to work fine.



--
View this message in context: http://forum.world.st/Evaluation-bug-tp4693614p4694011.html
Sent from the Amber Smalltalk mailing list archive at Nabble.com.

--
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.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Evaluation bug ?

Bruno-2
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
Reply | Threaded
Open this post in threaded view
|

Re: Evaluation bug ?

Nicolas Petton
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, 

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>


--
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.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Evaluation bug ?

Bruno-2
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.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Evaluation bug ?

Nicolas Petton
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,

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.
 
 


--
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.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Evaluation bug ?

Bruno-2
Hi Nicolas,

I already did it.

Regards,
Bruno

El jueves, 27 de junio de 2013 07:41:38 UTC-3, nicolas petton escribió:
thanks Bruno. Can you update the issue on the bug tracker?

Nico

On Jun 27, 2013, at 12:55 AM, Bruno <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ODObQmmJM0cJ">bruno.b...@...> wrote:

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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ODObQmmJM0cJ">amber-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
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.