[Agda] command line type checker vs interactive
Sergei Meshveliani
mechvel at botik.ru
Fri Jan 1 15:32:24 CET 2016
On Thu, 2015-12-31 at 12:38 -0500, Andrés Sicard-Ramírez wrote:
> [..]
> 1. Remove the directory ~/.cabal/share/x86_64-linux-ghc-7.10.2/Agda-2.5
>
> 2. Install Agda using
>
> $ make install-bin
>
> 3. Use a clean .emacs only containing
>
> (load-file (let ((coding-system-for-read 'utf-8))
> (shell-command-to-string "agda-mode locate")))
> [..]
The situation is as follows.
1. emacs is GNU Emacs 23.2.1.
2. The output of "$ type agda" I have reported earlier.
3. make install-bin fails reporting of the needed package of clock-...
4. If I install this Agda from source, and set .emacs as only
(load-file (let ((coding-system-for-read 'utf-8))
(shell-command-to-string "agda-mode locate")))
then C-c C-l type checks a program which does not import any library.
5. Then I customize emacs by adding paths:
Agda2 Program Args
[INS] [DEL] String: "-i"
[INS] [DEL] String: "."
[INS] [DEL] String: "-i"
[INS] [DEL] String: "/home/mechvel/agda/stLib/dec31-2015/src"
The latter path works in command line:
> agda -i . -i $agdaStLib DPrelude.agda
does type-check for
$agdaStLib = /home/mechvel/agda/stLib/dec31-2015/src
But emacs <AnyModule>.agda
C-c C-l
reports "Another command is currently in progress".
After customizing, .emacs contains
-----------------------------------------------------
(load-file (let ((coding-system-for-read 'utf-8))
(shell-command-to-string "agda-mode locate")))
(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.
'(agda2-program-args (quote ("\"-i\"" "\".\"" "\"-i\""
"\"/home/mechvel/agda/stLib/dec31-2015/src\""))))
(custom-set-faces
;; custom-set-faces 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.
)
---------------------------------------------------------
It looks like each customization leads to the error of
"Another command ...".
And I need to set options for the interactive checker.
Please, advise,
------
Sergei
> On 31 December 2015 at 11:49, Sergei Meshveliani <mechvel at botik.ru> wrote:
> > On Thu, 2015-12-31 at 10:38 -0500, Andrés Sicard-Ramírez wrote:
> >> On 31 December 2015 at 09:30, Sergei Meshveliani <mechvel at botik.ru> wrote:
> >> > Year or two ago, similar settings worked.
> >> > But this year, it says only "Another command is currently in progress".
> >>
> >> Which is the output of
> >>
> >> $ type agda
> >>
> >> ?
> >
> > "agda is /home/mechvel/.cabal/bin/agda"
> >
> >
> >> After loading (C-c C-l) the file
> >>
> >> postulate
> >> Foo : Set
> >>
> >>
> >> which is the content in the Emacs buffers *Messages* and *agda2*?
> >>
> >
> > --*Messages* -------------------------------------------
> >
> > ("emacs" "TT.agda")
> > Loading 00debian-vars...done
> > Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
> > Loading debian-ispell...
> > Loading /var/cache/dictionaries-common/emacsen-ispell-default.el
> > (source)...done
> > Loading debian-ispell...done
> > Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el
> > (source)...done
> > Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
> > Loading /etc/emacs/site-start.d/50git-core.el (source)...done
> > Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...
> > Loading cjk-enc...done
> > Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done
> > Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done
> > Loading /etc/emacs/site-start.d/50thailatex.el (source)...done
> > Loading /home/mechvel/.cabal/share/x86_64-linux-ghc-7.10.2/Agda-2.5/emacs-mode/agda2.el (source)...done
> > For information about GNU Emacs and the GNU system, type C-h C-a.
> > Loading quail/latin-ltx...done
> > Starting agda process `agda'.
> > (No changes need to be saved)
> > agda2-abort-if-in-progress: Another command is currently in progress
> > (if a command has been aborted you may want to restart Agda)
> > ----------------------------------------------------------------
> >
> > -- *agda2* -----------------------
> >
> > Process Agda2 exited abnormally with code 1
> > IOTCM "/home/mechvel/doconA/0.04/source/TT.agda" NonInteractive Indirect
> > ( Cmd_load_highlighting_info
> > "/home/mechvel/doconA/0.04/source/TT.agda" )
> > ----------------------------------
> >
> >
> >
> >
> >
> > "La información contenida en este correo electrónico está dirigida únicamente a su destinatario y puede contener información confidencial, material privilegiado o información protegida por derecho de autor. Está prohibida cualquier copia, utilización, indebida retención, modificación, difusión, distribución o reproducción total o parcial. Si usted recibe este mensaje por error, por favor contacte al remitente y elimínelo. La información aquí contenida es responsabilidad exclusiva de su remitente por lo tanto la Universidad EAFIT no se hace responsable de lo que el mensaje contenga."
> >
> > "The information contained in this email is addressed to its recipient only and may contain confidential information, privileged material or information protected by copyright. Its prohibited any copy, use, improper retention, modification, dissemination, distribution or total or partial reproduction. If you receive this message by error, please contact the sender and delete it. The information contained herein is the sole responsibility of the sender therefore Universidad EAFIT is not responsible for what the message contains."
>
>
>
More information about the Agda
mailing list