Skip to content

Instantly share code, notes, and snippets.

@Morabaraba
Created May 10, 2017 13:12
Show Gist options
  • Save Morabaraba/29c0109f614033d8433a0c4566aef758 to your computer and use it in GitHub Desktop.
Save Morabaraba/29c0109f614033d8433a0c4566aef758 to your computer and use it in GitHub Desktop.
cloud9 v2 gpl ctrl+v cmd+v copy paste issue: https://github.com/exsilium/cloud9/issues/21

For pylonide/pylon#21

Tested on Win 10, thanks. Will test on a mac soon.

First tried a npm update on the project to get your ctrl+v change. Realised I need to git clone https://github.com/exsilium/term.js.git instead.

It to crude?

ubuntu@ubuntu-xenial:~/bin/cloud9/node_modules/term.js$ npm update

> [email protected] install /home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/pty.js
> node-gyp rebuild

make: Entering directory '/home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/pty.js/build'
  CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyFork(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:222:34: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
       if (strlen(cwd)) chdir(cwd);
                                  ^
[email protected] node_modules/express
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
  SOLINK_MODULE(target) Release/obj.target/pty.node
  COPY Release/pty.node
make: Leaving directory '/home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/pty.js/build'
[email protected] node_modules/pty.js
├── [email protected]
└── [email protected]

> [email protected] install /home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
bufferutil.target.mk:98: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
make: Leaving directory '/home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
[email protected] node_modules/socket.io
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
ubuntu@ubuntu-xenial:~/bin/cloud9/node_modules/term.js$

Oops, rather move the old one out!

ubuntu@ubuntu-xenial:~/bin/cloud9/node_modules$ mv term.js/ term.js_
ubuntu@ubuntu-xenial:~/bin/cloud9/node_modules$ git clone https://github.com/exsilium/term.js.git
Cloning into 'term.js'...
remote: Counting objects: 437, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 437 (delta 0), reused 0 (delta 0), pack-reused 432
Receiving objects: 100% (437/437), 311.05 KiB | 149.00 KiB/s, done.
Resolving deltas: 100% (197/197), done.
Checking connectivity... done.
ubuntu@ubuntu-xenial:~/bin/cloud9/node_modules/term.js$ npm update

> [email protected] install /home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/pty.js
> node-gyp rebuild

make: Entering directory '/home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/pty.js/build'
  CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyFork(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:222:34: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
       if (strlen(cwd)) chdir(cwd);
                                  ^
  SOLINK_MODULE(target) Release/obj.target/pty.node
  COPY Release/pty.node
make: Leaving directory '/home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/pty.js/build'
[email protected] node_modules/express
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
[email protected] node_modules/pty.js
├── [email protected]
└── [email protected]

> [email protected] install /home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
bufferutil.target.mk:98: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
make: Leaving directory '/home/ubuntu/bin/cloud9/node_modules/term.js/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
[email protected] node_modules/socket.io
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment