-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding, unmappable characters: Local "Save" is not applied remotely #54
Comments
Well just look at Bobs log file.
Although the "encoding" file is transmitted first Eclipse do not realize this, see Alice
Original comment by: kargor |
So where do you see the failure: Alice's, or Bob's side? Saros or Eclipse? Original comment by: fzieris |
Well, regarding the fact that I did not like the transmission of meta data I do not know if there is really anything we can do about that. We use the document provider to save the data. See EditorManager line 1486. I think Eclipse is doing the same but just catching the Exception and asking the user. This is the part we do not do and just "ignoring" it. Original comment by: kargor |
So do it understand it right: Bob currently has no chance of knowing that Alice changed the encoding? Original comment by: fzieris |
The encoding change is currently only send by transmitting the metadata file (this is what I do not like). If I remember correctly the SWTP had worked on transmitting encoding changes (which is easily possible with the eclipse file API). Neverless I do not if this does offer us any advantage ... as it seems Eclipse is ignoring this change already (meta file is "correctly" overwritten) before we save the document. Maybe dig down through Eclipse source code to find out how the normal save operation handle it ? :P Original comment by: kargor |
Scenario with Alice and Bob. Alice's project and its files has the encoding "US-ASCII".
The only difference between Alice's and Bob's state is the "dirty" marker. Both are able to continue working. Subsequent saving operations from Alice still show now effect. Bob has to save the file himself, and tell his Eclipse that this file should now be regarded as "UTF-8" (using the same dialog that popped up on Alice's side before).
For further information see the attached logfiles (Alice == zieris_test01, Bob == zieris_test02).
Alice.log
Bob.log
Reported by: fzieris
Original Ticket: dpp/bugs/822
The text was updated successfully, but these errors were encountered: