-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ctrl+z (undo) doesn't work after save anymore since 1.5 #11826
Comments
I use Fedora linux, in my Brackets working fine. |
I was getting ready to open the same issue but notice this post. I can confirm the same behavior with Windows 7 64 bit. |
Can you try |
I got the exact same issue, with no extensions installed. |
Can you go to |
I think this is what you meant:
|
When I save the document seems to be flashing quickly, just as if I would open it anew. |
Are you working with live preview when this happens? |
Nope :) |
/command/Menus.js:820 Error setting menu item shortcut: 1 |
Hm, that worked, surprisingly. The document doesn't appear to be reloading now after being saved. And undo works. Huzzah! |
deleting |
Yup, that did it. Great :D |
I will try that and make sure to report back. |
Can confirm the same issue on macOS Yosemite (10.10.5) |
Aaaand the issue is back. It's a bug, definitively. It worked for a few hours and now it does not. |
Same issue here: Ubuntu 14.04, Brackets 1.5 |
My undo history got cleared every time I saved (v1.5). debug>reload without plugins helped. Even after saying debug>reload with plugins it kept working again. I didn't uninstall the old version, just installed v1.5. |
I'm getting the same issue. Reloading without extensions fixes it (though I've not been using it for long). This only applies to my Windows 10 64bit install - I've not got this problem on OSX. |
Did this happen only after upgrading to 1.5? |
Yeah, I just upgraded from 1.4 and encountered it in the first document I edited. |
Ditto... I'm only experiencing it in my JS files tho, not my HTML or SCSS. |
Happening with PHP files Only happened after updating to 1.5 Release 1.5 build 1.5.0-16538 (release cf9cf46) |
Same here. Only tried with PHP files so far. Debug > Reload Without Extensions has so far fixed the issue, but it's only been minutes since I've done that. Upgrade from 1.4 to 1.5.0-16538 (release cf9cf46). Windows 10 Pro 64-bit |
We are looking into this issue on priority. |
Same here, with javascript files so far. I'll have to revert to 1.4.0 for the moment. This bug is costing me too much real work. |
Found Solution!!! added before any other code inside function: and modified Bye Bye undo reset! Edit : The solution works great and after lots of tests I didn't faced the problem anymore even once. But this solution only makes text comparison properly detect the difference and the fact that the new lines of the saved code is different than the new lines of the code in the editor still remains and developers should take care of that! |
Bravo @vahid-sanati! Now let's see if this fixes the issue for others as well. |
That's pretty interesting @vahid-sanati, great job. I always have normalized line-endings, which explains why I (and many others) never run into that particular issue. Another fix for 1.8. sounds good to me, create a PR and aim it towards Again, great job 👍 |
Thanks ! I applied the patch from the PR, let's give it a run on the next few days :) Note: quick reminder, follow this guide, download this patch, and apply it with: |
@vankasteelj tested and works fine. Edit: separated the |
@vahid-sanati that |
I'm working on a PHP project right now, and undo doesn't works after save every single time. It's completely reproducible. Just thought you might like to know. But again, just remove history nuking alltogether for now - we'll be better off without it if this bug can't be fixed. I'll keep repeating this, jsyk. |
@thany Please read @vahid-sanati's comments above and try the same thing he did to figure out what is the problem on his machine. Otherwise, your comments are quite useless. |
Why is removing history nuking alltogether not an option? How is it better to lose work, than to have a little bit too much of it? Besides, if the bug is fixed, as the comment implies, put out a maintenance release! No need to wait another couple of months until 1.9 is "ready". |
I haven't encountered the issue in the previous days, and i've been pretty busy coding on brackets :) it's a good sign so far |
@thany if you haven't applied the fix #12865 of course the problem will still happen to you. the final 1.8 release will have the fix. apply the patch or wait for the final release. If you don't want to work with source you can edit main.js file inside the install directory of brackets to apply the fix (actually I did all my tests with this method, never tried the source) but you should be careful with escaped characters! |
This should have been fixed for a while now, if this pops up ever again, please do open a new issue so that it can be addressed immediately. |
There's no way of reverting a change that was made if the file was saved. I don't know if that's a feature (saved=saved), but it's really annoying, especially when working with git. I had to reinstall 1.4 because of that, I cannot do any work without my "undo"^^
Windows 10 x86_64
Ubuntu 15.10 x64
EDIT: november 1st, 2016 : TL&DR; check out #11826 (comment)
The text was updated successfully, but these errors were encountered: