Closed tomgeorge closed 5 years ago
That's a mighty cryptic error. Recent versions should give you a bit more in :echo g:fireplace_last_python_exception
.
I'm getting an error when I try to echo that out.
E121: Undefined variable: g:fireplace_last_python_exception
E15: Invalid expression: g:fireplace_last_python_exception
Press ENTER or type command to continue
A little more diagnostic info:
java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b13)
OpenJDK 64-Bit Server VM (build 25.191-b13, mixed mode)
lein version
Warning: implicit hook found: lein-environ.plugin/hooks
Hooks are deprecated and will be removed in a future version.
Leiningen 2.9.1 on Java 1.8.0_191 OpenJDK 64-Bit Server VM
Did you trigger a Traceback (most recent call last)
error first? That variable won't exist if not.
Yes, I eval
-d some bad clojure code and tried to echo it, and I'm still getting the E121: Undefined variable
message
There's nothing else to the original error? Just Vim(return):Traceback (most recent call last):
?
That's correct. I posted an asciinema of it here if you want to take a look
edit: link
Well that rules out some things. Try deleting this catch clause and try again.
Which catch clause do you want me delete? The link just goes to plugin/fireplace.vim, but no line number. I deleted the catches in most of the eval
-looking functions in a sort of shotgun approach, with no effect.
Removing that catch clause showed an error message from the compiler, and lopen
opened up a stacktrace.
I'm officially confused. There's no higher level catch
in the :Eval
implementation, so I don't know why removing a catch clause would allow it to succeed. You didn't update Fireplace in the interim did you?
I removed the catch clause that you told me about, and that seemed to show the stacktrace/location lists. cd-ing to ~/.vim/bundle/vim-fireplace
and doing a git checkout --
of fireplace.vim reintroduced the issue.
I'm out of good things to check for. Make sure :verbose command Eval
points back to fireplace.vim.
That does point back to plugin/fireplace.vim. I'll try running vim with fireplace in a couple of docker containers, maybe I will have better luck with different environments.
Also, thanks for working through this with me, and all your work on the vim ecosystem :bowing_man:
Recent changes might have fixed this.
This error should be impossible on master now.
~/.vimrc
This affects neovim and vim on my system, but I am able to reproduce the error with the
vim
that came with my system (fedora 28):When I try to eval a file, or the
defroutes
form that has an error in it (this is generated straight fromlein new compojure
:I see the following error:
Vim(return):Traceback (most recent call last):
When I try to open the loclist, I get
E776: No location list