albertinad / brackets-bower

Bower integration in Brackets.
MIT License
47 stars 9 forks source link

Help with $PATH #45

Open awakekat opened 9 years ago

awakekat commented 9 years ago

After installing the plugin I get a warning error that brackets cant find git in the path. I use ohmyzsh and am able to get to my .zshrc file to make changes but I do not know what changes to make.

echo $PATH = is 3 lines long the width of my monitor and I know that can't be right, but here it is: /usr/local/git/bin:/usr/local/git/bin:/usr/local/git/bin:/usr/local/git/bin:/usr/local/git/bin:/usr/local/git/bin/git:/usr/local/heroku/bin:/usr/git/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin (This looks wacky to me with so many repeats)

I had a problem updating git to the new version of gitand had to take some didfficult steps to make the new version take - I kept checking the version number and it would stay after updating. Since then things are not working properly. HELP Please?! <3

In the .zshrc file: export PATH=/usr/local/git/bin:$PATH

FYI - this problem is on all 3 of my macs. Would really like help fixing this.

albertinad commented 9 years ago

Hi @awakekat ! Can you open a terminal and type git --version and paste the output here? Thanks!

awakekat commented 9 years ago

2.2.1

On Mar 1, 2015, at 4:56 PM, Albertina Durante notifications@github.com wrote:

Hi @awakekat https://github.com/awakekat ! Can you open a terminal and type git --version and paste the output here? Thanks!

— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-76633414.

e-cloud commented 9 years ago

me too, git --version // output: git version 1.9.5.msysgit.0 i'm using windows 8.1

albertinad commented 9 years ago

@e-cloud can you share the console output? Debug -> Show Developer Tools (F12) -> Console Tab Thanks!

e-cloud commented 9 years ago

i checked the DevTool, and found nothing about bower. But i feel very sorry, when i restart my PC, bower extension works. it may be because of my reinstallation for git and the lazy-updated path

awakekat commented 9 years ago

I have restarted and I still get the error when installing Brackets Bower... When trying to install a bower package it gets stuck - obviously can't find git path...

albertinad commented 9 years ago

Hi @awakekat , sorry for the delay on the fix, I setup an environment in mac, so I can fix this ASAP, can you share the output of console please? If there's something that can help me.

awakekat commented 9 years ago

Hope this is what you wanted:

/thirdparty/react.js:4356 Download the React DevTools for a better development experience: http://fb.me/react-devtools /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at Object.eval (/SASSAgent.js:161:5) /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at Object.eval (/main.js:322:5) /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at Object. (file:///Users/MiniKat/Library/Application%20Support/Brackets/extensions/user/sbruchmann.static-preview/server/ServerManager.js:12:27) /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at Object.eval (/./ParfaitAPI.js:123:5) /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at Object.eval (/./ParfaitAPI.js:124:5) /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at Object.eval (/./ParfaitAPI.js:125:5) /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at _statusChangeHandler (/SASSAgent.js:141:49) at Object.trigger (/utils/EventDispatcher.js:222:40) at _setStatus (/LiveDevelopment/LiveDevelopment.js:329:17) at Object.init (/LiveDevelopment/LiveDevelopment.js:1487:9) at eval (/LiveDevelopment/main.js:308:25) at _callHandler (/utils/AppInit.js:93:13) at Object._dispatchReady (/utils/AppInit.js:113:13) /LiveDevelopment/MultiBrowserImpl/transports/NodeSocketTransport.js:87 NodeSocketTransport - start /command/KeyBindingManager.js:740 Cannot assign Alt-Cmd-B to io.emmet.balance_outward. It is already assigned to com.adobe.brackets.commands.bower.installFromBower /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at init (file:///Users/MiniKat/Library/Application%20Support/Brackets/extensions/user/brackets-emmet/main.js:245:3) at loadExtensions (file:///Users/MiniKat/Library/Application%20Support/Brackets/extensions/user/brackets-emmet/main.js:169:4) at file:///Users/MiniKat/Library/Application%20Support/Brackets/extensions/user/brackets-emmet/main.js:264:3 at _callHandler (/utils/AppInit.js:93:13) at Object._dispatchReady (/utils/AppInit.js:113:13) at Object.eval (/brackets.js:291:33) at j (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:26911) /filesystem/impls/appshell/AppshellFileSystem.js:441 Blind write attempted: /Users/MiniKat/Desktop/sandbox/.brackets.json 1425513486000 null /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at Object.registerMainPanel (/./MainPanel.js:285:9) at _appReadyHandler (/main.js:281:19) at _callHandler (/utils/AppInit.js:93:13) at _addListener (/utils/AppInit.js:128:13) at Object.appReady (/utils/AppInit.js:141:9) at Object.eval (/main.js:304:17) at j (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:26911) /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at Object._initParfaitControlsPopup as initParfaitControlsPopup at _appReadyHandler (/main.js:282:22) at _callHandler (/utils/AppInit.js:93:13) at _addListener (/utils/AppInit.js:128:13) at Object.appReady (/utils/AppInit.js:141:9) at Object.eval (/main.js:304:17) at j (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:26911) /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at _appReadyHandler (/main.js:285:9) at _callHandler (/utils/AppInit.js:93:13) at _addListener (/utils/AppInit.js:128:13) at Object.appReady (/utils/AppInit.js:141:9) at Object.eval (/main.js:304:17) at j (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:26911) at Object.k.fireWith as resolveWith /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at _attachExtensionManagerListener (/main.js:118:9) at _appReadyHandler (/main.js:289:9) at _callHandler (/utils/AppInit.js:93:13) at _addListener (/utils/AppInit.js:128:13) at Object.appReady (/utils/AppInit.js:141:9) at Object.eval (/main.js:304:17) at j (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:26911) /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at _setupAbandonmentEvents (/main.js:234:9) at _appReadyHandler (/main.js:291:9) at _callHandler (/utils/AppInit.js:93:13) at _addListener (/utils/AppInit.js:128:13) at Object.appReady (/utils/AppInit.js:141:9) at Object.eval (/main.js:304:17) at j (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:26911) /utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper. at new jQuery.fn.init (/brackets.js:481:36) at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405) at _appReadyHandler (/main.js:294:9) at _callHandler (/utils/AppInit.js:93:13) at _addListener (/utils/AppInit.js:128:13) at Object.appReady (/utils/AppInit.js:141:9) at Object.eval (/main.js:304:17) at j (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:26911) at Object.k.fireWith as resolveWith

