Giter Site home page Giter Site logo

Problem running eclim about emacs-eclim HOT 7 CLOSED

senny avatar senny commented on July 17, 2024
Problem running eclim

from emacs-eclim.

Comments (7)

rolpereira avatar rolpereira commented on July 17, 2024

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)

from emacs-eclim.

totic avatar totic commented on July 17, 2024

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(#<buffer load<3>> 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(#<buffer load<2>> 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(#<buffer load> 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()

                    [

from emacs-eclim.

rolpereira avatar rolpereira commented on July 17, 2024

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 "#<buffer load>" 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.

from emacs-eclim.

flamingbear avatar flamingbear commented on July 17, 2024

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(#<buffer load> 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)

from emacs-eclim.

fred-o avatar fred-o commented on July 17, 2024

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?

from emacs-eclim.

flamingbear avatar flamingbear commented on July 17, 2024

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.

from emacs-eclim.

senny avatar senny commented on July 17, 2024

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!

from emacs-eclim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.