error "Marker does not point anywhere"

オープン
#1,827 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
emacs-lisp, haskell
領域
tooling

調査の方向性

まず Emacs 29.1 で haskell-process-load-file を使って失敗を再現し、次に haskell-interactive-mode-goto-end-point と haskell-interactive-mode-reset-error を通じてスタックエントリを追跡します。失敗したロードの後に、別のロード、プロセスの再起動、バッファの終了を行っても「Marker does not point anywhere」エラーが発生しなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
Emacs Lisp
スター
1.4k
フォーク
357
平均マージ
7時間 50分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

haskell/haskell-mode のほかの issue

haskell/haskell-mode の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。