EGL2IR uses old Cache of EGL Source [message #654901] |
Thu, 17 February 2011 14:51 |
|
Assume the "Project - Build Automatically" is selected (though I would expect that this has no influence at all).
Assume this EGL Program:
package abc;
program ABCProg type BasicProgram {}
publicRecd publicRecd;
function main()
publicRecd publicRecd;
function2();
end
function function2()
SampleLib.function2();
call "SAMPLY";
end
end
In this program I will afterwards change the function name of function2 to function3.
Here's my test scenario and its intermediate results:
1. IR doesn't exist
2. Debug plug-in by launching a runtime workspace
3. Generation of the IR through EGL2IR.main() in xml format
4. Result as expected (reference to function2 is found in the generated xml file)
5. Change of EGL Source Code + Save (function3 is now referred)
6. Generation of the IR through EGL2IR.main() in xml format (overwriting an existing xml file)
7. Result NOT as expected: although the timestamp of the file changed (a generation was done), the contents still refers to function2 instead of the expected function3
8. Shutdown test workspace
9. Debug plug-in by launching a runtime workspace
10. Generation of the IR through EGL2IR.main() in xml format (overwriting an existing xml file)
11. Result as expected: the timestamp of the file changed (a generation was done), the contents refers to function3 now
Since EDT is open source, I've been looking around a bit, and I believe to have found the blocking issue.
A cache isn't properly updated , it seems.
When recompiling a file that was already compiled before, the ASTManager.getFileAST(java.io.File) returns the cached contents,
Which hasn't been updated with the latest changes in the workspace.
Can someone from the EDT team confirm that this is a bug ?
|
|
|
Powered by
FUDForum. Page generated in 0.02657 seconds