demian85 / git-watcher

Git GUI desktop app that shows real-time diff file information for working directory and index
MIT License
170 stars 24 forks source link

Can't Load Git Repos after clone down. #9

Closed stagfoo closed 9 years ago

stagfoo commented 9 years ago

Hi, I did a fresh clone down and now when i build or run with ./build.sh or ./build-new.sh /opt/node-webkit/nw '/home/al/github/git-watcher/ It loads up find, the options bar isn't in the top bar selection_003

demian85 commented 9 years ago

The menu bar being embeded in the window is something that started happening since the new node-webkit version. I reported it but seems that no one cares or it's pending to be fixed.

So, you did open the repository using the 'open' button but the loading icons still stays there? Weird.

Which version of ubuntu are you using?

stagfoo commented 9 years ago

I downloaded the latest http://nwjs.io/ and im running 14.04 LTS, if i use the menu or the icon, it just shows the loading icon and doesn't load the repo.

i though the menu position was important because when i do a build its inside the window but when i use your build from the readme.md under download, the menu is in the top bar.

al@al-Inspiron-11-3147:~$ /opt/node-webkit/nw '/home/al/github/git-watcher/'
[4719:0314/110929:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[4738:0314/110930:ERROR:sandbox_linux.cc(325)] InitializeSandbox() called with multiple threads in process gpu-process
[4719:0314/110942:ERROR:nw_shell.cc(335)] Error: Cannot find module '../build/Release/git.node'
    at Function.Module._resolveFilename (module.js:327:15)
    at Function.Module._load (module.js:264:25)
    at Module.require (module.js:356:17)
    at require (module.js:375:17)
    at Object. (/home/al/github/git-watcher/node_modules/git-utils/lib/git.js:8:16)
    at Object. (/home/al/github/git-watcher/node_modules/git-utils/lib/git.js:359:4)
    at Module._compile (module.js:451:26)
    at Object.Module._extensions..js (module.js:469:10)
    at Module.load (module.js:346:32)
    at Function.Module._load (module.js:301:12)
[4719:0314/110942:INFO:CONSOLE(329)] "Uncaught Error: Cannot find module '../build/Release/git.node'", source: module.js (329)

I just found this error above could i be missing the git module for node? i did an npm install. do more test later today.

stagfoo commented 9 years ago

I found the issue looks like it lies in the git utils build script. Is their a pre-requisite or an old version to use?

al@al-Inspiron-11-3147:~/github/git-watcher/node_modules/git-utils$ npm install
/
> coffeelint@0.5.7 install /home/al/github/git-watcher/node_modules/git-utils/node_modules/grunt-coffeelint/node_modules/coffeelint
> [ -e lib/commandline.js ] || npm run compile
-
> git-utils@3.0.0 install /home/al/github/git-watcher/node_modules/git-utils
> node-gyp rebuild
make: Entering directory `/home/al/github/git-watcher/node_modules/git-utils/build'
make: *** No rule to make target `Release/obj.target/libgit2/deps/libgit2/src/attr.o', needed by `Release/obj.target/git2.a'.  Stop.
make: Leaving directory `/home/al/github/git-watcher/node_modules/git-utils/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.13.0-46-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/al/github/git-watcher/node_modules/git-utils
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok 
npm ERR! git-utils@3.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the git-utils@3.0.0 install script.
npm ERR! This is most likely a problem with the git-utils package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls git-utils
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-46-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/al/github/git-watcher/node_modules/git-utils
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/al/github/git-watcher/node_modules/git-utils/npm-debug.log
npm ERR! not ok code 0
demian85 commented 9 years ago

I've successfully built git-utils v3.0.0 module using node v0.12 and latest nw-gyp with nw.js v0.12 Did you configure target version? nw-gyp rebuild --target=0.12.0