tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.75k stars 139 forks source link

E605: Exception not caught #123

Closed kypalmer closed 10 years ago

kypalmer commented 10 years ago

When trying to use cpp to run an 'is' form

(deftest test-two
  (is (= 2 2)))

I get the error:

Error detected while processing function <SNR>14_Eval..fireplace#echo_session_eval..fireplace#session_eval<SNR>14_eval.9:
line   38:
E605: Exception not caught: Error running Clojure: Error: Could not find or load 
  main class clojure.main^@
Error detected while processing function <SNR>14_Eval:
line   52:
E171: Missing :endif

I installed using Pathogen, and am following this tutorial: http://www.mybuddymichael.com/writings/writing-clojure-with-vim-in-2013.html

Thanks

tpope commented 10 years ago

You caught me midway through a big ol' refactor, can you try with the latest? (It still might be broken for you.)

kypalmer commented 10 years ago

Thanks for the quick reply!

I updated with

git remote update

The same error still shows up when using cpp

On Sunday, January 12, 2014, Tim Pope wrote:

You caught me midway through a big ol' refactor, can you try with the latest? (It still might be broken for you.)

— Reply to this email directly or view it on GitHubhttps://github.com/tpope/vim-fireplace/issues/123#issuecomment-32131497 .

tpope commented 10 years ago

Do you have lein repl running? Do you have classpath.vim installed?

kypalmer commented 10 years ago

I have classpath.vim in /.vim/bundle. I don't have lein repl running though. Does this run in a separate window?

On Sunday, January 12, 2014, Tim Pope wrote:

Do you have lein repl running? Do you have classpath.vim installed?

— Reply to this email directly or view it on GitHubhttps://github.com/tpope/vim-fireplace/issues/123#issuecomment-32132300 .

tpope commented 10 years ago

Okay, so I'm guessing you're just working out of a bare Clojure file not in a project, and that's not going to work without some extra setup. You should follow a tutorial like https://github.com/clojuredocs/guides/blob/master/articles/tutorials/vim_fireplace.md and learn how to create a project with leiningen.

kypalmer commented 10 years ago

Awesome. I was actually trying to get it to work in leingen. So if I use from a leingen project it should work?

On Sunday, January 12, 2014, Tim Pope wrote:

Closed #123 https://github.com/tpope/vim-fireplace/issues/123.

— Reply to this email directly or view it on GitHubhttps://github.com/tpope/vim-fireplace/issues/123 .

tpope commented 10 years ago

Yes.

On Sun, Jan 12, 2014 at 4:02 PM, kypalmer notifications@github.com wrote:

Awesome. I was actually trying to get it to work in leingen. So if I use from a leingen project it should work?

On Sunday, January 12, 2014, Tim Pope wrote:

Closed #123 https://github.com/tpope/vim-fireplace/issues/123.

— Reply to this email directly or view it on GitHub< https://github.com/tpope/vim-fireplace/issues/123> .

— Reply to this email directly or view it on GitHubhttps://github.com/tpope/vim-fireplace/issues/123#issuecomment-32133894 .