Yesterday, I tried slime on my emacs.
After installation and configuration, it works good.
But after some play, today I start it and it throws following error.
I googled but nothing helpful found.
Could anyone give some clue?
OS: centos7
emacs: 24.3
lisp: clisp
slime-mode, slime, slime-company have been installed.
(progn (load "/home/angelo/.emacs.d/elpa/slime-20150402.908/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "/tmp/slime.4512"))
i i i i i i i ooooo o ooooooo ooooo ooooo
I I I I I I I 8 8 8 8 8 o 8 8
I \ `+' / I 8 8 8 8 8 8
\ `-+-' / 8 8 8 ooooo 8oooo
`-__|__-' 8 8 8 8 8
| 8 o 8 8 o 8 8
------+------ ooooo 8oooooo ooo8ooo ooooo 8
Welcome to GNU CLISP 2.49 (2010-07-07) <http://clisp.cons.org/>
Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2010
Type :h and hit Enter for context help.
[1]>
;; Loading file /home/angelo/.emacs.d/elpa/slime-20150402.908/swank-loader.lisp ...
;; Loaded file /home/angelo/.emacs.d/elpa/slime-20150402.908/swank-loader.lisp
;; Loading file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/backend.fas ...
;; Loaded file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/backend.fas
;; Loading file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/xref.fas ...
;; Loaded file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/xref.fas
;; Loading file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/metering.fas ...
;; Loaded file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/metering.fas
;; Loading file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/clisp.fas ...
WARNING: DEFUN/DEFMACRO: redefining function BREAK in
/home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/clisp.fas,
was defined in /home/angelo/tools/clisp-2.49/src/condition.fas
WARNING: Replacing method #<STANDARD-METHOD (#<BUILT-IN-CLASS T>)> in
#<STANDARD-GENERIC-FUNCTION EMACS-INSPECT>
;; Loaded file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/clisp.fas
;; Loading file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/gray.fas ...
WARNING: The generic function
#<STANDARD-GENERIC-FUNCTION STREAM-LINE-COLUMN> is being
modified, but has already been called.
WARNING: The generic function
#<STANDARD-GENERIC-FUNCTION STREAM-FORCE-OUTPUT> is being
modified, but has already been called.
WARNING: The generic function
#<STANDARD-GENERIC-FUNCTION STREAM-LINE-COLUMN> is being
modified, but has already been called.
;; Loaded file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/gray.fas
;; Loading file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/match.fas ...
;; Loaded file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/match.fas
;; Loading file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/rpc.fas ...
;; Loaded file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/rpc.fas
;; Loading file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/swank.fas ...
;; Loaded file /home/angelo/.slime/fasl/2015-04-02/clisp-2.49-unix-pc386/swank.fas
;; Swank started at port: 51389.
CL-USER>
Process inferior-lisp segmentation fault (core dumped)
Following steps can reproduce the issue:
1. Install slime and slime-mode
2. Run M-x slime in emacs
3. run 'lisp' in slime , (run (+ 2 2) works fine)
4. Above error will display
Currently my solution is to re-install slime.
Related
I've installed a fresh Debian 9 Stretch and Emacs GNU Emacs 24.5.1and when i tried to paste a docker-compose.yml from github (raw mode) into a emacs file with or without an extension (yml, conf, etc...) there is no auto indent and this is what I have:
There is my .emacs file
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq c-basic-offset 4)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(tab-stop-list (quote (4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108 112 116 120))))
and this is the link to the file https://raw.githubusercontent.com/plexinc/pms-docker/master/docker-compose-bridge.yml.template
as Drew said on his answer : https://emacs.stackexchange.com/a/5941
Disable electric-indent-mode:
(when (fboundp 'electric-indent-mode) (electric-indent-mode -1)) That
works with any Emacs version. This annoyance or shiny-new-feature,
depending on your point of view, was introduced as the default in
Emacs 24.4.
SYNOPSIS
I'm trying to become competent at using Lisp. Though I'm very comfortable with
the command line and various REPLs for other interpreters (i.e. python,
irb/pry, perl -d), I keep feeling like an absolute newbie when it comes
to Lisp, for some reason.
In the Common Lisp REPL (clisp), when I use the key at the end of a
function name, it seems to be trying to provide me with reference information
about that function. This sounds damn useful.. if it actually worked. Below
is what actually happens when I do this. As far as I can tell, it seems to be
looking up the functions on a URL that doesn't (or no longer) exist/s. Perhaps
the HyperSpec has moved? What's the right way to fix this? What should I do?
ADDENDA
How I'm running Lisp
$ uname -a
Linux bob 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ clisp --version
GNU CLISP 2.49 (2010-07-07) (built on toyol.buildd [127.0.1.1])
Software: GNU C 4.8.2
gcc -falign-functions=4 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -lreadline -lncurses -ldl /usr/lib/libavcall.so /usr/lib/libcallback.so -lsigsegv libgnu_cl.a
SAFETY=0 TYPECODES WIDE_HARD GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
libsigsegv 2.10
libreadline 5.2
libffcall 1.11
Features:
(READLINE REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN
FFI GETTEXT UNICODE BASE-CHAR=CHARACTER WORD-SIZE=64 PC386 UNIX)
C Modules: (clisp i18n syscalls regexp readline)
Installation directory: /usr/lib/clisp-2.49/
User language: ENGLISH
Machine: X86_64 (X86_64) bob [127.0.1.1]
Lisp-related packages currently installed on the system
$ aptitude search lisp | grep '^i'
i clisp - GNU CLISP, a Common Lisp implementation
i clisp-doc - GNU CLISP, a Common Lisp implementation (d
i A common-lisp-controller - Common Lisp source and compiler manager
i dh-lisp - Debhelper to support Common Lisp related p
What I get when I try to look up a function:
$ clisp -q
[1]> (write-line <TAB><TAB>
WRITE-LINE is the symbol WRITE-LINE, lies in #<PACKAGE COMMON-LISP>, is accessible in 11 packages CLOS, COMMON-LISP, COMMON-LISP-USER, EXPORTING,
EXT, FFI, POSIX, READLINE, REGEXP, SCREEN, SYSTEM, names a
;; connecting to "http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Data/Map_Sym.txt"...connected...HTTP/1.1 404 Not Found
;; "Date: Tue, 04 Oct 2016 02:34:52 GMT"
;; "Server: Apache/2.2.16 (Debian)"
;; "Content-Length: 333"
;; "Connection: close"
;; "Content-Type: text/html; charset=iso-8859-1"
;; ""
;; "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">"
;; "<html><head>"
;; "<title>404 Not Found</title>"
;; "</head><body>"
;; "<h1>Not Found</h1>"
;; "<p>The requested URL /projects/iiip/doc/CommonLISP/HyperSpec/Data/Map_Sym.txt was not found on this server.</p>"
;; "<hr>"
;; "<address>Apache/2.2.16 (Debian) Server at www.ai.mit.edu Port 80</address>"
;; "</body></html>"
;; connecting to "http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Data/Symbol-Table.text"...connected...HTTP/1.1 200 OK...45,322 bytes
;; SYSTEM::GET-CLHS-MAP(#<IO INPUT-BUFFERED SOCKET-STREAM CHARACTER www.ai.mit.edu:80>)...978/978 symbols
function.
ANSI-CL Documentation is at
"http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/fun_write-str_m_write-line.html"
;; connecting to "http://clisp.cons.org/impnotes/id-href.map"...connected...HTTP/1.1 302 Found --> "https://clisp.cons.org:80/impnotes/id-href.map"
;; connecting to "http://clisp.cons.orghttps://clisp.cons.org:80/impnotes/id-href.map"...
*** - PARSE-INTEGER: substring "" does not have integer syntax at position 0
The following restarts are available:
ABORT :R1 Abort main loop
Break 1 [2]>
I think this article should help you.
In essence you have to set up your CUSTOM:*BROWSERS* list, so clisp knows how to open the documentation.
In your .clisprc.lisp
(setf CUSTOM:*BROWSERS* '(
(:CHROMIUM "/usr/bin/chromium" "~a")))
(setf CUSTOM:*BROWSER* :CHROMIUM)
(setf CUSTOM:CLHS-ROOT "http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/FrontMatter/")
But you have to have chromium installed on your system. But you get the idea.
I have just started to use OrgMobile. Its really good about planning day. System is work really good about synchronization Computer to Phone(org-mobile-push) (Computer ----> Dropbox ---->Phone ✔). But when I change something from my phone and when I wanted to synchronize it from phone (org-mobile-pull) (Phone --- > Dropbox ---> Computer ☹) it makes problem.
For ex:
My org file OrgCapture.org (which is added with org-agenda-file-to-front)
#+LAST_MOBILE_CHANGE: 2015-05-21 21:55:50
* TODO from computer 1
:PROPERTIES:
:ID: 348a58d3-243a-41ac-aa9a-ae1bdd403e38
:END:
* TODO from computer 2
:PROPERTIES:
:ID: 7eb71e7f-aa19-4c7c-84ad-76641d1aba19
:END:
I can see that file after push from my phone there is no problem
!! When I add some notes from Android Phone and pull from computer
Messages board
0 new, 1 edits, 0 flags, 1 errors
the file that just affected is flagged.org
* Not on a heading F(edit:addheadıng) [[olp:OrgCapture.org][OrgCapture.org]]
** Old value
** New value
TODO Phone
[2015-05-21 Per 21:54]
** End of edit
In conclusion:
There is no any changes in OrgCapture.org (except #+LAST_MOBILE_CHANGE: 2015-05-21 21:55:50)
If I push again from my computer also everything disappear what I change from phone
Some technical information about my system
My Init file
;; mobileOrg
(require 'org-install)
(require 'org-mobile)
;; Set to the location of your Org files on your local system
(setq org-directory "~/org")
;; Set to the name of the file where new notes will be stored
(setq org-mobile-inbox-for-pull "~/org/flagged.org")
;; Set to <your Dropbox root directory>/MobileOrg.
(setq org-mobile-directory "~/Dropbox/MobileOrg")
(setq org-mobile-files org-agenda-files)
Org version
Org-mode version 8.2.10 (8.2.10-40-gc763fa-elpa # /home/nwpwr/.emacs.d/elpa/org-20150518/)
Stable version 8.2.10 (Oct. 2014)
Also I tried to build from tar.gz nothing changed (Edit: 23.05.2015)
Emacs version
GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.9) of 2015-03-21 on kissel, modified by Debian
Dropbox files
➜ nwpwr#ubuntux ~/Dropbox/MobileOrg ls -la
total 48
drwxrwxr-x 2 nwpwr nwpwr 4096 May 21 21:55 .
drwx------ 5 nwpwr nwpwr 4096 May 21 21:15 ..
-rw-rw-r-- 1 nwpwr nwpwr 1413 May 21 21:53 agendas.org
-rw-rw-r-- 1 nwpwr nwpwr 195 May 21 21:53 checksums.dat
-rw-rw-r-- 1 nwpwr nwpwr 278 May 21 21:53 index.org
-rw-rw-r-- 1 nwpwr nwpwr 0 May 21 21:55 mobileorg.org
-rw-rw-r-- 1 nwpwr nwpwr 333 May 21 21:53 OrgCapture.org
~/org files
drwxrwxr-x 2 nwpwr nwpwr 4096 May 21 21:57 .
drwxr-xr-x 60 nwpwr nwpwr 4096 May 21 22:29 ..
-rw-rw-r-- 1 nwpwr nwpwr 158 May 21 21:57 flagged.org
-rw-rw-r-- 1 nwpwr nwpwr 333 May 21 21:53 OrgCapture.org
If you use still MobileOrg
What is your
Init Defination
Org version
Emacs Version
Link the same problem like me but a little bit old compare this time
https://github.com/matburt/mobileorg-android/issues/93
Official Screencast
What I tried to fix
I tried the same configuration like screencast still the same problem on Ubuntu (Edit: 23.05.2015)
I tried the same configuration like screencast on Debian(virtual machine)(without any config file like init.el) (Edit: 26.05.2015)
I tried the same configuration like screencast on Windows 8.1(with md5sum.exe) Emacs 24.5 (Edit: 26.05.2015)
I download Emacs source code(Ubuntu) with git, and I compiled nothing changes (Edit: 26.05.2015)
http://blog.gabrielsaldana.org/mobileorg-for-android-setup-and-workflow/ (So easy config nobody can make mistake but still doesnt work (Edit: 26.05.2015))
During few month, I used it like just a computer to phone sync, yesterday I tried to TODO ---> DONE it's worked(I dont know why) But still it's not usable I am still waiting miracle (Edit 6: 16.11.2015)
Best Regards
do you set you "org-agenda-files" and "org-mobile-files" ?
this is my config
(setq org-agenda-files (list (concat org-directory "agenda.org")
(concat org-directory "todo.org" )
(concat org-directory "note.org")))
(setq org-mobile-files org-agenda-files)
when i add note from mobile phone, i add it to one of them.
then i can see it on my computer.
this is my config, tests ok under cygwin ( emacs-nox , 24.4.1 ), windows 7 ( emacs 24.3.1) , and debian 8 ( emacs 24.4..)
(setq org-default-notes-file (concat org-directory "capture.org" ))
(setq org-agenda-files (list (concat org-directory "agenda.org")
(concat org-directory "todo.org" )
(concat org-directory "note.org")))
;;Dropbox setup Set to the location of your Org files on your local system
;; Set to <your Dropbox root directory>/MobileOrg.
(setq org-mobile-directory "~/Dropbox/mobileorg/" )
(setq org-mobile-encryption-tempfile (concat org-mobile-directory "orgtmpcrypt") )
(unless (file-exists-p org-mobile-encryption-tempfile)
(shell-command (concat "touch "
org-mobile-encryption-tempfile)))
;; the file "encryption-tempfile " is necessarily, i meet problem without it
(setq org-mobile-files org-agenda-files)
(setq org-mobile-inbox-for-pull (concat org-directory "from-mobile.org"))
(unless (file-exists-p org-mobile-inbox-for-pull)
(shell-command (concat "touch " org-mobile-inbox-for-pull)))
orgzly have problem when org-file be changed both on mobile and pc,it can't sync. but mobileorg have the ability to solve it by use "push" or "pull" handle。
this is my "checksums.dat", you check your file to see is it contain your org files, hope it will help you.
859f3d092e8678a3ead0ed48c0e8db30 index.org
68b329da9893e34099c7d8ad5cb9c940 mobileorg.org
aa3abdc374ae3f86dac84655be2aedd575522af6 note.org
066da2393d463d596fcc8736eb0fdbefd5a713c3 todo.org
4719448682b631282ff7e49494662085909969e0 agenda.org
546dfe5326a496b49f3448d152474683 agendas.org
I tried to install Scala accord this Set up for learning Scala with Emacs.
My current OS is Ubuntu 12.04.
I did exactly step by step.
After installation I run Emacs and see next error:
Warning (initialization): An error occurred while loading `/home/nazar_art/.emacs':
File error: Cannot open load file, scala-mode-auto
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
I guessed that it is problem with permission. I change it for scala-mode but without success.
Here is content of ~/.emacs.d:
nazar_art#nazar-desktop:~/.emacs.d$ ls -lg
total 12
drwx------ 2 nazar_art 4096 Oct 10 10:58 auto-save-list
drwxrwxr-x 4 nazar_art 4096 Oct 5 00:12 elpa
drwxrwxrwx 4 nazar_art 4096 Oct 10 10:41 scala-mode
I'm newly at emacs and not sure that can find cause of error follow my intuition.
Any suggestion?
How to solve this trouble?
This worked for me:
Install Scala
sudo apt-get install scala
Get scala-mode
cd ~/git
git clone git://github.com/tuxdna/scala-mode.git
Set up the load-path
(add-to-list 'load-path "~/git/scala-mode")
Require scala-mode-auto
(require 'scala-mode-auto)
Created my first Scala source ~/first.scala. The mode was loaded.
object First {
def main(args: Array[String]) {
println("Test")
}
}
M-x scala-run-scala
Loaded the source with C-c C-l.
Entered First.main(null) in the interpreter. The program ran.
I'm having trouble getting SBCL to start under slime. I've messed things up and I don't know how to recover. This was working fine until I...
Had a problem loading a package via asdf. At which point I started debugging the asdf.lisp provided with SBCL to see what was going wrong. The sole change I made was to put a (break) in which I removed once I'd figured out what was wrong. All was fine until the next time I tried to start SBCL.
Then I got a swank compilation error saying that the asdf.fasl was older than the asdf.lisp file. That made sense to me so I recompiled the asdf.fasl. The output I'm now getting is:
(progn (load "c:\\emacs-23.1\\site-lisp\\slime\\swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "c:\\Users\\GILESR~1\\AppData\\Local\\Temp\\slime.3068" :coding-system "iso-latin-1-unix"))
This is SBCL 1.0.37, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
This is experimental prerelease support for the Windows platform: use
at your own risk. "Your Kitten of Death awaits!"
*
; loading #P"c:\\emacs-23.1\\site-lisp\\slime\\swank-loader.lisp"
; loading #P"c:\\hacking\\emacs\\.slime\\fasl\\2010-07-30\\sbcl-1.0.37-win32-x86\\swank-backend.fasl"
; loading #P"c:\\hacking\\emacs\\.slime\\fasl\\2010-07-30\\sbcl-1.0.37-win32-x86\\swank-source-path-parser.fasl"
; loading #P"c:\\hacking\\emacs\\.slime\\fasl\\2010-07-30\\sbcl-1.0.37-win32-x86\\swank-source-file-cache.fasl"
; compiling file "c:\\emacs-23.1\\site-lisp\\slime\\swank-sbcl.lisp" (written 22 JUL 2010 08:15:02 AM):
; file: c:\emacs-23.1\site-lisp\slime\swank-sbcl.lisp
; in: EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE)
; (REQUIRE 'SWANK-BACKEND::SB-BSD-SOCKETS)
;
; caught ERROR:
; (during compile-time-too processing)
; The function ASDF::MODULE-PROVIDE-ASDF is undefined.
; (REQUIRE 'SWANK-BACKEND::SB-INTROSPECT)
;
; caught ERROR:
; (during compile-time-too processing)
; The function ASDF::MODULE-PROVIDE-ASDF is undefined.
; (REQUIRE 'SWANK-BACKEND::SB-POSIX)
;
; caught ERROR:
; (during compile-time-too processing)
; The function ASDF::MODULE-PROVIDE-ASDF is undefined.
; (REQUIRE 'SWANK-BACKEND::SB-CLTL2)
;
; caught ERROR:
; (during compile-time-too processing)
; The function ASDF::MODULE-PROVIDE-ASDF is undefined.
;
; compilation unit aborted
; caught 1 fatal ERROR condition
; caught 4 ERROR conditions
;
; compilation aborted because of fatal error:
; SB-INT:SIMPLE-READER-PACKAGE-ERROR at 1839 (line 62, column 18) on #<SB-SYS:FD-STREAM
; for "file c:\\emacs-23.1\\site-lisp\\slime\\swank-sbcl.lisp"
; {24564B89}>:
; package "SB-POSIX" not found
; ; compilation aborted after 0:00:00.045
;;
;; Error while compiling c:\emacs-23.1\site-lisp\slime\swank-sbcl.lisp:
;; COMPILE-FILE returned NIL.
;; Aborting.
So it's not finding some stuff it needs in my recompiled asdf. In order to resolve this I've done a complete uninstall and reinstall of SBCL. No joy. I've got nothing in my .sbclrc either.
Update: On viewing the asdf.lisp source code the missing functions are definitely in the file. The thing that's preventing them from compiling is I think the line:
#+(and sbcl sbcl-hooks-require)
My knowledge of lisp is currently not sufficient to compile the asdf file in the environment to trigger the above conditional compilation statement.
I've sorted the problem using the following steps:
Fire up sbcl from Windows start menu.
Run the following code to add the sbcl-hooks-require symbol to the feature list:
(push :sbcl-hooks-require features)
Recompile asdf.lisp. In order to do this I needed to recompile asdf outside of the installed C:\Program files\Steel... directory as the UAC on Windows Vista will stop the fasl being written. For example:
(compile-file "C:\foobar\asdf.lisp")
Copy the generated fasl back to C:\Program files\Steel... to overwrite the original fasl.
Update: The formatting on stackoverflow has knocked out some of the code bits. The code should be as follows:
(push :sbcl-hooks-require *features*)
(compile-file "C:\\foobar\\asdf.lisp")