On Mar 10, 2015, at 4:34 PM, Albertina Durante notifications@github.com wrote:

Hi @awakekat https://github.com/awakekat , sorry for the delay on the fix, I setup an environment in mac, so I can fix this ASAP, can you share the output of console please? If there's something that can help me.

— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-78142174.

awakekat commented 9 years ago

So here is a question... I am trying to fix my $PATH, what does yours look like? when I type 'which bower', I get /usr/local/bin/bower - so it is there but it must not be in the path for Brackets to find. I have manually added the bower path to $PATH and it looks like this:

export PATH=/usr/local/bin:/usr/local/git/bin:/usr/local/bin/bower:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin

Is there something out of order or missing??

Thanks

awakekat commented 9 years ago

Ok it's late and I have been working at this too long. The error I am getting now is that the plugin cannot find git. I type 'which git' and get '/usr/local/git/bin/git' and my path= '/usr/local/bin:/usr/local/git/bin/git:/usr/local/bin/bower:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin'

I have uninstalled and reinstall the bower plugin each time I have made changes to the $PATH to check if it finds it - not so.

So if someone has a working plugin please let me know what your path says...

albertinad commented 9 years ago

There's no need to have bower installed on the system, because the extension provides one. I'm trying to reproduce this on my mac, today I will try to have an answer for you.

awakekat commented 9 years ago

Tinkering some more... So this morning I went to bower install a package in the terminal and bower couldn't find git - What the...!! So I put the default git path as the very first entry - /usr/local/git/bin Then I was able to see the path with 'which git' but it gave me - /usr/local/git/bin/git so I put that at the end of the path, but brackets bower is still not happy...

albertinad commented 9 years ago

and with that change to the PATH variable, did you try to run bower install from the console?

awakekat commented 9 years ago

No because with a new install of the bower plugin I got the same error trying to find git, but I gave it a try and got this: screen shot 2015-03-12 at 12 42 15 pm

awakekat commented 9 years ago

With the plugin installed, opening Brackets shows this error every time:

screen shot 2015-03-12 at 12 44 14 pm

albertinad commented 9 years ago

Sorry! I mean running bower install jquery from a OS terminal/console.

albertinad commented 9 years ago

The output of echo $PATH on the terminal of my mac is the following: /usr/bin:/bin:/usr/sbin:/usr/local/bin:/opt/x11/bin:/usr/local/git/bin and the output of which git: /usr/bin/git

