Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Not able to save files I'm editing #108

Open
dr3x opened this issue Jun 25, 2015 · 6 comments
Open

Not able to save files I'm editing #108

dr3x opened this issue Jun 25, 2015 · 6 comments

Comments

@dr3x
Copy link

dr3x commented Jun 25, 2015

Did a checkout on 6/9 and everything was working fine, then just updated to the latest today (6/25) and now I'm not able to save changes on files that I edit through the IDE.

Commit of working version:
281925b (May 30th)

Nothing else on my system has changed.

Deleted the folder and repulled, then ran install-sdk; still not saving.

Renamed core git folder to c9sdk:
node ~/source/c9sdk/server.js -p 3131 -l 0.0.0.0 -a : -w ~/source/mysource

This is my log:
Starting standalone
Connect server listening at http://<ip>:3131
CDN: version standalone initialized /home/someuser/source/c9sdk/build
Started '/home/someuser/source/c9sdk/configs/standalone' with config 'standalone'!
VFS connection does not exist

@dr3x
Copy link
Author

dr3x commented Jun 30, 2015

UPDATE - RESOLVED
Just got the latest code and am unable to recreate the issue with that code so it seems to be resolved
Last commit is:
6f8cb66

@dr3x dr3x closed this as completed Jun 30, 2015
@dr3x
Copy link
Author

dr3x commented Jul 1, 2015

Actually it is happening again, not sure what changed. Reverting back to the commit above for now and reopening the issue.

@dr3x dr3x reopened this Jul 1, 2015
@nightwing
Copy link
Contributor

Do you see any errors in browser console?

@dr3x
Copy link
Author

dr3x commented Jul 1, 2015

Actually I do see an error in the console log:

static/plugins/c9.ide.watcher/gui.js:105
Uncaught TypeError: Cannot read property 'classList' of undefined

Here's the code:
save.on("beforeSave", function(e) {
e.document.meta.$savingValue = e.save;
if (e.tab.classList.contains("conflict")) {
showChangeDialog(e.tab);
}
}, plugin);

@nightwing
Copy link
Contributor

Could you try running install.sh from https://github.com/c9/install, it will update contents of ~/.c9 in case something have been deleted

I get prompted to save it again; click the save button but never exit.

does it write anything to the disk?
try running app.fs.writeFile("/xxx.js", ":)", console.log.bind(console)) in browser console it should create xxx.js file

btw which OS do you use

@dr3x
Copy link
Author

dr3x commented Jul 1, 2015

  1. Ran the install; completed, one error in log (below) but looked like the source compiles successfully
  2. Doesn't make any updates to disk. Noticed it when I (thought it) saved and didn't see any git diffs
  3. Ran the code and xxx.js file was created
  4. CentOS release 6.4 (Final)

Install log error:
:Installing Collab Dependencies

[email protected] install /home/cloudera/.c9/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

[sqlite3] Command failed: /home/cloudera/.c9/node/bin/node --eval require('/home/cloudera/.c9/node_modules/sqlite3/lib/binding/node-v14-linux-x64/node_sqlite3.node')
module.js:355
Module._extensions[extension](this, filename);
^
Error: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/cloudera/.c9/node_modules/sqlite3/lib/binding/node-v14-linux-x64/node_sqlite3.node)
at Error (native)
at Module.load (module.js:355:32)
...
node-pre-gyp ERR! Testing pre-built binary failed, attempting to source compile

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants