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

Saving corrupts css file. #14599

Open
nfwade opened this Issue Nov 24, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@nfwade
Copy link

nfwade commented Nov 24, 2018

Prerequisites

  • Can you reproduce the problem with Debug -> Reload Without Extensions?
  • Did you perform a cursory search to see if your bug or enhancement is already reported?
  • Did you read the Troubleshooting guide?

Description

I saved a simple css file and the next time I opened the project I got the error "Unknown encoding format." If I open the file with any other editor it just contains gibberish on a single line.

brackets-error

I've used notepad++ to try and convert it/open it, and I've tried to use file recovery utilities. I have no idea what happened but here are 4 other issues with the same problem:

#14449
#14549
#14347
#13665

I'd just like advice for how to get the data back.

Steps to Reproduce

I don't know how to reproduce it. I'm not even sure what happened.

Expected behavior: I expected the file to be fine.

Actual behavior: It's corrupted.

Versions

Windows 10 Home
Release 1.13 build 1.13.0-17696

@nfwade

This comment has been minimized.

Copy link

nfwade commented Nov 25, 2018

Update

The file is empty:

empty file

So there's no hope of fixing the BOM or encoding.

One last hope—does brackets (by chance) have a cache of the file?

Thank you!

@nfwade

This comment has been minimized.

Copy link

nfwade commented Dec 20, 2018

Update: Never heard anything back, neither did the 4 others listed above. I went back to Atom.

@shubhsnov

This comment has been minimized.

Copy link
Collaborator

shubhsnov commented Jan 4, 2019

The file was corrupted. And there is no cache from where you can recover an already saved file. I tried to reproduce the issue several times, even with other types of files, and force quitting the application, but it didn't work.

Can you think of anything else which might help us to figure out what exactly went wrong?

@rupali317

This comment has been minimized.

Copy link

rupali317 commented Jan 12, 2019

@nfwade there is a pull request #13477 , which fixes 5 bugs. These closed bugs talk about similar problem. Perhaps you can go through the discussion and see if it helps you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment