coreh-deprecated / nide

Beautiful IDE for Node.js
http://coreh.github.com/nide/
713 stars 111 forks source link

How does one save? [Autosave not working on Ubuntu] #14

Open NHQ opened 12 years ago

NHQ commented 12 years ago

I don't see any clear way to save a file after editing. And when I re-open the file, the changes are lost. If there is auto-saving, it is not working for me.

OS: Ubuntu 10.4 (i think) Node: v.0.4.12

coreh commented 12 years ago

Hey NHQ,

In theory, Nide should auto-save your files as you edit them. Does the user you're running nide with have write permissions for the files?

Nide should also keep previous/backup copies inside a .nide directory. Was that created?

pvorb commented 12 years ago

There should be a way to force-save a file. Or is saving each file done in realtime over websockets?

NHQ commented 12 years ago

Confirmed that a .nide dir was created.

coreh commented 12 years ago

@pvorb: It's done in real time via wesockets. But I agree the UI should probably warn you somehow if it can't save the file, and display a "force save/retry" button, or something like that.

@NHQ: So you do have permissions for the folder... Are you running nide in a new/empty project you just created, or on a folder with files already on it? Also, when you edit the files, does the "spinner" animated gif on the left of the UI stay there or disappear after a while?

headconnect commented 12 years ago

Got the same issue - user running nide should have all necessary permissions (i can edit the files using the same user in vi for example), .nide directory created (but empty). Spinner keeps going ad infinitum when file is selected, but no changes are saved.

Also - started this by using 'nide init' on a pre-existing directory.

coreh commented 12 years ago

I'll setup a Ubuntu VM and see if I can replicate this. @headconnect you're also running Ubuntu, correct?

iwizardpro commented 12 years ago

@headconnect and @NHQ, were you by any chance running nide using root? If so, could you check if your code is also owned by root? (If so, can you please try downloading the latest code and running nide with the --no-downgrade parameter?)

autoferrit commented 12 years ago

I am on Linux Mint 12 (Based on Ubuntu 11.10) and it seems to be working fine here. My user is the owner of all the files in my project directory.