Community
Participate
Working Groups
Created attachment 225011 [details] Shows build project failure. Following are the repro steps: 1. Create new Fortran project (testBuild) in Photran plug-in. 2. Create main Fortran program as below File Name: testProgram.f90 Source Code: program testProgram USE Module0 IMPLICIT NONE print *, "SO1 Managed Build - Module1" CALL M1Subroutine2() end program 3. Create module as below File Name: module1.f90 Source Code: MODULE Module0 IMPLICIT NONE CONTAINS SUBROUTINE M1Subroutine1() IMPLICIT NONE PRINT *, " M1 Subroutine 1 " END SUBROUTINE M1Subroutine1 SUBROUTINE M1Subroutine2() IMPLICIT NONE PRINT *, " M1 Subroutine 2 " END SUBROUTINE M1Subroutine2 END MODULE Module0 4. Right Click project testBuild in step1 and Select "Build Project" 5. Build project fails with error message as shown below, also see the attachment. An internal error occurred during: "Build Project". Could not find a file to match the module name: Module0 Expected Result: Build project should succeed.
Created attachment 225016 [details] Fixed module name dependency on module's source file name. Patch includes fixes for following: 1. Module in "Use" statement is different from Module's file name. Example: main program > calling a Module Module0, where Module0 source file name is not Module0.fxx 2. Modules reference order in "Use" statement is different than the order in which modules are defined in source file. Example: main program > calling modules with Use sequenced as Use Module2 Use Module1 and Module1 & Module2 are defined in source file module1.fxx. Order defined is Module1 & Module2 3.Module names are unique, but created with identical file names in different subdirectories. Example:main program > calling modules with Use statements sequenced as Use Module1 Use Module2 and Module1 is defined in folder1\module1.fxx, Module2 is defined in folder2\module1.fxx. (module1.fxx here is correct not a typo) 4. Fixed Photran workspace tests to create sub directory for test files when applicable. Case 3, was failing while running test suite. Note: fxx is any Fortran supported version.
Created attachment 225017 [details] Documentation for the patch. Please refer to section "Managed Build & Module Name".
Created attachment 225021 [details] Cumulative patch for bugs 397716 & 397117 Merged bug fixes for module name dependency on module's source file name and new project wizard.
Created attachment 225024 [details] Cumulative patch for bugs 397116 & 397117 Cumulative patch for bugs 397116 & 397117 Merged bug fixes for module name dependency on module's source file name and new project wizard. Patch includes fixes for following: 1. Module in "Use" statement is different from Module's file name. Example: main program > calling a Module Module0, where Module0 source file name is not Module0.fxx 2. Modules reference order in "Use" statement is different than the order in which modules are defined in source file. Example: main program > calling modules with Use sequenced as Use Module2 Use Module1 and Module1 & Module2 are defined in source file module1.fxx. Order defined is Module1 & Module2 3.Module names are unique, but created with identical file names in different subdirectories. Example:main program > calling modules with Use statements sequenced as Use Module1 Use Module2 and Module1 is defined in folder1\module1.fxx, Module2 is defined in folder2\module1.fxx. (module1.fxx here is correct not a typo) Note: fxx is any Fortran supported version.
Thanks for the contribution! I have two favors to ask: 1. For legal purposes, I will need you to resubmit the patch with a couple of minor changes: - Please add an EPL copyright header at the top of each Java source file with copyright attribution to your group members. There are instructions in the Photran Developer's Guide, Part I, Appendix F, which contain the full text of the copyright header. Please make sure your names are listed individually, e.g., "Copyright 2012 John Doe, Jane Doe, Bob Smith, and others." etc. - Please add the individual names of your group members to the list of contributors in the copyright header and/or the @author tags. 2. After you resubmit the patch, please ask *every* member of your group to add a comment to this bug confirming that: (a) you wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others, (b) you have the right to contribute the code to Eclipse, and (c) you have included the EPL license header in all source files.
Created attachment 225044 [details] Cumulative patch for bugs 397116 & 397117 Cumulative patch for bugs 397116 & 397117 Merged bug fixes for module name dependency on module's source file name and new project wizard. Made changes based on Jeff's feedback and re-generated the patch. Fixed module name dependency on module's source file name. Patch includes fixes for following: 1. Module in "Use" statement is different from Module's file name. Example: main program > calling a Module Module0, where Module0 source file name is not Module0.fxx 2. Modules reference order in "Use" statement is different than the order in which modules are defined in source file. Example: main program > calling modules with Use sequenced as Use Module2 Use Module1 and Module1 & Module2 are defined in source file module1.fxx. Order defined is Module1 & Module2 3.Module names are unique, but created with identical file names in different subdirectories. Example:main program > calling modules with Use statements sequenced as Use Module1 Use Module2 and Module1 is defined in folder1\module1.fxx, Module2 is defined in folder2\module1.fxx. (module1.fxx here is correct not a typo) 4. Fixed Photran workspace tests to create sub directory for test files when applicable. Case 3, was failing while running test suite. Note: fxx is any Fortran supported version.
I confirm that (a) I wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others, (b) I have the right to contribute the code to Eclipse, and (c) I have included the EPL license header in all source files.
Thanks. I'll send this to the IP team when possible.
CQ 7078 submitted - https://dev.eclipse.org/ipzilla/show_bug.cgi?id=7078
The CQ has been approved. Check-in pending.