albertinad commented 9 years ago

Can you try to modify your env PATH variable, to include this path /usr/local/git/bin instead of the path to the binary directly, /usr/local/git/bin/git ?. But make that change directly to the /etc/paths.

awakekat commented 9 years ago

I am with you until the part: "But make that change directly to the /etc/paths." Where is that located? Yes I have /usr/local/git/bin as the very first entry and still get error.

albertinad commented 9 years ago

I mean that you can try open the file paths, located at /etc (I'm not really sure if that is a common location for the file in mac no matter the version of the OS). Another question, may be a dummy one, did you export the modified PATH variable on the terminal instance that you're running bower and git, or did you just update some file like bash_profile for your user?

Sorry to insist on this :) but I need to understand if this is a problem from my extension or bower to locate git in your system. If you run the command bower install jquery in a terminal and get an error, it's a path problem.

awakekat commented 9 years ago

Yes in my mac terminal I can type ‘bower install jquery’ and it works.

I do have a bash profile manager .zsh and the .zshrc file is the one I am using to update the path. Outside of that process I don’t know where else on a mac the PATH would be listed. I did look around for a /etc and didn’t find one even in the hidden files.

If the plugin is looking for git and can’t find it in the “normal location”, is there a preference in the plugin to override and enter the new path??

On Mar 13, 2015, at 6:07 PM, Albertina Durante notifications@github.com wrote:

I mean that you can try open the file paths, located at /etc (I'm not really sure if that is a common location for the file in mac no matter the version of the OS). Another question, may be a dummy one, did you export the modified PATH variable on the terminal instance that you're running bower and git, or did you just update some file like bash_profile for your user?

Sorry to insist on this :) but I need to understand if this is a problem from my extension or bower to locate git in your system. If you run the command bower install jquery in a terminal and get an error, it's a path problem.

— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-79465511.

albertinad commented 9 years ago

The extension uses node child_process.exec to run git --version. If that doesn't work, is not a really big problem, just improving the mechanism of detection of git would be enough. My concern is that internally, bower from the extension can't find git. Internally, bower (provided through the extension) uses child_process.spawn to run git commands. It doesn't allow to specify the git executable, it just assume that git is available at the system level. I never changed that, cause I'm providing the current version of bower that is released, and I didn't changed the version it for about months. It is the latest one. Can you provide me the version of mac OS that you're using?

albertinad commented 9 years ago

And what about creating a .bash_profile file in your home directory and there export PATH containing /usr/local/git/bin at first?

awakekat commented 9 years ago

Yosemite 10.10.2

On Mar 13, 2015, at 7:59 PM, Albertina Durante notifications@github.com wrote:

The extension uses node child_process.exec to run git --version. If that doesn't work, is not a really big problem, just improving the mechanism of detection of git would be enough. My concern is that internally, bower from the extension can't find git. Internally, bower (provided through the extension) uses child_process.spawn to run git commands. It doesn't allow to specify the git executable, it just assume that git is available at the system level. I never changed that, cause I'm providing the current version of bower that is released, and I didn't changed the version it for about months. It is the latest one. Can you provide me the version of mac OS that you're using?

— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-79542886.

awakekat commented 9 years ago

Did what you suggested with the .bash_profile - no dice error still pops up

On Mar 13, 2015, at 8:09 PM, Albertina Durante notifications@github.com wrote:

And what about creating a .bash_profile file and there export PATH containing /usr/local/git/bin at first?

— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-79553116.

albertinad commented 9 years ago

Could you please load this version of the extension? Just in case, make sure to uninstall the previous version. This version only add a logger to the node domain, you can try adding a bower.json file to your project, add some dependencies to install, then run install from the extension panel and wait until it fails. Then, after failing to installing the packages, go to your user home directory, and it should be there the file brackets-bower.log. Please share the content with me. If that file wasn't created, open CDT on brackets and paste the output here.

Thanks!

awakekat commented 9 years ago

I manually installed and placed the contents of the zip file folder in Library/Application SupportBrackets/extensions/user

Got the error. Used the plugin to create the bower.json and the bowerrc file

Could not find anywhere on the mac the brackets-bower.log file so here is the contents of the CDT:

