Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Suggestion: Integration with Projectile? HOT 3
- Error in post-command-hook (global-eclim-mode-check-buffers): (void-function member-if) HOT 11
- Missing argument for option: n HOT 4
- eclim-run-java-doc fails for multiple projects HOT 1
- Eclim auto completion not working
- Why aren't the pull requests being reviewed? HOT 12
- toggle-maximize-buffer doesn't exist? HOT 2
- Mention new fork of emacs-eclim? HOT 1
- Problem with tramp when using .authinfo.gpg HOT 5
- company-emacs-eclim error: Project 'eclipse' does not have the required nature 'java' HOT 2
- url-insert-file-contents: http://melpa.org/packages/emacs-eclim-20160318.1747.tar: Not found HOT 1
- eclim freezes by auto-save-file HOT 10
- package name not compatible with use-package HOT 1
- Incorrect imports for nested classes when using company autocompletion HOT 1
- cannot open projects HOT 1
- emacs-eclim renamed to eclim in melpa HOT 7
- Directory does not exist: /home/user/eclipse/features HOT 6
- Emacs daemon startup hangs with (require 'eclim) HOT 3
- No "Create type" function? HOT 2
- Could not find or load main class org.test HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-eclim.