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

Check for process before completing in nix-repl #107

Merged
merged 1 commit into from Sep 8, 2020

Conversation

rossabaker
Copy link
Contributor

Fails more gracefully in cases where either:

  1. The nix repl has crashed beneath us
  2. Somehow we're in nix-repl-mode in something other than a nix repl buffer.

@matthewbauer matthewbauer merged commit 91e1a05 into NixOS:master Sep 8, 2020
(nix--prefix-bounds))))
(let* ((proc (get-buffer-process (current-buffer)))
(prefix (and (derived-mode-p 'nix-repl-mode)
proc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory you should probably also check the liveness of the process with process-live-p.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 See #108.

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

Successfully merging this pull request may close these issues.

None yet

3 participants