NodeDebugUtils.js:117 [node-log 11:47:58 PM] [2015-03-13 23:47:58.729] [ERROR] brackets-bower - [install command] 2015-03-13 23:47:58.734NodeDebugUtils.js:117 [node-log 11:47:58 PM] [2015-03-13 23:47:58.731] [ERROR] brackets-bower - { [Error: git is not installed or not in the PATH] code: 'ENOGIT', data: { endpoint: { name: 'foundation', source: 'zurb/bower-foundation', target: '_' } } } Error: git is not installed or not in the PATH at createError (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/util/createError.js:4:15) at GitHubResolver.GitResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitResolver.js:34:15) at GitHubResolver.GitRemoteResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitRemoteResolver.js:10:17) at new GitHubResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitHubResolver.js:12:23) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolverFactory.js:24:16 at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:1142:26 at _fulfilled (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:749:13) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/nodemodules/q/q.js:509:49 2015-03-13 23:48:04.526NodeDebugUtils.js:117 [node-log 11:48:04 PM] [2015-03-13 23:48:04.524] [ERROR] brackets-bower - [install command] 2015-03-13 23:48:04.528NodeDebugUtils.js:117 [node-log 11:48:04 PM] [2015-03-13 23:48:04.525] [ERROR] brackets-bower - { [Error: git is not installed or not in the PATH] code: 'ENOGIT', data: { endpoint: { name: 'foundation', source: 'zurb/bower-foundation', target: '' } } } Error: git is not installed or not in the PATH at createError (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/util/createError.js:4:15) at GitHubResolver.GitResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitResolver.js:34:15) at GitHubResolver.GitRemoteResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitRemoteResolver.js:10:17) at new GitHubResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitHubResolver.js:12:23) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolverFactory.js:24:16 at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:1142:26 at _fulfilled (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:749:13) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:509:49 2015-03-13 23:48:45.894NodeDebugUtils.js:117 [node-log 11:48:45 PM] [2015-03-13 23:48:45.892] [ERROR] brackets-bower - [list command] 2015-03-13 23:48:45.896NodeDebugUtils.js:117 [node-log 11:48:45 PM] [2015-03-13 23:48:45.894] [ERROR] brackets-bower - { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' } Error: spawn ENOENT at errnoException (child_process.js:980:11) at Process.ChildProcess._handle.onexit (child_process.js:771:34) 2015-03-13 23:49:57.490NodeDebugUtils.js:117 [node-log 11:49:57 PM] [2015-03-13 23:49:57.487] [ERROR] brackets-bower - [install command] 2015-03-13 23:49:57.493NodeDebugUtils.js:117 [node-log 11:49:57 PM] [2015-03-13 23:49:57.490] [ERROR] brackets-bower - { [Error: git is not installed or not in the PATH] code: 'ENOGIT', data: { endpoint: { name: 'foundation', source: 'zurb/bower-foundation', target: '*' } } } Error: git is not installed or not in the PATH at createError (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/util/createError.js:4:15) at GitHubResolver.GitResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitResolver.js:34:15) at GitHubResolver.GitRemoteResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitRemoteResolver.js:10:17) at new GitHubResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitHubResolver.js:12:23) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolverFactory.js:24:16 at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:1142:26 at _fulfilled (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:749:13) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:509:49

On Mar 13, 2015, at 11:12 PM, Albertina Durante notifications@github.com wrote:

Could you please load this https://drive.google.com/file/d/0B2qjL2i00DnjM3FCYlNfSl9lZmM/view?usp=sharing version of the extension? Just in case, make sure to uninstall the previous version. This version only add a logger to the node domain, you can try adding a bower.json file to your project, add some dependencies to install, then run install from the extension panel and wait until it fails. Then, after failing to installing the packages, go to your user home directory, and it should be there the file brackets-bower.log. Please share the content with me. If that file wasn't created, open CDT on brackets and paste the output here.

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-79766264.

albertinad commented 9 years ago

mmm good, just one more time, but with this package. Remove manually the previous version installed, and please, before opening brackets, open a terminal and run bower cache clean. After the error let me see the console output. Sorry to keep you with this, but I'm not able to reproduce it :( and I want to help you.

albertinad commented 9 years ago

Hi @awakekat any news related to this path problem? do you still have this issue?

awakekat commented 9 years ago

Yes, that I can duplicate the same problem on windows too.

Sent from my iPhone

On Apr 22, 2015, at 1:56 AM, Albertina Durante notifications@github.com wrote:

Hi @awakekat any news related to this path problem? do you still have this issue?

— Reply to this email directly or view it on GitHub.

albertinad commented 9 years ago

Now windows too... ok, could you try the zip that I shared with you? If you have the time to try it, then share the CDT output so I can help you. I'm still not able to reproduce it.

awakekat commented 9 years ago

I am going to close this since I seem to be the only one with this problem.

eappell commented 9 years ago

Sorry, but I'm having the same issue in Windows 7, and I can't find anywhere else where this is mentioned so I'm going to add a comment here. Hopefully it will get seen even though this is closed...?

When I open Brackets I get the same big error saying "Git wasn't found on your system". I've checked my PATH and git is definitely in there, and when I run git --version I get git version 1.9.5.msysgit.1 from any directory I happen to be in, so I believe the PATH is correct.

If I attempt to uninstall brackets-bower I get an error that says, "Unable to remove one or more extensions: brackets-bower. Brackets will still reload.". I've tried quitting and restarting Brackets, that didn't help. Also, any extension updates I have no longer work now - they all say "Installation failed. Unknown internal error." when I try to update.

So I can't update any extensions, I can't uninstall bower, and I can't fix the error. Any idea what can I do to resolve this startup error?

Thanks for your help!

albertinad commented 9 years ago

Hi @eappell , I'm re-opening this issue since it seems that can be a common problem. Please, can you try this version of the extension? Before, remove the current installed version. Try to perform the same steps to reproduce the error message. Then, create a bower.json file for your project, add one dependency and then click on install in the bower panel. Let's wait what happened, once it fails or install it. Open brackets CDT, and paste the content here. Or better, if you have available brackets-bower.log file in your home directory, share it with me so I can analyze what is going on.

Thanks!

eappell commented 9 years ago

Hi @albertinad - As I mentioned, I cannot uninstall the extension using the extension manager in Brackets, as it gives me the error. So I moved the extension folder from user to disabled, then restarted Brackets. What I found was that I still cannot update any extensions. Also, I cannot install any new extensions. So I believe my extension manager has become corrupted. I did drop the new version of the extension into the user folder and start Brackets back up, but I am still getting the Bower Warning message... The only steps I did was to start Brackets. I don't even have a bower.json file in the currently open project...

albertinad commented 9 years ago

It sounds like a brackets problem, but let try a few things!: 1) If you don't have a bower.json file, create one using the bower extension panel 2) Install some dependencies through that file 3) Find the brackets-bower.log file and share to me so I can read the logs. The main reason that I want you to install a bower dependency, is to know if bower is able to spawn git. If that is not the case, get the error message, since I can't reproduce it on any environment.

The 'git not found' message from bower extension appears also when there is some problem with node domains in brackets. I need to improve that message.

Thanks!

eappell commented 9 years ago

Ok, the issue I was having is that my proxy server was enabled (I'm in Windows 7) and Brackets couldn't get through it for anything. As soon as I disabled it everything started to work again. I was able to update my extensions, and I did add a bower.json file to the project, and all of the dependencies that I added were installed without issue.

I would post the log file, but I can't find it anywhere - where should it be on a Windows machine? There is no "Home" directory as there is on a Mac or Linux. It's not in my user directory or the AppData directory, that I can see...? Thanks!

albertinad commented 9 years ago

Ahh I see! Still, I will improve that warning message from bower extension. I believe, that you can found the log file location in brackets CDT. When the extension is loaded and the node domain connection from the extension is ready, at that point, the location of the file might be logged in the CDT output. Sorry for that!, it was a quick/dirty implementation so I can get information from the node process code related to this issue.

albertinad commented 9 years ago

Hi @awakekat , if the issue is still there, can you try the latest version available? If the git warning shows up or not, try to install something from the bower.json, if it fails, you should see an error dialog with detail explanation. I'm wondering, if you have installed also brackets-git extension and when you open brackets an error/warning from that extension is also available. Both extensions relies on git available in the system PATH, and both performs mostly the same validation for checking git.

Please, keep me up to date with this, I want this issue resolved :)

Thanks!

albertinad commented 9 years ago

In the case of windows, the recommendation from bower team, is to install it with the option Run Git from the windows command prompt

awakekat commented 9 years ago

I manually installed the contents of the zip into the Mac: Library > Application Support > Brackets > user folder

Here are the lines in my .zshrc file:

export PATH=/usr/bin:/bin:/usr/sbin:/usr/local/bin:/opt/x11/bin:/usr/local/git/bin

These other attempts are commented out:

export PATH=/usr/local/git/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/git/bin/git

export PATH=/usr/local/git/bin:$PATH

export MANPATH="/usr/local/man:$MANPATH”

When I type echo $PATH in terminal I get: /usr/local/heroku/bin:/usr/bin:/bin:/usr/sbin:/usr/local/bin:/opt/x11/bin:/usr/local/git/bin:/Users/katherinewakefield/.rvm/bin

I know that this path has : as a separator for added paths. Can this be pruned? I installed heroku and it was over my head - can this path be deleted?

When I type which git: /usr/local/git/bin/git

I have entered this address into both the .zshrc file and the .bash_profile

When I type 'which git' again, I get git not found

In looking around I found this about which git: 'this will give the path of the git binary file not the git installation directory’

If I go back and change the git path to: /usr/local/git/bin - "which git” works showing the path

What I don't understand is where the heroku is coming from, every other path is designated either in .zshrc file and or replicated in the .bash_profile file. Here is a question, how do I know which file is the default bash file for OSX?

I am using iTerm2 and ohmyzsh. Could there be an error in iTerm somewhere? I only say this since at one time your extension did work in brackets no problem. I have switched from terminal to iTerm and back again.

I still feel my case is isolated and something is messed up in my setup… No worries, I am sure you would like to have it work but I have a quick keyboard shortcut that opens terminal and I type the bower command there.

Happy Coding!
Katherine

On May 8, 2015, at 6:28 PM, Albertina Durante notifications@github.com wrote:

Hi @awakekat https://github.com/awakekat , if the issue is still there, can you try the (latest)[https://github.com/albertinad/brackets-bower/releases/tag/v0.2.9 https://github.com/albertinad/brackets-bower/releases/tag/v0.2.9] version available? If the git warning shows up or not, try to install something from the bower.json, if it fails, you should see an error dialog with detail explanation. I'm wondering, if you have installed also brackets-git extension and when you open brackets an error/warning from that extension is also available. Both extensions relies on git available in the system PATH, and both performs mostly the same validation for checking git.

Please, keep me up to date with this, I want this issue resolved :)

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-100385530.

awakekat commented 9 years ago

Finally Good News!! I got brackets-bower to work on Windows! I followed these instructions: http://www.chambaud.com/2013/07/08/adding-git-to-path-when-using-github-for-windows/ and I didn't get the error. Now on to do the same for Mac since I use it every day.

albertinad commented 9 years ago

Great news!! :D do you have any updates related on Mac? Thanks!

awakekat commented 9 years ago

Nope not yet. It probably has taken me this long to ask the right question. Where does Brackets look for PATH - what is the name of the file that Brackets is looking for to find the path to git? I think that is my problem since I am using OhMyZSH and iTerm. I am controlling my PATH through a .zshrc file and have located the path to git /usr/local/git/bin/git from typing 'which git'. I have added this path to the .bashrc file too and I am still getting the error. So I am not pointing to the right file that Brackets is looking for the PATH.

infin80 commented 9 years ago

FYI...I'm following this like it's a nail-biting thriller. I'm having the same Yosemite 10.10.3 Mac issues and I'm dying to see how this plays out!!!! BTW my which git returns /usr/local/bin/git if that helps anyone

awakekat commented 9 years ago

I found this article which may or may not help: http://www.sublimelinter.com/en/latest/troubleshooting.html#debugging-path-problems

But it did send me digging again. So I typed 'echo $SHELL' and got /bin/zsh. By the article I went to see the contents of .zprofile which said 'echo profile'.

I went to both .profile and .bash_profile that had the wrong git path for me - changed both and still getting error in Bower Brackets.

.bashrc has the right git path changed .zshrc-e

There are no other files! ARGH!!

MagicLo commented 9 years ago

I have the same issue with my Yosemite 10.10.3, any luck?

awakekat commented 9 years ago

No luck yet. I have given up and just use the terminal. Please post if a solution arises.

Thanks

On Jun 30, 2015, at 11:21 PM, Eason Lo <notifications@github.com mailto:notifications@github.com> wrote:

I have the same issue with my Yosemite 10.10.3, any luck?

— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-117424082.

MagicLo commented 9 years ago

My issue solved: 1.Delete bower.json 2.Follow this article : http://nielsvanrongen.com/bower-exit-code-of-69.html 3.Rerun Brackets

I hope it help.

awakekat commented 9 years ago

Not the problem. xcode already agreed to. Still have this same error on 3 different macs: git issue screen shot 2015-07-23 at 9 43 22 am