Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EGL Development Tools » EGL2IR uses old Cache of EGL Source (It appears a cache is not properly updated when a EGL program is changed in RBD. Restarting RBD is workaround for this issue.)
EGL2IR uses old Cache of EGL Source [message #654901] Thu, 17 February 2011 14:51
Bart Van Campenhout is currently offline Bart Van CampenhoutFriend
Messages: 9
Registered: February 2011
Junior Member
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 ?


Previous Topic:Building from source
Next Topic:How to get relevant data from a Stereotype
Goto Forum:
  


Current Time: Thu Apr 25 22:23:54 GMT 2024

Powered by FUDForum. Page generated in 0.02657 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top