Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error "Marker does not point anywhere" #1827

Open
dakling opened this issue Oct 7, 2023 · 0 comments
Open

error "Marker does not point anywhere" #1827

dakling opened this issue Oct 7, 2023 · 0 comments

Comments

@dakling
Copy link

dakling commented Oct 7, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant