[Agda] command line type checker vs interactive

Sergei Meshveliani mechvel at botik.ru
Thu Dec 31 20:03:18 CET 2015


On Thu, 2015-12-31 at 12:38 -0500, Andrés Sicard-Ramírez wrote:
> Emacs version?

GNU Emacs 23.2.1


> Which is the output of
> 
>   $ agda-mode --version
> 
> ?

----------------------------------------------------------------
This program, which is part of Agda version 2.5, can be run
in three modes, depending on which option it is invoked with:

setup

  The program tries to add setup code for Agda's Emacs mode to the
  current user's .emacs file. It is assumed that the .emacs file
  uses the character encoding specified by the locale.

locate

  The path to the Emacs mode's main file is printed on standard
  output (using the UTF-8 character encoding and no trailing
  newline).

compile

  The program tries to compile Agda's Emacs mode's source files.

  WARNING: If you reinstall the Agda mode without recompiling the Emacs
  Lisp files, then Emacs may continue using the old, compiled files.
---------------------------------------------------------------------



> 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")))
> 
> 
> Did you get the same error after loading
> 
>   postulate
>     Foo : Set
> 
> ?


I am going to do this and to report, maybe, tomorrow.
Thank you.

------
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