Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Problem running eclim #20

Closed
totic opened this Issue · 7 comments

5 participants

@totic

Hi,

I just heard about eclim and am trying to give it a shot and encountered this error:

require(decompile)

eval-buffer(#> nil "/Users/federico/.emacs.d/emacs-eclim/eclim-java.el" nil t) ; Reading at buffer position 1091

load-with-code-conversion("/Users/federico/.emacs.d/emacs-eclim/eclim-java.el" "/Users/federico/.emacs.d/emacs-eclim/eclim-java.el" nil t)

require(eclim-java)

eval-buffer(#> nil "/Users/federico/.emacs.d/emacs-eclim/eclim.el" nil t) ; Reading at buffer position 12825

load-with-code-conversion("/Users/federico/.emacs.d/emacs-eclim/eclim.el" "/Users/federico/.emacs.d/emacs-eclim/eclim.el" nil t)

require(eclim)

eval-buffer(# nil "/Users/federico/.emacs" nil t) ; Reading at buffer position 12862

load-with-code-conversion("/Users/federico/.emacs" "/Users/federico/.emacs" t t)

load("~/.emacs" t t)

#[nil "^H\205\276^@ \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\313\314#\203#^@\315\202A^@\312\307\313\316#\203/^@\317\202A^@\315\202A^@ \320=\203=^@\321\202A^@\307^H\322Q^Z\323^S\324\n\323\211#\210^K\323=\203i^@\325\326\3$
command-line()

normal-top-level()

I am running OSX Lion, have the eclim server running without a problem, also using GNU Emacs 22.1.1. Let me know if there is any other info you need.

Thanks

@rolpereira

You need to add the vendor/ folder to your load-path

(add-to-list 'load-path (expand-file-name "/path/to/emacs-eclim/vendor/"))

Do this before doing (require 'eclim)

@totic

I already have that, below I attached the .emacs part that is relevant

(add-to-list 'load-path (expand-file-name "/Users/federico/.emacs.d/emacs-eclim/"))

;; only add the vendor path when you want to use the libraries provided with emacs-eclim

(add-to-list 'load-path (expand-file-name "/Users/federico/.emacs.d/emacs-eclim/vendor"))

(require 'eclim)

(setq eclim-auto-save t)

(global-eclim-mode)

And the content of the folder
~/.emacs.d/emacs-eclim/vendor (1.9.2p290)(master) $ pwd

/Users/federico/.emacs.d/emacs-eclim/vendor

~/.emacs.d/emacs-eclim/vendor (1.9.2p290)(master) $ ls

decompile.el json.el

Debugger entered--Lisp error: (error "Invalid modifier in string")

eval-buffer(#> nil "/Users/federico/.emacs.d/emacs-eclim/eclim-java.el" nil t) ; Reading at buffer position 4710

load-with-code-conversion("/Users/federico/.emacs.d/emacs-eclim/eclim-java.el" "/Users/federico/.emacs.d/emacs-eclim/eclim-java.el" nil t)

require(eclim-java)

eval-buffer(#> nil "/Users/federico/.emacs.d/emacs-eclim/eclim.el" nil t) ; Reading at buffer position 12825

load-with-code-conversion("/Users/federico/.emacs.d/emacs-eclim/eclim.el" "/Users/federico/.emacs.d/emacs-eclim/eclim.el" nil t)

require(eclim)

eval-buffer(# nil "/Users/federico/.emacs" nil t) ; Reading at buffer position 12859

load-with-code-conversion("/Users/federico/.emacs" "/Users/federico/.emacs" t t)

load("~/.emacs" t t)

#[nil "^H\205\276^@ \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\313\314#\203#^@\315\202A^@\312\307\313\316#\203/^@\317\202A^@\315\202A^@ \320=\203=^@\321\202A^@\307^H\322Q^Z\323^S\324\n\323\211#\210^K\323=\203i^@\325\326\327\307^H\330Q!\"^\3$
command-line()

normal-top-level()

                    [
@rolpereira

My backtrace (without adding the vendor folder to the 'load-path):

Debugger entered--Lisp error: (file-error "Cannot open load file" "decompile")
  require(decompile)
  eval-buffer(#<buffer  *load*<3>> nil "/home/rolando/src/git/emacs-eclim/eclim-java.el" nil t)  ; Reading at buffer position 1091
  load-with-code-conversion("/home/rolando/src/git/emacs-eclim/eclim-java.el" "/home/rolando/src/git/emacs-eclim/eclim-java.el" nil t)
  require(eclim-java)
  eval-buffer(#<buffer  *load*<2>> nil "/home/rolando/src/git/emacs-eclim/eclim.el" nil t)  ; Reading at buffer position 12825
  load-with-code-conversion("/home/rolando/src/git/emacs-eclim/eclim.el" "/home/rolando/src/git/emacs-eclim/eclim.el" nil t)
  require(eclim)
  eval-buffer(#<buffer  *load*> nil "/home/rolando/.emacs" nil t)  ; Reading at buffer position 64822
  load-with-code-conversion("/home/rolando/.emacs" "/home/rolando/.emacs" t t)
  load("~/.emacs" t t)
  #[0 "^H\205\262^@ \306=\203^Q^@\307^H\310Q\202 ; bla bla byte-compiled code
  command-line()
  normal-top-level()

Your backtrace:

Debugger entered--Lisp error: (error "Invalid modifier in string")
eval-buffer(#> nil "/Users/federico/.emacs.d/emacs-eclim/eclim-java.el" nil t) ; Reading at buffer position 4710
load-with-code-conversion("/Users/federico/.emacs.d/emacs-eclim/eclim-java.el" "/Users/federico/.emacs.d/emacs-eclim/eclim-java.el" nil t)
require(eclim-java)
eval-buffer(#> nil "/Users/federico/.emacs.d/emacs-eclim/eclim.el" nil t) ; Reading at buffer position 12825
load-with-code-conversion("/Users/federico/.emacs.d/emacs-eclim/eclim.el" "/Users/federico/.emacs.d/emacs-eclim/eclim.el" nil t)
require(eclim)
eval-buffer(# nil "/Users/federico/.emacs" nil t) ; Reading at buffer position 12859
load-with-code-conversion("/Users/federico/.emacs" "/Users/federico/.emacs" t t)
load("~/.emacs" t t)
#[nil "^H\205\276^@ \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\313\314#\203#^@\315\202A^@\312\307\313\316#\203/^@\317\202A^@\315\202A^@ \320=\203=^@\321\202A^@\307^H\322Q^Z\323^S\324\n\323\211#\210^K\323=\203i^@\325\326\327\307^H\330Q!\"^\3$
command-line()
normal-top-level() 

They looked somewhat similar, that's why I suggested that you added the vendor folder to 'load-path.

However, if you notice the calls to eval-buffer the first argument in my case is something like "#" while yours have only a "#" or a "#>". That could be a clue for where the bug is, unfortunately that code is in the C part of Emacs.

What version of Emacs are you running?

I'm running GNU Emacs 24.0.50.1.

@flamingbear

I'm having a similar issue. I downloaded the most recent version from github on 9/16.

when I get to the (require 'eclim-java) I get an error at position 4765: {backtrace follows from a simple (require 'eclim-java)}

The culprit in my case appears to be eclim--java-current-type-name in particular:
(concat (or type "\(class\|interface\|enum\)") "\s-+\([^<{\s-]+\)") nil t)

and the command (concat "str" "\s-+\([^<{\s-]+\)") fails on:
GNU Emacs 22.3.1 (x86_64-suse-linux-gnu, X toolkit, Xaw3d scroll bars) of 2011-09-19 on chopin

This same command works for GNU Emacs 23.3.1 (i686-pc-linux-gnu, X toolkit) of 2011-09-01 on nsidc-snowblower

Let me know if I can help with any more information

Thanks
Matt


Debugger entered--Lisp error: (error "Invalid modifier in string")
eval-buffer(# nil "/home/savoie/.emacs.d/external-lisp-files/emacs-eclim/eclim-java.el" nil t) ; Reading at buffer position 4765
load-with-code-conversion("/home/savoie/.emacs.d/external-lisp-files/emacs-eclim/eclim-java.el" "/home/savoie/.emacs.d/external-lisp-files/emacs-eclim/eclim-java.el" nil t)
require(eclim-java)
eval((require (quote eclim-java)))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)

@fred-o
Collaborator

Hi guys, sorry for the unreasonalby long delay.

@totic: I'm pretty sure that decompile.el isn't really necessary anymore. You could try removing that require statement from eclim-java.el

@flamingbear: unfortunatly I don't have an emacs 22 to test this on. Is this still a problem for you?

@flamingbear

I haven't been working on this (or even in java). I don't know if I still have an emacs 22 to test with, but I just tried with a new emacs 23.3.2 and I didn't get the same error, but I haven't done more than require eclim and eclim-java. Those two commands appear to work.
Sorry I can't be more help.

@senny
Owner

It's been nine months, I'm closing this issue for now. If you still have problems getting emacs-eclim to run, please reopen and post the problems.

thanks for reporting!

@senny senny closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.