error "Marker does not point anywhere"

Aperta
#1,827 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
emacs-lisp, haskell
Ambito
tooling

Direzione di ricerca

Inizia riproducendo il problema in Emacs 29.1 con haskell-process-load-file, quindi segui le voci dello stack attraverso haskell-interactive-mode-goto-end-point e haskell-interactive-mode-reset-error. Il lavoro è concluso quando dopo un caricamento non riuscito è possibile eseguire un altro caricamento, riavviare il processo e chiudere il buffer senza che si verifichi l’errore “Marker does not point anywhere”.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi,

I just got started with haskell-mode and am facing a weird issue: whenever I run haskell-process-load-file on a file that contains an error, any subsequent runs of this function result in error "Marker does not point anywhere". The full stacktrace reads

Debugger entered--Lisp error: (error "Marker does not point anywhere")
  goto-char(#<marker in no buffer>)
  haskell-interactive-mode-goto-end-point()
  (save-current-buffer (set-buffer (haskell-session-interactive-buffer session)) (haskell-interactive-mode-goto-end-point) (let ((mrk (point-marker))) (haskell-session-set session 'next-error-locus nil) (haskell-session-set session 'next-error-region (cons mrk (copy-marker mrk t)))) (goto-char (point-max)))
  haskell-interactive-mode-reset-error(((name . "project-name") (next-error-region #<marker at 1 in *dnschannel*> . #<marker (moves after insertion) at 1305 in *dnschannel*>) (next-error-locus) (interactive-buffer . #<buffer *dnschannel*>) (current-dir . "/home/dakling/Documents/programming/haskell/...") (target . "") (cabal-checksum . "fd8584f682f8bbf497c7bb4d7fbfb956") (cabal-dir . "/home/dakling/Documents/programming/haskell/...") (process (name . "dnschannel") (current-response-cursor . 0) (current-response . "") (command-queue) (inferior-process . #<process dnschannel>) (is-restarting) (current-command) (suggested-imported) (sent-stdin) (evaluating) (session . #1))))
  haskell-process-load-file()
  my/haskell-load-and-run()
  funcall-interactively(my/haskell-load-and-run)
  command-execute(my/haskell-load-and-run)

Annoyingly, this error also occurs when I try to restart the haskell process or close the corresponding buffer, forcing me to quit emacs altogether.

I found this old issue describing a similar problem, but I am not sure if this is related, because 1) this issue seems to be fixed now and 2) my path does not contain any spaces.

My emacs version is 29.1.

Any ideas what is going on here?

Lingua principale
Emacs Lisp
Stelle
1.4k
Fork
357
Merge medio
7h 50m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di haskell/haskell-mode

Tutte le issue di haskell/haskell-mode

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.