codeboxide / desktop Goto Github PK
View Code? Open in Web Editor NEWDesktop application for Codebox IDE
License: Apache License 2.0
Desktop application for Codebox IDE
License: Apache License 2.0
Running codebox installed as an app on Linux, if I try to run a node project (with a package.json
in the root of the workspace), codebox pops up an error: "No project detected for this workspace".
When I run codebox manually from within the built Git repository as nw .
and try to run the project, everything works without problems.
I think this has to do with permissions not being preserved by the node-webkit packaging process.
When I backup the directory created in /tmp by the packaged app and manually run nw .
in there, I get the same error.
When in this backup I set execute permissions on all *.sh
scripts with
$ find -name '*.sh' -print0 | xargs -0 chmod +x
and retry nw .
, everything works well again.
To build codebox-desktop, I used the following commands after cloning the repo:
$ export PYTHON=python2
$ npm install
$ script grunt-build-linux.log -c 'grunt -v --no-color build-linux'
The last command aborts because of warnings. Here is the log:
Script started on Tue 18 Mar 2014 03:40:06 AM CET
Initializing
Command-line options: --verbose, --no-color
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Registering "hr.js" local Npm module tasks.
Reading /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/hr.js/package.json...OK
Parsing /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/hr.js/package.json...OK
Loading "build.js" tasks...OK
+ hr
Registering "grunt-exec" local Npm module tasks.
Reading /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/grunt-exec/package.json...OK
Parsing /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/grunt-exec/package.json...OK
Loading "exec.js" tasks...OK
+ exec
Registering "grunt-node-webkit-builder" local Npm module tasks.
Reading /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/grunt-node-webkit-builder/package.json...OK
Parsing /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/grunt-node-webkit-builder/package.json...OK
Loading "node_webkit_builder.js" tasks...OK
+ nodewebkit
Registering "grunt-contrib-compress" local Npm module tasks.
Reading /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/grunt-contrib-compress/package.json...OK
Parsing /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/grunt-contrib-compress/package.json...OK
Loading "compress.js" tasks...OK
+ compress
Registering "grunt-contrib-clean" local Npm module tasks.
Reading /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/grunt-contrib-clean/package.json...OK
Parsing /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/grunt-contrib-clean/package.json...OK
Loading "clean.js" tasks...OK
+ clean
Registering "grunt-contrib-copy" local Npm module tasks.
Reading /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/grunt-contrib-copy/package.json...OK
Parsing /home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/grunt-contrib-copy/package.json...OK
Loading "copy.js" tasks...OK
+ copy
Reading package.json...OK
Parsing package.json...OK
Reading /home/miki/vcs/git/node-modules/codebox/codebox-desktop/src/index.html...OK
Initializing config...OK
Loading "Gruntfile.js" tasks...OK
+ build, build-linux, build-mac, default
Running tasks: build-linux
Running "build-linux" task
Running "build" task
Running "hr" task
Running "hr:build" (hr) task
Verifying property hr.build exists in config...OK
File: [no files]
Options: (none)
Start building application Codebox
Build directory : /home/miki/vcs/git/node-modules/codebox/codebox-desktop/build
Clean old build
Make build directory
Generating html entry for application
End of generation
Generating code for application
End of generation
Generating style for application
End of generation
Generating static files for application
-> Creating images
-> Creating fonts
Running "exec:nwbuild" (exec) task
Verifying property exec.nwbuild exists in config...OK
File: [no files]
./scripts/nwbuild.sh 0.8.4
Expecting exit code 0
0.8.4
>> gyp
>>
>> info it worked if it ends with ok
>> gyp
>> info using [email protected]
>> gyp info using [email protected] | linux | x64
>> gyp
>> info spawn python2
>> gyp
>> info spawn args [ '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/nw-gyp/gyp/gyp_main.py',
>> gyp info spawn args 'binding.gyp',
>> gyp info spawn args '-f',
>> gyp info spawn args 'make',
>> gyp info spawn args '-I',
>> gyp info spawn args '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/shux/node_modules/pty.js/build/config.gypi',
>> gyp info spawn args '-I',
>> gyp info spawn args '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/nw-gyp/addon.gypi',
>> gyp info spawn args '-I',
>> gyp info spawn args '/home/miki/.nw-gyp/0.8.4/common.gypi',
>> gyp info spawn args '-Dlibrary=shared_library',
>> gyp info spawn args '-Dvisibility=default',
>> gyp info spawn args '-Dnode_root_dir=/home/miki/.nw-gyp/0.8.4',
>> gyp info spawn args '-Dmodule_root_dir=/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/shux/node_modules/pty.js',
>> gyp info spawn args '--depth=.',
>> gyp info spawn args '--generator-output',
>> gyp
>> info spawn args 'build',
>> gyp info spawn args '-Goutput_dir=.' ]
>> gyp
>> info spawn make
>> gyp
>> info
>> spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/shux/node_modules/pty.js/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
>> In file included from ../src/unix/pty.cc:16:0:
>> ../node_modules/nan/nan.h: In function ‘void* NanRawString(v8::Handle<v8::Value>, Nan::Encoding, size_t*, void*, size_t, int)’:
>> ../node_modules/nan/nan.h:1054:57: warning: ‘int v8::String::WriteAscii(char*, int, int, int) const’ is deprecated (declared at /home/miki/.nw-gyp/0.8.4/deps/v8/include/v8.h:1594) [-Wdeprecated-declarations]
>> , toStr->WriteAscii(to, 0, sz_ + term_len, flags));
>> ^
>> In file included from ../node_modules/nan/nan.h:122:0,
>> from ../src/unix/pty.cc:16:
>> /home/miki/.nw-gyp/0.8.4/src/node.h: In instantiation of ‘void node::SetMethod(target_t, const char*, v8::InvocationCallback) [with target_t = v8::Handle<v8::Object>; v8::InvocationCallback = v8::Handle<v8::Value> (*)(const v8::Arguments&)]’:
>> ../src/unix/pty.cc:544:42: required from here
>> /home/miki/.nw-gyp/0.8.4/src/node.h:124:43: warning: ‘static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)’ is deprecated (declared at /home/miki/.nw-gyp/0.8.4/deps/v8/include/v8.h:3339) [-Wdeprecated-declarations]
>> v8::FunctionTemplate::New(callback)->GetFunction());
>> ^
SOLINK_MODULE(target) Release/obj.target/pty.node
SOLINK_MODULE(target) Release/obj.target/pty.node: Finished
COPY Release/pty.node
make: Leaving directory '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/shux/node_modules/pty.js/build'
>> gyp info
>> ok
>> gyp
>>
>> info it worked if it ends with ok
>> gyp
>> info using [email protected]
>> gyp info using [email protected] | linux | x64
>> gyp
>> info spawn python2
>> gyp
>> info spawn args [ '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/nw-gyp/gyp/gyp_main.py',
>> gyp info spawn args 'binding.gyp',
>> gyp info spawn args '-f',
>> gyp info spawn args 'make',
>> gyp info spawn args '-I',
>> gyp info spawn args '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/ctags/build/config.gypi',
>> gyp info spawn args '-I',
>> gyp info spawn args '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/nw-gyp/addon.gypi',
>> gyp info spawn args '-I',
>> gyp info spawn args '/home/miki/.nw-gyp/0.8.4/common.gypi',
>> gyp info spawn args '-Dlibrary=shared_library',
>> gyp info spawn args '-Dvisibility=default',
>> gyp info spawn args '-Dnode_root_dir=/home/miki/.nw-gyp/0.8.4',
>> gyp info spawn args '-Dmodule_root_dir=/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/ctags',
>> gyp info spawn args '--depth=.',
>> gyp info spawn args '--generator-output',
>> gyp info spawn args 'build',
>> gyp info spawn args '-Goutput_dir=.' ]
>> gyp
>> info spawn make
>> gyp
>>
>> info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/ctags/build'
CC(target) Release/obj.target/ctags/src/readtags.o
CXX(target) Release/obj.target/ctags/src/ctags.o
>> In file included from ../src/ctags.cc:4:0:
>> ../node_modules/nan/nan.h: In function ‘void* NanRawString(v8::Handle<v8::Value>, Nan::Encoding, size_t*, void*, size_t, int)’:
>> ../node_modules/nan/nan.h:1054:57: warning: ‘int v8::String::WriteAscii(char*, int, int, int) const’ is deprecated (declared at /home/miki/.nw-gyp/0.8.4/deps/v8/include/v8.h:1594) [-Wdeprecated-declarations]
>> , toStr->WriteAscii(to, 0, sz_ + term_len, flags));
>> ^
>> In file included from ../node_modules/nan/nan.h:122:0,
>> from ../src/ctags.cc:4:
>> /home/miki/.nw-gyp/0.8.4/src/node.h: In instantiation of ‘void node::SetMethod(target_t, const char*, v8::InvocationCallback) [with target_t = v8::Handle<v8::Object>; v8::InvocationCallback = v8::Handle<v8::Value> (*)(const v8::Arguments&)]’:
>> ../src/ctags.cc:93:47: required from here
>> /home/miki/.nw-gyp/0.8.4/src/node.h:124:43: warning: ‘static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)’ is deprecated (declared at /home/miki/.nw-gyp/0.8.4/deps/v8/include/v8.h:3339) [-Wdeprecated-declarations]
>> v8::FunctionTemplate::New(callback)->GetFunction());
>> ^
SOLINK_MODULE(target) Release/obj.target/ctags.node
SOLINK_MODULE(target) Release/obj.target/ctags.node: Finished
COPY Release/ctags.node
make: Leaving directory '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/ctags/build'
>> gyp
>> info ok
>> gyp
>>
>> info it worked if it ends with ok
>> gyp
>> info using [email protected]
>> gyp info using [email protected] | linux | x64
>> gyp
>> info spawn python2
>> gyp
>> info spawn args [ '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/nw-gyp/gyp/gyp_main.py',
>> gyp info spawn args 'binding.gyp',
>> gyp info spawn args '-f',
>> gyp info spawn args 'make',
>> gyp info spawn args '-I',
>> gyp info spawn args '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/gittle/node_modules/pty.js/build/config.gypi',
>> gyp info spawn args '-I',
>> gyp info spawn args '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/nw-gyp/addon.gypi',
>> gyp info spawn args '-I',
>> gyp
>> info spawn args '/home/miki/.nw-gyp/0.8.4/common.gypi',
>> gyp info spawn args '-Dlibrary=shared_library',
>> gyp info spawn args '-Dvisibility=default',
>> gyp info spawn args '-Dnode_root_dir=/home/miki/.nw-gyp/0.8.4',
>> gyp info spawn args '-Dmodule_root_dir=/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/gittle/node_modules/pty.js',
>> gyp info spawn args '--depth=.',
>> gyp info spawn args '--generator-output',
>> gyp info spawn args 'build',
>> gyp info spawn args
>> '-Goutput_dir=.' ]
>> gyp
>> info spawn make
>> gyp
>> info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/gittle/node_modules/pty.js/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
>> In file included from ../src/unix/pty.cc:17:0:
>> /home/miki/.nw-gyp/0.8.4/src/node.h: In instantiation of ‘void node::SetMethod(target_t, const char*, v8::InvocationCallback) [with target_t = v8::Handle<v8::Object>; v8::InvocationCallback = v8::Handle<v8::Value> (*)(const v8::Arguments&)]’:
>> ../src/unix/pty.cc:556:42: required from here
>> /home/miki/.nw-gyp/0.8.4/src/node.h:124:43: warning: ‘static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)’ is deprecated (declared at /home/miki/.nw-gyp/0.8.4/deps/v8/include/v8.h:3339) [-Wdeprecated-declarations]
>> v8::FunctionTemplate::New(callback)->GetFunction());
>> ^
SOLINK_MODULE(target) Release/obj.target/pty.node
SOLINK_MODULE(target) Release/obj.target/pty.node: Finished
COPY Release/pty.node
make: Leaving directory '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/gittle/node_modules/pty.js/build'
>> gyp
>> info ok
>> gyp
>>
>> info it worked if it ends with ok
>> gyp
>> info using [email protected]
>> gyp info using [email protected] | linux | x64
>> gyp
>>
>> info
>>
>> spawn
>> python2
>> gyp
>>
>> info
>>
>> spawn args
>> [ '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/nw-gyp/gyp/gyp_main.py',
>> gyp
>>
>> info
>>
>> spawn args
>> 'binding.gyp',
>> gyp
>>
>> info
>>
>> spawn args
>> '-f',
>> gyp
>>
>> info
>>
>> spawn args
>> 'make',
>> gyp
>>
>> info
>>
>> spawn args
>> '-I',
>> gyp
>>
>> info
>> spawn args '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/vfs-local/node_modules/pty.js/build/config.gypi',
>> gyp
>> info spawn args '-I',
>> gyp info spawn args '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/nw-gyp/addon.gypi',
>> gyp info spawn args '-I',
>> gyp
>> info
>> spawn args '/home/miki/.nw-gyp/0.8.4/common.gypi',
>> gyp info spawn args '-Dlibrary=shared_library',
>> gyp info spawn args '-Dvisibility=default',
>> gyp info spawn args '-Dnode_root_dir=/home/miki/.nw-gyp/0.8.4',
>> gyp
>> info spawn args '-Dmodule_root_dir=/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/vfs-local/node_modules/pty.js',
>> gyp info spawn args '--depth=.',
>> gyp info spawn args '--generator-output',
>> gyp info spawn args 'build',
>> gyp info
>> spawn args
>> '-Goutput_dir=.' ]
make: Entering directory '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/vfs-local/node_modules/pty.js/build'
>> gyp
>>
>> info
>>
>> spawn
>> make
>> gyp
>>
>> info
>>
>> spawn args
>> [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/pty/src/unix/pty.o
>> In file included from ../src/unix/pty.cc:17:0:
>> /home/miki/.nw-gyp/0.8.4/src/node.h: In instantiation of ‘void node::SetMethod(target_t, const char*, v8::InvocationCallback) [with target_t = v8::Handle<v8::Object>; v8::InvocationCallback = v8::Handle<v8::Value> (*)(const v8::Arguments&)]’:
>> ../src/unix/pty.cc:556:42: required from here
>> /home/miki/.nw-gyp/0.8.4/src/node.h:124:43: warning: ‘static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)’ is deprecated (declared at /home/miki/.nw-gyp/0.8.4/deps/v8/include/v8.h:3339) [-Wdeprecated-declarations]
>> v8::FunctionTemplate::New(callback)->GetFunction());
>> ^
SOLINK_MODULE(target) Release/obj.target/pty.node
SOLINK_MODULE(target) Release/obj.target/pty.node: Finished
COPY Release/pty.node
make: Leaving directory '/home/miki/vcs/git/node-modules/codebox/codebox-desktop/node_modules/codebox/node_modules/vfs-local/node_modules/pty.js/build'
>> gyp
>> info ok
>> Exited with code: 0.
Running "nodewebkit:linux" (nodewebkit) task
Verifying property nodewebkit.linux exists in config...OK
Files: [no src]
Options: version="0.8.4", app_name=null, app_version=null, build_dir="./appBuilds", force_download=false, win=false, mac=false, linux32, linux64=false, mac_icns=false, download_url="https://s3.amazonaws.com/node-webkit/", timestamped_builds=false, credits=false, keep_nw=false, zip=false
Warning: Could not find a package.json in your src folder Use --force to continue.
Aborted due to warnings.
Script done on Tue 18 Mar 2014 03:40:13 AM CET
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.