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

comint-simple-send: Wrong type argument: stringp, nil #3

Open
Munksgaard opened this issue Mar 17, 2020 · 6 comments
Open

comint-simple-send: Wrong type argument: stringp, nil #3

Munksgaard opened this issue Mar 17, 2020 · 6 comments

Comments

@Munksgaard
Copy link

I'm getting the error comint-simple-send: Wrong type argument: stringp, nil when trying to C-c C-l a Futhark file. This is with version 0.2 in emacs 25.2.2.

@athas
Copy link
Member

athas commented Mar 17, 2020

Do you have a stack trace?

@Munksgaard
Copy link
Author

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  comint-send-string(#<process futhark> ":load skifte-punkt.fut\n")
  comint-simple-send(#<process futhark> ":load skifte-punkt.fut")
  apply(comint-simple-send (#<process futhark> ":load skifte-punkt.fut"))
  futhark-comint-load-file("skifte-punkt.fut")
  eval((futhark-comint-load-file "skifte-punkt.fut") nil)
  eval-expression((futhark-comint-load-file "skifte-punkt.fut") nil)
  funcall-interactively(eval-expression (futhark-comint-load-file "skifte-punkt.fut") nil)
  call-interactively(eval-expression nil nil)
  command-execute(eval-expression)

@athas
Copy link
Member

athas commented Mar 17, 2020

Version 0.2 doesn't mean much. Are you using the newest version? Have you saved the file? I really don't see what futhark-mode.el could be doing wrong. Is the *futhark* process already running?

Wait, Emacs 25.2.2? Why so old?

@Munksgaard
Copy link
Author

Munksgaard commented Mar 17, 2020

Version 0.2 doesn't mean much. Are you using the newest version? Have you saved the file? I really don't see what futhark-mode.el could be doing wrong. Is the *futhark* process already running?

Apparently I'm running 20200123.931 from melpa, which I'm guessing is the latest version. 0.2 was just from the source file.

I'm thinking that my problems are due to some interaction problems between futhark-mode and interactive-haskell-mode: If I start a new Emacs process, open a .fut file and C-c C-l, there is no error, but if I first open a haskell file in the futhark project, run interactive-haskell-mode and C-c C-z, I get the error above. interactive-haskell-mode seems to create a buffer named *futhark*, same as the one created by futhark-mode. Perhaps that could be the cause of the problem?

Wait, Emacs 25.2.2? Why so old?

Blame your favorite combination of Ubuntu and Science IT.

@athas
Copy link
Member

athas commented Mar 17, 2020

Yes, interactive-haskell-mode is the problem. futhark-mode expects that any *futhark* buffer belongs to it.

@Munksgaard
Copy link
Author

I see that the futhark process and buffer names are hard-coded in futhark-comint.el. Perhaps we should be a bit more clever about this. I see that interactive-haskell-mode smartly creates a new buffer *futhark <0>* when it is run after running futhark-comint-load-file, although it does kill the old futhark process,

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

2 participants