Community
Participate
Working Groups
The EMFBasedPresenter writes encoded URL's when exit eclipse and load the PersistableResourceDescriptionsImpl from disk with explicit encode url set to true. This causes urls with encoded characters to fail after reload and requires a project clean to work again.
Created attachment 175731 [details] Patch for different parameter on file reading, but in emf-gen folder This patch fixes the encoding problem by setting ignoreEncoding for URI creation. The code is changed in the emf-gen folder, so there should be a better place to do this.
I have to mention, that "after eclipse start" means here, that I changed something inside the file, directly after startup. The Container of the global scope provider is wrong for URI's with encoded characters and not requested for elements.
Scheduled for SR1. Thanks for the detailed report.
Benjamin, could you provide a testcase or a reproducable example that illustrates the issue?
An example are all Model files with a space in the name. 1) I used the default xtext-project and changed the model to: Model: greeting=Greeting '(' firstRef=[Greeting] ')' '(' secondRef=[Greeting] ')'; Greeting: 'Hello' name=ID '!'; 2) run the workflow 3) start runtime instance 4) create a new plain Project from general 5) add Xtext nature to the project 6) create two model files 'Copy of model.mysql' and 'Copy (2) of model.mydsl' 7) reference in each file both greetings: Copy of model.mysql: Hello hello ! (hello2) (hello) Copy (2) of model.mysql: Hello hello2 ! (hello2) (hello) 8) save and close the runtime instance 9) start the runtime again and open 'Copy of model.mysql' 10) enter a space somewhere o trigger validation and see the missing references 11) perform a clean and everything is correct again
fixed in HEAD
Closing all bugs that were set to RESOLVED before Neon.0