After trying to update Cider, I've been unable to start a repl.
I get the following error message, apparently showing a problem with Leiningen:
Loading c:/emacs/graphviz-dot-mode.el (source)...
graphviz-dot-mode.el: (lambda (elm) ...) quoted with ' rather than with #' [4 times]
Loading c:/emacs/graphviz-dot-mode.el (source)...done
Loading c:/emacs/xml-rpc.el (source)...
xml-rpc.el: (lambda (p) ...) quoted with ' rather than with #'
Loading c:/emacs/xml-rpc.el (source)...done
Loading c:/emacs/py/emacs-for-python/epy-init.el (source)...
Loading c:/emacs/py/emacs-for-python/extensions/flymake-patch.el (source)...done
Loading c:/emacs/py/emacs-for-python/extensions/flymake-cursor.el (source)...done
py/emacs-for-python/extensions/auto-complete/auto-complete.el: `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'.
Loading c:/emacs/py/emacs-for-python/epy-init.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making nrepl-create-client-buffer-function local to *nrepl-server graphics* while let-bound!
Making nrepl-use-this-as-repl-buffer local to *nrepl-server graphics* while let-bound!
Starting nREPL server via "c:/Users/Owner/.lein/bin/lein.bat" update-in :dependencies conj ^"[org.clojure/tools.nrepl \^"0.2.12\^"]^" -- update-in :plugins conj ^"[cider/cider-nrepl \^"0.13.0-SNAPSHOT\^"]^" -- repl :headless...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: warning: extra args ignored after '"c:/Users/Owner/.lein/bin/lein.bat'
Leiningen is a tool for working with Clojure projects.
Can anyone tell me what the issue might be?
I'm not vary familiar with running emacs and clojure on Windows, but that error seems to indicate there is an argument mismatch. The first thing I would try is see if you can run lein repl. That should tell you if lein is OK.
Are you using elpa to install clojure-mode and cider? If not, that would be the best way to ensure things are up-to-date. Note that if you are using elpa, then perhaps removing the cider package and installing it again might help. cider gets lots of updates and your problem may just be a transient issue which has already been fixed. I would also check the cider site to see if there are any known issues.
I updated over the weekend to the latest (then) cider and have been running it with no problems on OSX.
Related
New job, new emacs setup. I've used emacs for years but never did much customization. Running CentOS Linux 7.7 and emacs 25.2. I wanted to try the Prelude "starter kit" so I installed it. On emacs starup the Prelude init.el file (~/.emacs.d/init.el) runs and I see: error: Package ‘ag-’ is unavailable.
When I start emacs with debug enabled I see the following back trace:
Debugger entered--Lisp error: (file-error "https://melpa.org/packages/archive-contents" "Bad Request")
signal(file-error ("https://melpa.org/packages/archive-contents" "Bad Request"))
package--download-one-archive(("melpa" . "https://melpa.org/packages/") "archive-contents" nil)
package--download-and-read-archives(nil)
package-refresh-contents()
prelude-install-packages()
require(prelude-packages)
.
.
I'd appreciate any suggestions on how to resolve this.
I just ran into similar issues on a new Debian install, it looks like there are some setup issues in the default init.el.
Check your init.el against the [https://melpa.org/#/getting-started][1], it currently gives the default melpa link as: "https://melpa.org/packages/" - in my case it was http rather than https.
Then check that M-x package-list-packages works, go through the M-x package-refresh-contents , update cycle. For some reason this took a couple of attempts to work for me.
I have installed org-mode Org-mode version 7.9.2+ (7.9.2+-GNU-Emacs-24-3 # /Users/jmankoff/.emacs.d/elpa/org-20131118/) using ELPA and emaics version GNU Emacs 24.3.50.1 (i386-apple-darwin11.4.2, NS apple-appkit-1138.51) of 2012-11-21 on jcmankoff.hcii.cs.cmu.edu.home
When I load org-mode and try to clock-in (using org-clock-in) I get the error byte-code: Symbol's function definition is void: org-defvaralias
I have googled around and found various suggestions (ensure that org-mode is installed in an emacs with no org-related stuff loaded; try load-library org-compat; and so on). The only thing that made a difference is that if I load-library org-compat the error changes to say that org-refresh-properties is void.
I would appreciate any suggestions on how to fix this error. Thanks.
I'm trying to get semantic completions working with emacs 24 and the version of cedet that comes with it. Completions work for classes I defined in my own source file, but completion isn't working for the standard library or STL stuff Here is my emacs config:
(require 'cedet)
(require 'semantic)
(require 'semantic/ia)
(require 'semantic/bovine/gcc)
(semantic-add-system-include "/usr/include/c++/4.6.3" 'c++-mode)
(setq semantic-default-submodes
'(global-semantic-idle-scheduler-mode
global-semanticdb-minor-mode
global-semantic-idle-summary-mode
global-semantic-idle-completions-mode
global-semantic-highlight-func-mode
global-semantic-decoration-mode
global-semantic-mru-bookmark-mode))
(setq semanticdb-default-save-directory "~/.semanticdb/"
semantic-complete-inline-analyzer-idle-displayor-class 'semantic-displayor-ghost)
(semantic-mode t)
In my ~/.semanticdb directory I only see "!usr!include!c++!4.6!x86_64-linux-gnu!bits!semantic.cache", which isn't even using the version I specified in the config.
When I try M-x semantic-analyze-possible-completions on a std::list, for example, I get an error saying: "Cannot find types for std::list"
Any suggestions for how to debug this or how to fix it?
I was installing today a fresh Ubuntu 13.04 on my new SSD,
and here are my steps to configure CEDET ( I checked that it gives completions for std::list).
Basic setup
Get a fresh emacs and build it from source.
It's as easy as
./configure && make && sudo make install
Add to .emacs
(semantic-mode 1)
That's the whole setup.
Testing
Run emacs without loading anything:
emacs -q test.cc
Enter the code
#include <list>
int main() {
std::list lst;
lst.$
return 0;
}
M-x semantic-mode
with point at $, M-x semantic-ia-show-variants
Troubleshooting
If stuff doesn't work, it's likely that the semanticdb is corrupt.
Just find where it is, for me it's semanticdb-default-save-directory="~/.emacs.d/semanticdb",
and remove everything from there.
Then, when visiting a source file, call semantic-force-refresh.
$ecl
;;; Loading "/home/***/quicklisp/setup.lisp"
;;; Loading #P"/usr/local/lib/ecl-12.7.1/cmp.fas"
;;; Loading #P"/usr/local/lib/ecl-12.7.1/asdf.fas"
ASDF could not load sockets because
An error occurred during initialization:
Error while trying to load definition for system sockets from pathname
/usr/local/lib/ecl-12.7.1/sockets.asd:
No applicable method for SOURCE-FILE-TYPE with arguments of types COMPILED-FILE PREBUILT-SYSTEM.
$cat ~/.eclrc
;;; The following lines added by ql:add-to-init-file:
#-quicklisp
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp"
(user-homedir-pathname))))
(when (probe-file quicklisp-init)
(load quicklisp-init)))
Regards!
You do not provide any information about the version of quicklisp or the version of ECL you are using, what makes it hard to answer your question.
I presume you are using ECL 12.7.1, which is too old to work with recent versions of ASDF+quicklisp. Moreover, there was a problem with a recent quicklisp that shipped a version of ASDF that was incomplete: it did not load ASDF-bundle and support loading precompiled libraries.
All these problems have been solved in the CVS/git sources and I will produce a new release any time soon.
Juanjo
I find .emacs, and ~/.emacs.d/init.el.
What those files/directories are for?
What's the startup sequence of emacs? Is there any way that makes emacs not to read ~/.emacs.d?
emacs -q or emacs --no-init-file will cause emacs not to read the ~/.emacs file. It should not try to read the ~/.emacs.d if there is a ~/.emacs file. If there isn't a ~/.emacs file it will read ~/.emacs.d/init.el. See the emacs wiki for more info.
See the elisp manual for info on startup.
Emacs' start-up procedure is explained in detail here. The emacs lisp manual ships with emacs, so you should consult that instead of the linked manual on the web, because the former will exactly match your emacs version. To visit it, in emacs type C-h i m elisp RET m Starting Up RET.
Based on sanityinc's answer, I did some experiments by adding (message "* MESSAGE *") at the end of ~/.emacs.d/init.el, my personal el file (smcho.el), and .emacs.el, and I opened Messages buffer.
This is the result from Aquamacs.
Loading prestart plugin files ...
... done.
Shell: /bin/bash
Loading `emulate-mac-keyboard-mode': old-style backquotes detected!
Loading /Users/smcho/Library/Preferences/Aquamacs Emacs/Recent Files.el (source)...done
Cleaning up the recentf list...done (0 removed)
27 environment variables imported from login shell (/bin/bash).
Loading /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/auctex.el (source)...done
Loading /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-site-file.el (source)...done
Loading plugins ...
Loading /Library/Application Support/Aquamacs Emacs/SLIME/site-start.el (source)...done
Loading /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/site-start.el (source)...done
... done.
***** Hello from .emacs, and I'm with Aquamacs
***** hello from smcho.el
Loading /Users/smcho/Library/Preferences/Aquamacs Emacs/customizations.el (source)...done
Loading /Users/smcho/Library/Preferences/Aquamacs Emacs/Preferences.el (source)...done
Mark set
one-buffer-one-frame-mode disabled.
Loading /Users/smcho/Library/Preferences/Aquamacs Emacs/frame-positions.el (source)...done
It reads from .emacs and smcho.el, but not from ~/.emacs.d/init.el.
This is from Aqua emacs.
Loading /Users/smcho/.emacs.d/package.el (source)...done
***** Hello from .emacs, and I'm with Aqua emacs
***** hello from smcho.el
For information about GNU Emacs and the GNU system, type C-h C-a.
Again it doesn't read from ~/.emacs.d/init.el, but the starting point if ~/.emacs.d/package.el.
if there is a .emacs file ,then emacs won`t load the ~/.emacs.d/init.el file,if you want to use .emacs.d/init.el file ,you should remove ~/.emacs file