Opal compilation [WAS] Re: [Seaside] Re: Pharo 3 / Seaside 3.1 - development time error

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

Opal compilation [WAS] Re: [Seaside] Re: Pharo 3 / Seaside 3.1 - development time error

Mariano Martinez Peck
Ok...I can reproduce it. The difference between Pharo 3.0 and 2.0 is likely that in 3.0 we have the new Opal compiler. If I debug your problem, it seems Opal is not able to even parse the method. It fails with a SyntaxErrorNotification. Example:

Variable or expression expected -> renderContentOn: html
self wasShown
ifTrue: [ ^ self ].
self messageString
ifNotNil: [ 
self messageType = 'error'
ifTrue: [ 
html tbsAlert
beDanger;
with: [ html text: self messageString ] ].
self messageType = 'info'
ifTrue: [ 
html tbsAlert
beInfo;
with: [ html text: self messageString ] ].
self messageType = 'success'
ifTrue: [ 
html tbsAlert
beSuccess;
with: [ html text: self messageString ] ].
].
self wasShown: true




On Thu, Dec 11, 2014 at 9:52 AM, Sanjay-M <[hidden email]> wrote:
I do not get an error in the Seaside one-click experience 3.1 from seaside.st
pharo page which uses pharo 2.0

With a fresh 3.0 image and loading seaside 3.1 using the Gofer method - the
issue persists (i.e. I cannot save code from Seaside class browser and get
an error:
      MessageNotUnderstood: receiver of "generateWithSource" is nil
      Your request could not be completed. An exception occurred.)

and this is further broken in pharo 4.0 where the class browser does not
come up completely

can I get some help as I do not wish to revert to an older pharo version

regards
Sanjay


Sven Van Caekenberghe-2 wrote
> Sorry, I can't help you with Windows.
>
>> On 11 Dec 2014, at 12:04, Sanjay-M &lt;

> sm@

> &gt; wrote:
>>
>> I am in a Windows environment and am running the VM and image from the
>> same
>> directory
>>
>> what is the equivalent of below in a Win 7 ennvironment
>>
>> thanks
>> Sanjay
>>
>>
>> Sven Van Caekenberghe-2 wrote
>>> Are you sure your image can access its changes and sources ?
>>>
>>> Can you do something like
>>>
>>> $ ./bin/pharo -vm-display-null t3.image eval '(String>>#capitalized)
>>> sourceCode'
>>> 'capitalized
>>>     "Return a copy with the first letter capitalized"
>>>     | cap |
>>>     self isEmpty ifTrue: [ ^self copy ].
>>>     cap := self copy.
>>>     cap at: 1 put: (cap at: 1) asUppercase.
>>>     ^ cap'
>>>
>>> ?
>>>
>>>> On 11 Dec 2014, at 10:39, Sanjay-M &lt;
>>
>>> sm@
>>
>>> &gt; wrote:
>>>>
>>>> Hi
>>>>
>>>> In Pharo 3 + Seaside 3.1
>>>> I get the following error in Halos->class browser
>>>> when I edit renderContentOn: (add a line) and hit [accept]
>>>>
>>>>   MessageNotUnderstood: receiver of "generateWithSource" is nil
>>>>   Your request could not be completed. An exception occurred.
>>>>
>>>> and also in Pharo 4 + seaside 3.1
>>>> the class browser does not work
>>>> (there is an error when loading Seaside itself which is in another
>>>> post)
>>>>
>>>> regards
>>>> Sanjay
>>>>
>>>>
>>>>
>>>>
>>>> -----
>>>> ---
>>>> Regards, Sanjay
>>>> --
>>>> View this message in context:
>>>> http://forum.world.st/Pharo-3-Seaside-3-1-development-time-error-tp4795419.html
>>>> Sent from the Seaside General mailing list archive at Nabble.com.
>>>> _______________________________________________
>>>> seaside mailing list
>>>>
>>
>>> seaside@.squeakfoundation
>>
>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>>> _______________________________________________
>>> seaside mailing list
>>
>>> seaside@.squeakfoundation
>>
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>>
>>
>>
>> -----
>> ---
>> Regards, Sanjay
>> --
>> View this message in context:
>> http://forum.world.st/Pharo-3-Seaside-3-1-development-time-error-tp4795419p4795437.html
>> Sent from the Seaside General mailing list archive at Nabble.com.
>> _______________________________________________
>> seaside mailing list
>>

> seaside@.squeakfoundation

>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list

> seaside@.squeakfoundation

> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside





-----
---
Regards, Sanjay
--
View this message in context: http://forum.world.st/Pharo-3-Seaside-3-1-development-time-error-tp4795419p4795454.html
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Opal compilation [WAS] Re: [Seaside] Re: Pharo 3 / Seaside 3.1 - development time error

Sanjay Minni
thanks Mariano

and ... could you also check 4.0

pls see
http://forum.world.st/Warning-on-installing-Seaside-3-1-on-Pharo4-0-build-40366-td4789949.html

there is an error while loading the seaside 3.1 / 3.2 package itself - I proceed - it does seem to work fine after that except that the class browser does not come up

I do look forward to it being fixed as I am aiming for a commercial application very soon

thanks
Sanjay
cheers,
Sanjay
Reply | Threaded
Open this post in threaded view
|

Re: Opal compilation [WAS] Re: [Seaside] Re: Pharo 3 / Seaside 3.1 - development time error

Mariano Martinez Peck
Hi,

Why don't you send the result of the evaluation Sven said? that will tell us if you sources file is being found or not. 


On Thu, Dec 11, 2014 at 10:14 AM, Sanjay-M <[hidden email]> wrote:
thanks Mariano

and ... could you also check 4.0

pls see
http://forum.world.st/Warning-on-installing-Seaside-3-1-on-Pharo4-0-build-40366-td4789949.html

there is an error while loading the seaside 3.1 / 3.2 package itself - I
proceed - it does seem to work fine after that except that the class browser
does not come up

I do look forward to it being fixed as I am aiming for a commercial
application very soon

thanks
Sanjay



-----
---
Regards, Sanjay
--
View this message in context: http://forum.world.st/Opal-compilation-WAS-Re-Seaside-Re-Pharo-3-Seaside-3-1-development-time-error-tp4795458p4795462.html
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside