This site requires JavaScript, please enable it in your browser!
Greenfoot back
BardyL
BardyL wrote ...

2017/8/30

Greenfoot 3.1 not compiling

BardyL BardyL

2017/8/30

#
Hi everyone. I've got a serious problem as a teacher with Greenfoot at the beginning of programming lesson. Greenfoot 3.1 (Windows & Windows portable) compiles correctly (and automatically after each code editing) class and project for 2-3 times and then it doesn't compile anymore. No error message. You can do whatever change you want to your code, no more automatic compilation happens. Even asking manually Greenfoot to compile the modified class (Compile button or CTRK + K shortcut) doesn't generate any reaction and compilation. So I've just tried to stop and relaunch Greenfoot + loading the same project. Here I've got the following message "The world class can't compiled. One of the classes may have an error, check them to initialize the scenario." Right after this I've checked code of all of the classes (Moon & Rocket -> it's a Lunar Landing very simplified scenario with just an animation of the landing, without user control). In order to simulate a change, I've just erased a few spaces + empty lines into the Rocket class (no change to the code). And then it recompiles again correctly... It's really a problem if Greenfoot sometimes compiles, sometimes not (more especially without reaction or error message : simply the previous version of the code is executed and not the last update version)... Very hard to test code for students and make demonstration for teacher. Any idea for being sur Greenfoot compiles each it is asked or has to do it? Thanks for attention, Laurent
Super_Hippo Super_Hippo

2017/8/30

#
I can confirm that. I didn't notice a number like "2-3 times", but sometimes it doesn't try to compile anymore and just uses the code from the last compilation. For me though, a restart of Greenfoot always eliminated the issue and it worked again. It starts with the "old" version and I can immediately see that it compiles (or tries to if there is indeed an error somewhere) and after that, it works for some time before the same error occurs again. However, sometimes this happens pretty quickly and sometimes it doesn't for a long time. I couldn't figure out what could cause it yet.
Yehuda Yehuda

2017/8/30

#
I have the same as Hippo. I once started a discussion on this (it might have been under the user Nosson1459) but (as can be seen) there was no change, and I didn't get a fix in that discussions either (just agreements). You should (have) categorize(d) this discussion as "Other", not "Programming".
davmac davmac

2017/8/31

#
I have entered a bug in our bug tracker: http://bugs.bluej.org/browse/GREENFOOT-629 It should likely be fixed in the next release, however that may be some time away. In the meantime if anyone can reliably reproduce this (and give us clear instructions for doing so) it would be helpful.
You need to login to post a reply.