| Summary: | Copy / paste project breaks managed make | ||
|---|---|---|---|
| Product: | [Tools] PTP | Reporter: | Daniel Harenberg <dharenberg> |
| Component: | Photran.Managed Make | Assignee: | Jeffrey Overbey <com-eclipse-dot-org> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | minor | ||
| Priority: | P2 | CC: | com-eclipse-dot-org, dharenberg |
| Version: | 8.0.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Daniel Harenberg
It looks like this is a bug in the dependency calculator. The following output... Configuration is Release Found dependencies [L/Bug346103Copy/modules/mod.f90] Configuration is Release Found dependencies [L/Bug346103Copy/hello.f90, L/Bug346103Copy/Release/Debug/modules/mod.o] ...results after adding output to DefaultFortranDependencyCalculator#findDependencies: System.out.println("Configuration is " + config.getName()); System.out.println("Found dependencies " + dependencies); Jeff, I saw that you just changed the target milestone from 8.0 to future. That is bad news, at least for me. Maybe I am getting something wrong, but shouldn't it be one of the main usages of an IDE to copy and paste an entire project? If that breaks the make process, this seems like a bad bug that needs a high priority. Anyway, I am looking forward to the new release and will try to replicate this bug using the latest Eclipse and Photran as soon as they get out. Daniel Oh right, I forgot to comment... the final builds for Juno were yesterday, and it wasn't possible to get a fix in by then, which is why the target is "Future" now. The underlying cause is the Managed Build dependency calculator, which desperately needs to be rewritten. Unfortunately, no one (including me) is being paid to work on Photran at the moment, so bug fixes are happening on a "best effort" basis. This is still a high priority (P2), definitely, and I hope we can address it soon... Alas - all hope is lost! I confirm that this bug is still present in Eclipse Juno with PTP 6.0.2/Photran 8.0.2 I tried a hundred ways to find a workaround - in vain. One thing I did notice that might be of value: when you copy and paste a project in the Fortran Projects view, then the file .cproject will be the same in both projects. This seems very strange, as it contains several references to the old project (in lines that have to do with the build configurations). Sadly, manually replacing the old project names with the new project names does not resolve the bug. Notice that the same happens when you copy and paste with a file manager of your choice and then choose 'Import -> Existing project' from the Fortran Projects view. In contrast to .cproject, the file .project will always have the new project name (quite naturally, I guess). I have a 'workaround'. Eclipse Juno makes it really easy to use the version control system Git. For my use case, this is even better than the 'copy/paste project'-approach. Creating branches and merging does not trigger this bug, so I can use managed make with multiple configurations when I create a new branch. Since there is this (superior) workaround and since nobody else here ever complained about this problem, I am downgrading the importance of the bug to minor. For beginners (like me), a straightforward step-by-step tutorial for Git with Eclipse (EGit) can be found on http://www.vogella.com/articles/EGit/article.html Since the 'workaround' using Egit, which is actually the better practice, has been perfectly stable for 3 years and there were no further comments here, I am closing this bug report. |