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

Editing renderContentOn in browser causes methodHasNoSourceCode on the server #811

Closed
GoogleCodeExporter opened this issue Mar 25, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Seaside Version: 3.1
Pharo Version: 3.0
OS: Linux (32 Bit, Slackware)

I grabbed Pharo 3.0 and installed Seaside "by hand".

Problem: 

Editing renderContentOn: on the server: updates nicely into the browser, edits 
visible in the classbrowser in browser. 

Editing renderContentOn: in the browser: causes renderContentOn: on the server 
to have "methodHasNoSourceCode". All code gone. When I then re-edit in the 
classbrowser in browser, everything is lost. 

I just tested whether or not it makes a difference if I just click "create new 
component" on the seaside welcome page or if I make it on the server by hand: 
It does not. 






Original issue reported on code.google.com by trys...@gmail.com on 13 Aug 2014 at 9:49

@GoogleCodeExporter
Copy link
Author

I put some more work in and verified the following combinations:

One Click Image 3.0.x: Does not contain the bug
One Click Image 3.1: Does not contain the bug (uses Pharo 2 underneath

It seems that this is a problem of Pharo 3 with Seaside 3.1

Original comment by trys...@gmail.com on 13 Aug 2014 at 10:51

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Just to be sure:
You load Seaside 3.1 into Pharo 3.0? Do you use Metacello and 
ConfigurationOfSeaside3?

If you can you post the doIt that you used?

You edit #renderContentOn: of a component using the web based tools?

Original comment by philippe...@gmail.com on 13 Aug 2014 at 1:35

  • Added labels: Platform-Pharo
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

I did use Pharo 3.0 and Seaside 3.1, yes. 

I copy/pasted the installation from seaside.st:

Gofer new
    url:'http://www.smalltalkhub.com/mc/Seaside/MetacelloConfigurations/main';
    package: 'ConfigurationOfSeaside3';
    load.
((Smalltalk at: #ConfigurationOfSeaside3) project version: #stable) load.

which caused an error which went away when I removed project version: #stable 
and it installed Seaside 3.1 (not 3.0) on its own cleanly.

So my doIt was in the end:

Gofer new
    url:'http://www.smalltalkhub.com/mc/Seaside/MetacelloConfigurations/main';
    package: 'ConfigurationOfSeaside3';
    load.
((Smalltalk at: #ConfigurationOfSeaside3)) load.

Yes, I then edited renderContentOn: via web and _this_ causes renderContentOn 
having methodHasNoSourceCode on the server. 

All other versions and combinations I tried and could get up and running work 
perfectly fine with editing in web AND on the server and not overriding each 
other or any problem.

I didn't want the old Pharo 2 version with Seaside 3.1 (the one click image 
uses that) so I tried making it work with 3.0. 

Original comment by trys...@gmail.com on 13 Aug 2014 at 3:02

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Original comment by philippe...@gmail.com on 16 Aug 2014 at 9:44

  • Changed state: Started
  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

This is a Pharo 3 bug. Browser is broken in Pharo 3.

Browser >> #setSelector: sends #numberOfCategoryOfElement: to a 
ClassOrganization object but #numberOfCategoryOfElement: is only implemented in 
Categorizer.

Please file a bug against Pharo 3.

Original comment by philippe...@gmail.com on 16 Aug 2014 at 10:24

  • Changed state: Upstream
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant