Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make tm #137

Closed
dscape opened this issue Dec 11, 2011 · 14 comments
Closed

make tm #137

dscape opened this issue Dec 11, 2011 · 14 comments

Comments

@dscape
Copy link

dscape commented Dec 11, 2011

$ make tm
cp -fr editors/JavaScript\ mocha.tmbundle ~/Library/Application\ Support/TextMate/Bundles/JavaScript\ mocha.tmbundle
cp: /Users/dscape/Library/Application Support/TextMate/Bundles/JavaScript mocha.tmbundle: No such file or directory
cp: editors/JavaScript mocha.tmbundle: unable to copy extended attributes to /Users/dscape/Library/Application Support/TextMate/Bundles/JavaScript mocha.tmbundle: No such file or directory
cp: /Users/dscape/Library/Application Support/TextMate/Bundles/JavaScript mocha.tmbundle/info.plist: No such file or directory
cp: /Users/dscape/Library/Application Support/TextMate/Bundles/JavaScript mocha.tmbundle/Snippets: No such file or directory
cp: editors/JavaScript mocha.tmbundle/Snippets: unable to copy extended attributes to /Users/dscape/Library/Application Support/TextMate/Bundles/JavaScript mocha.tmbundle/Snippets: No such file or directory
cp: /Users/dscape/Library/Application Support/TextMate/Bundles/JavaScript mocha.tmbundle/Snippets/bdd - after each.tmSnippet: No such file or directory
cp: /Users/dscape/Library/Application Support/TextMate/Bundles/JavaScript mocha.tmbundle/Snippets/bdd - after.tmSnippet: No such file or directory
cp: /Users/dscape/Library/Application Support/TextMate/Bundles/JavaScript mocha.tmbundle/Snippets/bdd - before each.tmSnippet: No such file or directory
cp: /Users/dscape/Library/Application Support/TextMate/Bundles/JavaScript mocha.tmbundle/Snippets/bdd - before.tmSnippet: No such file or directory
cp: /Users/dscape/Library/Application Support/TextMate/Bundles/JavaScript mocha.tmbundle/Snippets/bdd - it.tmSnippet: No such file or directory
cp: /Users/dscape/Library/Application Support/TextMate/Bundles/JavaScript mocha.tmbundle/Snippets/untitled.tmSnippet: No such file or directory
make: *** [tm] Error 1
@tj
Copy link
Contributor

tj commented Dec 11, 2011

hmm, must not have any user bundles or something, try mkdir -ping that first, if that's fine i'll add it to the makefile

@dscape
Copy link
Author

dscape commented Dec 11, 2011

I was fine solving it, was just reporting case you can think of how to fix the script :)

dscape at new-host in ~/Desktop/dev/spell on master
$ ls -la ~/Library/Application\ Support/TextMate/
total 8
drwxr-xr-x   5 dscape  staff   170 Dec 11 11:50 .
drwx------+ 26 dscape  staff   884 Dec  6 06:05 ..
drwxr-xr-x   3 dscape  staff   102 Nov  9 01:48 Pristine Copy
-rw-r--r--   1 dscape  staff     5 Dec 11 11:50 TextMate.pid
drwxr-xr-x  64 dscape  staff  2176 Nov  9 02:14 Themes

do have bundles here:

$ ls -la ~/Library/Application\ Support/TextMate/Pristine\ Copy/Bundlestotal 0
drwxr-xr-x  3 dscape  staff  102 Nov  9 02:56 .
drwxr-xr-x  3 dscape  staff  102 Nov  9 01:48 ..
drwxr-xr-x  8 dscape  staff  272 Nov  9 02:54 javascript-tools.tmbundle

@dscape
Copy link
Author

dscape commented Dec 11, 2011

And:

dscape at new-host in ~/Desktop/dev/spell on master
$ mkdir -p  ~/Library/Application\ Support/TextMate/Bundles/JavaScript
dscape at new-host-2 in ~/Desktop/dev/mocha on master
$ make tm
cp -fr editors/JavaScript\ mocha.tmbundle ~/Library/Application\ Support/TextMate/Bundles/JavaScript\ mocha.tmbundle

@tj tj closed this as completed in 892a679 Dec 23, 2011
@pghalliday
Copy link

This fix doesn't work and in fact breaks it in all cases now ;)

I just ran make tm and it created the directory fine then copied the bundle into that directory. Unfortunately as the directory already existed the budle is now an extra level deep and is not detected by textmate.
I think the mkdir line should be:

mkdir -p $(TM_DEST)

you could probably then change the next line to:

cp -fr editors/$(TM_BUNDLE) $(TM_DEST)

but it will work either way I think

@tj
Copy link
Contributor

tj commented Jul 18, 2012

haha my bad, yeah you're right i didn't test that very well, thanks

@pghalliday
Copy link

ah, cool - i'm learning a bit about github and wasn't sure you would see
this comment on a closed issue so i also raised another :)

#515

sorry for the overkill :o

On 18 July 2012 21:32, TJ Holowaychuk <
[email protected]

wrote:

haha my bad, yeah you're right i didn't test that very well, thanks


Reply to this email directly or view it on GitHub:
#137 (comment)

@tj
Copy link
Contributor

tj commented Jul 18, 2012

no worries! thanks for pointing it out

@zedd45
Copy link

zedd45 commented Jul 24, 2012

I'm still experiencing the issue where it copies the bundle two directories deep. I installed Mocha via NPM with the -g (global) flag. I used the solution from #483; cd into the global directory, then run make. I see the bundle, but I had to copy the nested bundle into the parent (Bundles/) directory.

@tj
Copy link
Contributor

tj commented Jul 24, 2012

@zedd45 I haven't released a new version yet, but yes you should clone the repo etc and do make tm

@tj
Copy link
Contributor

tj commented Jul 24, 2012

it shouldn't even be in npm ill remove it

@zedd45
Copy link

zedd45 commented Jul 25, 2012

Clone -> make tm works perfectly. Thanks!

@azat-co
Copy link

azat-co commented Sep 14, 2012

I have mocha.tmbundle: No such file or directory error and there is not nested folder in Library/Application Support/Textmate/Bundles. Any ideas?

UPDATE: npm didn't include editors folder, weird... I wonder what else is missing?

@tj
Copy link
Contributor

tj commented Sep 18, 2012

@azat-co it's in .npmignore, just clone the repo

@azat-co
Copy link

azat-co commented Sep 21, 2012

@visionmedia, yes I figured out to grab it from the repo. thanks! :)

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

No branches or pull requests

5 participants