adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.26k stars 7.63k forks source link

Linux: Brackets cannot save files #13485

Open plomp90 opened 7 years ago

plomp90 commented 7 years ago

Installed Brackets on a brand new Arch Linux installation, and everything works except I can't save files. When I go to file->save, or save as, it appears to save but the "unsaved changes" indicator next to the filename remains, and there is no saved file. I have created a new report for this error because previous reports about not saving files were about temporary issues; this is permanent, and renders the program unusable.

There is no console output other than "ATTENTION: default value of option force_s3tc_enable overridden by environment" when brackets is launched or running.

petetnt commented 7 years ago

Hi @plomp90,

that sounds weird. The error is unrelated and has something to do with Arch in general (for example https://github.com/adobe/brackets/issues/7195)

Could you try to see if https://github.com/adobe/brackets/blob/1b64b1ed0f4fc1903509c0e011cf67c43f936a82/src/document/DocumentCommandHandlers.js#L1019 ever gets triggered when saving? You could try setting up a breakpoint there in the devtools, or cloning the repo and placing some debug console.logs around the method.

See the article How to hack on Brackets to get started with the Brackets codebase.

saurabh95 commented 7 years ago

@plomp90, Are you using the installed build or dev build with the current master? If you are using the current master then you need to install the latest pre-release, since we have made some changes around save file in the shell side also. You can download the latest pre-release here https://github.com/adobe/brackets/releases/tag/release-1.10-prerelease-3

petetnt commented 7 years ago

Yep, I just ran into it myself and updating helped 👯