-
Notifications
You must be signed in to change notification settings - Fork 5
F4 launches old version of project when build fails #26
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
Comments
Others options to consider:
|
Hi Ivan, first of all, thanks for the quick turnaround on this issue. Secondly, um, sorry to say but I have problems with it! If I read the code below correctly (from the commit), it deletes all files in the output folder:
So I'm using a new F4 build that incorporates this change... Problem 1I have the Java default output folder pointing to my Fantom work environment so I may keep all my home built pods separate to those in the Fantom installation. So when Problem 2All my F4 projects have their Java output folder pointing to the same directory (the work dir), so when It is not uncommon for me to have 10 F4 projects open, all dependent on other, so when they all start re-building, it can take some time. Problem 3The rebuilding of pods is continuous until the compilation error is fixed. With the output dir cleansed, and the projects refreshed, they re-build themselves. But because that same compilation error is still there, the output dir is deleted again, the projects refreshed, and the compilation error is still there.... It's a vicious circle that repeats itself, and hogs the processor, until the compilation error is fixed. Problem 4On each rebuild I get an error prompt / pop up in F4 with the following stacktrace. This makes it difficult to fix the compilation error, because I'm too busy closing closing down these error popup windows!
I think this could be because my java output folder is a linked resource. In my
I create it using the FixesBy deleting just the project's pod (and not the entire directory), that would probably fix problems 1 & 2. For problem 3 you'd need some kind of recursion detection, or flag if an error rebuild has already happened. I'm not too sure what causes the error in problem 4. Your initial idea of a aborting launches with a prompt is quite a good one, but I expect also difficult to implement. I know that Tom gave quite a public outcry over this issue on the Fantom forum, but I don't see it as such a big deal myself. Once you know that a pod only gets re-build when it's error free, it's obvious! I think people have just become spoiled by the incremental builds eclipse does for Java! I'm probably going to remove this change from my local F4 build because I find it quite disruptive. (The other fixes are good though! Thanks!) |
JDT's default behavior in this case is to prompt about build errors and ask whether it is ok to launch. Since Java projects just a bunch of class files, it may cause errors in runtime, however in case of Fantom, it's all or nothing – we either have a new pod without errors, or a previously built pod. So I think a prompt message should just inform that there are build errors and launch is terminated.
The text was updated successfully, but these errors were encountered: