Using cake with RVM

252 views
Skip to first unread message

Mario Aquino

unread,
Sep 29, 2010, 10:07:08 PM9/29/10
to textmate-clojure
I am having a lot of trouble getting this bundle to work on my
machine. I use RVM to manage the version of Ruby I use. When I try
to run one of the commands from the bundle, I get the following error:
"env: cake: No such file or directory". I have installed the cake
gem, but because I use RVM, my gem directory is not in the place that
the version of Ruby that comes with OSX expects it to be.

RVM has instructions for configuring TextMate to use the version of
Ruby that it specifies (http://rvm.beginrescueend.com/integration/
textmate/), but this doesn't seem to have solved my problem.

Any advice on how to get /usr/bin/env to know about cake would be
helpful.

Thanks.

David Nolen

unread,
Sep 30, 2010, 1:00:14 AM9/30/10
to textmate...@googlegroups.com
I'm not a Ruby expert I pinged ninjudd (cake dev) about this on IRC:

ninjudd: it should use whatever ruby is in your path
[10:17pm] ninjudd: so he just need to make sure the rvm one is before the system ruby, i think
[10:18pm] ninjudd: he can test it by running 'which ruby' and making sure it returns the right one

Let us know if this makes sense to you and you get it worked out. I'm sure you're not the only Ruby person with that kind of dev setup so we should modify our instructions to account for this possibility.

Thanks,
David 

Mario Aquino

unread,
Sep 30, 2010, 8:33:05 AM9/30/10
to textmate...@googlegroups.com
The problem (I believe) is that calling "/usr/bin/env cake run" at the top of all of your scripts forces the use of the system Ruby (since the system Ruby is the one that env "knows" about).  The Ruby that RVM manages is definitely ahead of the system Ruby in my PATH, but that doesn't help the 'env' call.  

In my local workspace, I changed all the calls to "#!/usr/bin/env cake run" to instead be: "#!/Users/mario/.rvm/gems/ruby-1.8.7-p302/bin/cake run", but this didn't solve my problem:


/Users/mario/Library/Application Support/TextMate/Bundles/ClojureCake.tmbundle/Support/bin/load_file.clj: line 4: require: command not found /Users/mario/Library/Application Support/TextMate/Bundles/ClojureCake.tmbundle/Support/bin/load_file.clj: line 5: syntax error near unexpected token `(' /Users/mario/Library/Application Support/TextMate/Bundles/ClojureCake.tmbundle/Support/bin/load_file.clj: line 5: `(let [tm-filepath (cake/*env* "TM_FILEPATH")]'

I also had to change "Cake Start.tmCommand" so that instead of just calling "cake" it called the explicit path to cake (inside of the rvm directory where the gem is installed).  This change got the cake JVM up and running (it didn't work before because "cake" wasn't on the system path, which is what gets called when you just try to invoke 'cake' in that JavaScript evaluation string).  But even with the cake JVM running, the explicit cake reference in the shebang line of all the clj files doesn't get this bundle's commands to work.

I am open to suggestions.  I have my own Clojure bundle (http://github.com/marioaquino/Clojure-tmbundle) that I would like to merge with this bundle if I can get the cake integration working.

Thanks,

--Mario

David Nolen

unread,
Sep 30, 2010, 8:43:29 AM9/30/10
to textmate...@googlegroups.com
On Thu, Sep 30, 2010 at 8:33 AM, Mario Aquino <mario.e...@gmail.com> wrote:
The problem (I believe) is that calling "/usr/bin/env cake run" at the top of all of your scripts forces the use of the system Ruby (since the system Ruby is the one that env "knows" about).  The Ruby that RVM manages is definitely ahead of the system Ruby in my PATH, but that doesn't help the 'env' call.  

In my local workspace, I changed all the calls to "#!/usr/bin/env cake run" to instead be: "#!/Users/mario/.rvm/gems/ruby-1.8.7-p302/bin/cake run", but this didn't solve my problem:


/Users/mario/Library/Application Support/TextMate/Bundles/ClojureCake.tmbundle/Support/bin/load_file.clj: line 4: require: command not found /Users/mario/Library/Application Support/TextMate/Bundles/ClojureCake.tmbundle/Support/bin/load_file.clj: line 5: syntax error near unexpected token `(' /Users/mario/Library/Application Support/TextMate/Bundles/ClojureCake.tmbundle/Support/bin/load_file.clj: line 5: `(let [tm-filepath (cake/*env* "TM_FILEPATH")]'

I also had to change "Cake Start.tmCommand" so that instead of just calling "cake" it called the explicit path to cake (inside of the rvm directory where the gem is installed).  This change got the cake JVM up and running (it didn't work before because "cake" wasn't on the system path, which is what gets called when you just try to invoke 'cake' in that JavaScript evaluation string).  But even with the cake JVM running, the explicit cake reference in the shebang line of all the clj files doesn't get this bundle's commands to work.

I am open to suggestions.  I have my own Clojure bundle (http://github.com/marioaquino/Clojure-tmbundle) that I would like to merge with this bundle if I can get the cake integration working.

Thanks,

--Mario

And I suppose adding an alias in your .profile and/or .bashrc doesn't help here?

alias cake='/path/to/cake'

David 

Mario Aquino

unread,
Oct 1, 2010, 7:01:35 AM10/1/10
to textmate...@googlegroups.com
I tried aliasing cake in my .profile but it had no effect.

I am going to try introducing a generic run script that will just call cake and pass a clj file as a parameter (rather than calling cake via the shebang declaration at the top of the clj files).  If it works out, I will submit a pull request.

--Mario

David Nolen

unread,
Oct 1, 2010, 9:19:36 AM10/1/10
to textmate...@googlegroups.com
A favor since I can't really recreate your environment. Change the Clojure bundle Eval command in the Bundle Editor to look like the following:

# just to remind you of some useful environment variables
# see Help / Shell Variables for the full list
. "${TM_SUPPORT_PATH}/lib/html.sh"
. "${TM_SUPPORT_PATH}/lib/webpreview.sh"

# Prepare output window.
html_header 'Evaluate'
${CAKE_PATH} eval.clj

Add your cake path via Preferences > Advanced > Shell Variables

And give the command a shot.

David

Mario Aquino

unread,
Oct 1, 2010, 8:18:51 PM10/1/10
to textmate...@googlegroups.com
Thanks for the suggestion.  Didn't work, unfortunately.  I am at a loss to explain what may be going wrong.

It seems that I won't be able to use your plugin.  That's a pity because it would really help me.

If you ever get around to using RVM to manage your Ruby installations, please try working it out yourself.

--Mario

David Nolen

unread,
Oct 1, 2010, 8:38:46 PM10/1/10
to textmate...@googlegroups.com
On Fri, Oct 1, 2010 at 8:18 PM, Mario Aquino <mario.e...@gmail.com> wrote:
Thanks for the suggestion.  Didn't work, unfortunately.  I am at a loss to explain what may be going wrong.

It seems that I won't be able to use your plugin.  That's a pity because it would really help me.

If you ever get around to using RVM to manage your Ruby installations, please try working it out yourself.

--Mario

Mario Aquino

unread,
Oct 1, 2010, 9:28:36 PM10/1/10
to textmate...@googlegroups.com
I hadn't seen that link, but I did follow equivalent instructions from the RVM site:  http://rvm.beginrescueend.com/integration/textmate/

If anyone else on the list is using RVM and has gotten this working with TextMate, I would love to hear about it.  It would mean that something is unusual about my own environment, which would surprise me.

--Mario

David Nolen

unread,
Oct 1, 2010, 9:41:16 PM10/1/10
to textmate...@googlegroups.com
What happens when you try /usr/bin/env cake at the command line?

Mario Aquino

unread,
Oct 1, 2010, 9:47:01 PM10/1/10
to textmate...@googlegroups.com
'/usr/bin/env cake' works for me from the command line (IOW, I get a list of all the things that cake accepts as command line params).  Just typing 'cake' by itself also works.

David Nolen

unread,
Oct 1, 2010, 10:45:54 PM10/1/10
to textmate...@googlegroups.com
On Fri, Oct 1, 2010 at 9:47 PM, Mario Aquino <mario.e...@gmail.com> wrote:
'/usr/bin/env cake' works for me from the command line (IOW, I get a list of all the things that cake accepts as command line params).  Just typing 'cake' by itself also works.

Hmm. I'll try to install RVM over the weekend and investigate.

Thanks,
David 

grantmichaels

unread,
Oct 5, 2010, 7:54:24 AM10/5/10
to textmate-clojure
+1 difficulty w/ RVM-based ruby last night. I might get another stab
at it today sometime, though.

On Oct 1, 10:45 pm, David Nolen <dnolen.li...@gmail.com> wrote:

David Nolen

unread,
Oct 5, 2010, 8:39:09 AM10/5/10
to textmate...@googlegroups.com
Looking into this today.

John Paul

unread,
Oct 5, 2010, 11:27:52 AM10/5/10
to textmate-clojure
I went through several iterations this AM to get textmate + clojure +
rvm working and had some success.

Environment:

OSX 10.6.4
Textmate 1.5.9 (1589)
homebrew installed clojure
rvm 1.0.12 using ruby 1.9.2-p0 as my default ruby

Here's a quick summary:

* Installed clojure-tmbundle
* Installed cake (gem install cake) into my default ruby (1.9.2-p0)

immediate blowup because the "cake" executable being found was cake.js
from my node install

So now I RTFM to get textmate working with rvm (I use autotest at
command line, so never even tried Command+R for ruby which was
horribly broken)

First I find that I'm running system ruby (1.8.7) by default in
Textmate. Then I follow the directions from http://rvm.beginrescueend.com/integration/textmate/

$ rvm wrapper 1.9.2 textmate

And then I set my TM_RUBY variable to /Users/me/.rvm/bin/textmate_ruby

And it blows up because I didn't RTFM for Ruby 1.9 and Textmate/RVM

ruby:0:in `require': /Users/someuserhere/Library/Application Support/
TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:13:
invalid multibyte char (US-ASCII) (SyntaxError)

So now I go to my custom bundle for Ruby and do a git pull

OK, now everything should be ok -- ruby runs great in Textmate using
my RVM'ed 1.9.2-p0. Yay!

Back to clojure.

FAIL! Same freakin' coffescript/cake error. Why isn't it picking up
the right path?

Did a quick check and found I had hardcoded a PATH into Textmate,
which is not unusual. Unchecked that PATH in my Textmate Shell
Variables and restarted.

Booyah! (+ 4 5) = 9

I'm at clojure goodness.

So in a nutshell:

* RTFM for RVM + Textmate (including updating your Ruby bundle)
* RTFM for clojure bundle
* disable the Textmate path and see if fixes any remaining errors

Worked for me, of course YMMV.

On Oct 5, 8:39 am, David Nolen <dnolen.li...@gmail.com> wrote:
> Looking into this today.
>

David Nolen

unread,
Oct 5, 2010, 11:45:59 AM10/5/10
to textmate...@googlegroups.com
On Tue, Oct 5, 2010 at 11:27 AM, John Paul <john.paul....@gmail.com> wrote:
I went through several iterations this AM to get textmate + clojure +
rvm working and had some success.

John Paul thanks a million for the follow up!

Mario and Grant can you verify that this works for you all?

I'd like to get information in the textmate-clojure readme about RVM asap, as it sounds like this will be quite common among TextMate Ruby users.

Thanks all,
David

Mario Aquino

unread,
Oct 5, 2010, 7:51:28 PM10/5/10
to textmate...@googlegroups.com
John Paul's instructions helped, they definitely got me farther than I had been getting before.  I still get an error, though:

clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate clojure/contrib/seq_utils__init.class or clojure/contrib/seq_utils.clj on classpath: (utils.clj:1) at clojure.lang.Compiler.eval (Compiler.java:5435) clojure.lang.Compiler.eval (Compiler.java:5410) clojure.lang.Compiler.load (Compiler.java:5852) clojure.lang.Compiler.loadFile (Compiler.java:5815) clojure.lang.RT$3.invoke (RT.java:296) clojure.core$eval728.invoke (eval_last_sexpr.clj:3) clojure.lang.Compiler.eval (Compiler.java:5419) clojure.lang.Compiler.load (Compiler.java:5852) clojure.lang.Compiler.loadFile (Compiler.java:5815) clojure.lang.RT$3.invoke (RT.java:296) cake.server$run_file.invoke (server.clj:93) cake.server$create$fn__631$fn__638.invoke (server.clj:136) cake.server$create$fn__631.invoke (server.clj:119) cake.utils.server_socket$accept_fn$fn__297$fn__300.invoke (server_socket.clj:39) cake.utils.server_socket$accept_fn$fn__297.invoke (server_socket.clj:38) clojure.lang.AFn.run (AFn.java:24) java.lang.Thread.run (Thread.java:637) Caused by: java.io.FileNotFoundException: Could not locate clojure/contrib/seq_utils__init.class or clojure/contrib/seq_utils.clj on classpath: at clojure.lang.RT.load (RT.java:412) clojure.lang.RT.load (RT.java:381) clojure.core$load$fn__4509.invoke (core.clj:4905) clojure.core$load.doInvoke (core.clj:4904) clojure.lang.RestFn.invoke (RestFn.java:409) clojure.core$load_one.invoke (core.clj:4729) clojure.core$load_lib.doInvoke (core.clj:4766) clojure.lang.RestFn.applyTo (RestFn.java:143) clojure.core$apply.invoke (core.clj:542) clojure.core$load_libs.doInvoke (core.clj:4800) clojure.lang.RestFn.applyTo (RestFn.java:138) clojure.core$apply.invoke (core.clj:542) clojure.core$require.doInvoke (core.clj:4869) clojure.lang.RestFn.invoke (RestFn.java:483) textmate$eval732$loading__4408__auto____733.invoke (utils.clj:1) textmate$eval732.invoke (utils.clj:1) clojure.lang.Compiler.eval (Compiler.java:5419) clojure.lang.Compiler.eval (Compiler.java:5410) clojure.lang.Compiler.load (Compiler.java:5852) clojure.lang.Compiler.loadFile (Compiler.java:5815) clojure.lang.RT$3.invoke (RT.java:296) clojure.core$eval728.invoke (eval_last_sexpr.clj:3) clojure.lang.Compiler.eval (Compiler.java:5419) clojure.lang.Compiler.load (Compiler.java:5852) clojure.lang.Compiler.loadFile (Compiler.java:5815) clojure.lang.RT$3.invoke (RT.java:296) cake.server$run_file.invoke (server.clj:93) cake.server$create$fn__631$fn__638.invoke (server.clj:136) cake.server$create$fn__631.invoke (server.clj:119) cake.utils.server_socket$accept_fn$fn__297$fn__300.invoke (server_socket.clj:39) cake.utils.server_socket$accept_fn$fn__297.invoke (server_socket.clj:38) clojure.lang.AFn.run (AFn.java:24) java.lang.Thread.run (Thread.java:637)


I also have clojure (and clojure-contrib) installed via homebrew.  The error message above looks to me like the bundle code (utils.clj) is blowing up because it can't find a file from clojure-contrib on the classpath.  Any idea how to resolve this?

--Mario

David Nolen

unread,
Oct 5, 2010, 8:54:02 PM10/5/10
to textmate...@googlegroups.com
On Tue, Oct 5, 2010 at 7:51 PM, Mario Aquino <mario.e...@gmail.com> wrote:
John Paul's instructions helped, they definitely got me farther than I had been getting before.  I still get an error, though:

clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate clojure/contrib/seq_utils__init.class or clojure/contrib/seq_utils.clj on classpath: (utils.clj:1) at clojure.lang.Compiler.eval (Compiler.java:5435) clojure.lang.Compiler.eval (Compiler.java:5410) clojure.lang.Compiler.load (Compiler.java:5852) clojure.lang.Compiler.loadFile (Compiler.java:5815) clojure.lang.RT$3.invoke (RT.java:296) clojure.core$eval728.invoke (eval_last_sexpr.clj:3) clojure.lang.Compiler.eval (Compiler.java:5419) clojure.lang.Compiler.load (Compiler.java:5852) clojure.lang.Compiler.loadFile (Compiler.java:5815) clojure.lang.RT$3.invoke (RT.java:296) cake.server$run_file.invoke (server.clj:93) cake.server$create$fn__631$fn__638.invoke (server.clj:136) cake.server$create$fn__631.invoke (server.clj:119) cake.utils.server_socket$accept_fn$fn__297$fn__300.invoke (server_socket.clj:39) cake.utils.server_socket$accept_fn$fn__297.invoke (server_socket.clj:38) clojure.lang.AFn.run (AFn.java:24) java.lang.Thread.run (Thread.java:637) Caused by: java.io.FileNotFoundException: Could not locate clojure/contrib/seq_utils__init.class or clojure/contrib/seq_utils.clj on classpath: at clojure.lang.RT.load (RT.java:412) clojure.lang.RT.load (RT.java:381) clojure.core$load$fn__4509.invoke (core.clj:4905) clojure.core$load.doInvoke (core.clj:4904) clojure.lang.RestFn.invoke (RestFn.java:409) clojure.core$load_one.invoke (core.clj:4729) clojure.core$load_lib.doInvoke (core.clj:4766) clojure.lang.RestFn.applyTo (RestFn.java:143) clojure.core$apply.invoke (core.clj:542) clojure.core$load_libs.doInvoke (core.clj:4800) clojure.lang.RestFn.applyTo (RestFn.java:138) clojure.core$apply.invoke (core.clj:542) clojure.core$require.doInvoke (core.clj:4869) clojure.lang.RestFn.invoke (RestFn.java:483) textmate$eval732$loading__4408__auto____733.invoke (utils.clj:1) textmate$eval732.invoke (utils.clj:1) clojure.lang.Compiler.eval (Compiler.java:5419) clojure.lang.Compiler.eval (Compiler.java:5410) clojure.lang.Compiler.load (Compiler.java:5852) clojure.lang.Compiler.loadFile (Compiler.java:5815) clojure.lang.RT$3.invoke (RT.java:296) clojure.core$eval728.invoke (eval_last_sexpr.clj:3) clojure.lang.Compiler.eval (Compiler.java:5419) clojure.lang.Compiler.load (Compiler.java:5852) clojure.lang.Compiler.loadFile (Compiler.java:5815) clojure.lang.RT$3.invoke (RT.java:296) cake.server$run_file.invoke (server.clj:93) cake.server$create$fn__631$fn__638.invoke (server.clj:136) cake.server$create$fn__631.invoke (server.clj:119) cake.utils.server_socket$accept_fn$fn__297$fn__300.invoke (server_socket.clj:39) cake.utils.server_socket$accept_fn$fn__297.invoke (server_socket.clj:38) clojure.lang.AFn.run (AFn.java:24) java.lang.Thread.run (Thread.java:637)


I also have clojure (and clojure-contrib) installed via homebrew.  The error message above looks to me like the bundle code (utils.clj) is blowing up because it can't find a file from clojure-contrib on the classpath.  Any idea how to resolve this?

--Mario

Cake uses it's own copies of clojure and clojure-contrib. Can you write out the exact steps that you are taking that create this error? For example does this happen when:

1. Launch TextMate
2. Save a file called test.clj
3. Command-R to start cake
4. Write a sexpr like (+ 4 5) in the file and save
6. Type Control-X right after the closing paren

?

Thanks,
David

grantmichaels

unread,
Oct 5, 2010, 11:51:38 PM10/5/10
to textmate-clojure
Thanks to John Paul, I'm up and running as well now, except that the
paths are different for my using cinderella as a starting point
(http://github.com/atmos/cinderella) ...

$ rvm install ruby-1.9.2-p0
$ rvm use ruby 1.9.2
$ gem install cake
$ rvm wrapper 1.9.2 <some_wrapper_name>
$ cd /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
$ mv Builder.rb Builder.rb.backup

then I set the TM_RUBY shell setting in TM's prefs to /Users/
<your_name>/Developer/.rvm/bin/<some_wrapper_name>_ruby

http://skitch.com/grantmichaels/d4bw3/skitch

hooray!

On Oct 5, 8:54 pm, David Nolen <dnolen.li...@gmail.com> wrote:

Mario Aquino

unread,
Oct 8, 2010, 8:33:15 AM10/8/10
to textmate...@googlegroups.com
Following those 6 exact instructions causes the error message I previously posted about clojure not being able to find clojure/contrib/seq_utils__init.class or clojure/contrib/seq_utils.clj on the classpath.  So I have tried a few things to resolve it.  

1) I have a "clj" script that homebrew setup for me.  This script only includes the main clojure.jar file when it tries to run clojure.main.  I edited this script to also include clojure-contrib on the classpath.  This had no effect (IOW, I get the same error message about seq_utils.clj not being found on the classpath).  I only just now saw your note about cake using its own version of clojure and clojure-contrib so my changing the clj script and that not having any effect makes sense.  Do you know if it is possible to tell cake to use a different version of clojure (and clojure-contrib)?

2) I also created a CLASSPATH environment variable (in TextMate's preferences dialog) that included both clojure.jar and clojure-contrib.jar files (both from the homebrew clojure installation path).  This likewise had no effect.

Given the other folks were able to get this working without having to tinker with cake or cake which version of clojure (and clojure-contrib) to use, I am at a loss about why this isn't working for me.  I have tried using the cake gem both from Ruby 1.8.7 and 1.9.2 (via rvm).

It feels like I am closer that I was before, but I don't know how to add clojure-contrib to the classpath that cake needs when it tries to run the bundle scripts.

--Mario

David Nolen

unread,
Oct 8, 2010, 9:55:01 AM10/8/10
to textmate...@googlegroups.com
On Fri, Oct 8, 2010 at 8:33 AM, Mario Aquino <mario.e...@gmail.com> wrote:
Following those 6 exact instructions causes the error message I previously posted about clojure not being able to find clojure/contrib/seq_utils__init.class or clojure/contrib/seq_utils.clj on the classpath.  So I have tried a few things to resolve it.  

1) I have a "clj" script that homebrew setup for me.  This script only includes the main clojure.jar file when it tries to run clojure.main.  I edited this script to also include clojure-contrib on the classpath.  This had no effect (IOW, I get the same error message about seq_utils.clj not being found on the classpath).  I only just now saw your note about cake using its own version of clojure and clojure-contrib so my changing the clj script and that not having any effect makes sense.  Do you know if it is possible to tell cake to use a different version of clojure (and clojure-contrib)?

2) I also created a CLASSPATH environment variable (in TextMate's preferences dialog) that included both clojure.jar and clojure-contrib.jar files (both from the homebrew clojure installation path).  This likewise had no effect.

Given the other folks were able to get this working without having to tinker with cake or cake which version of clojure (and clojure-contrib) to use, I am at a loss about why this isn't working for me.  I have tried using the cake gem both from Ruby 1.8.7 and 1.9.2 (via rvm).

It feels like I am closer that I was before, but I don't know how to add clojure-contrib to the classpath that cake needs when it tries to run the bundle scripts.

Cake manages everything. Fetching the proper versions of clojure and clojure-contrib as well as setting your CLASSPATH. You shouldn't have to do anything special. The fact that cake seems to work on your setup from the command line seems to suggest this. My hunch here is that in your experimentation you may have set an environment variable that is throwing things off. If you have any clojure or Java customizations in your .profile or .bashrc I would remove these. If you have any clojure or Java custom environment variables in your TextMate Preference I would remove these as well.

Sorry that things aren't going smoothly for you but finding the root of the problem will help us figure out what the edge cases are. Thank you for continuing to investigate.

David 

David Nolen

unread,
Oct 9, 2010, 2:44:28 PM10/9/10
to textmate...@googlegroups.com
On Fri, Oct 8, 2010 at 8:33 AM, Mario Aquino <mario.e...@gmail.com> wrote:
Following those 6 exact instructions causes the error message I previously posted about clojure not being able to find clojure/contrib/seq_utils__init.class or clojure/contrib/seq_utils.clj on the classpath.  So I have tried a few things to resolve it.  

1) I have a "clj" script that homebrew setup for me.  This script only includes the main clojure.jar file when it tries to run clojure.main.  I edited this script to also include clojure-contrib on the classpath.  This had no effect (IOW, I get the same error message about seq_utils.clj not being found on the classpath).  I only just now saw your note about cake using its own version of clojure and clojure-contrib so my changing the clj script and that not having any effect makes sense.  Do you know if it is possible to tell cake to use a different version of clojure (and clojure-contrib)?

2) I also created a CLASSPATH environment variable (in TextMate's preferences dialog) that included both clojure.jar and clojure-contrib.jar files (both from the homebrew clojure installation path).  This likewise had no effect.

Given the other folks were able to get this working without having to tinker with cake or cake which version of clojure (and clojure-contrib) to use, I am at a loss about why this isn't working for me.  I have tried using the cake gem both from Ruby 1.8.7 and 1.9.2 (via rvm).

It feels like I am closer that I was before, but I don't know how to add clojure-contrib to the classpath that cake needs when it tries to run the bundle scripts.

--Mario

Mario I ran into this problem today but it wasn't from making a new .clj file and trying things out. This happened when I ran 'cake new foo' and created a source file in the foo project directory. When I tried to load the file I got the contrib error. This is because the default project.clj files for cake do not include contrib by default.

David

Mario Aquino

unread,
Oct 9, 2010, 6:34:48 PM10/9/10
to textmate...@googlegroups.com
Works!  Wooohoooo!

I just created a new project and added the clojure-contrib to it, then started cake and ran the command to exec a simple foo.clj s-expression I created.  Marvelous!

So I guess this means that the project's library dependencies need to include clojure-contrib in order for the TextMate bundle to work?  Hmmm.  That is unfortunate.  But at least it works!

Thanks for all your help!

--Mario
Reply all
Reply to author
Forward
0 new messages