hy-mode icon indicating copy to clipboard operation
hy-mode copied to clipboard

No prompt found or ‘comint-prompt-regexp’ not set properly

Open vale981 opened this issue 5 years ago • 11 comments

Hi, When i run run-jedhy, i get the following error message:

hy-shell--redirect-check-prompt-regexp: No prompt found or ‘comint-prompt-regexp’ not set properly

A little digging around showed, that somehow the hy-shell--redirect-output-buffer is not created.

I am on Emacs 26.3.

vale981 avatar Oct 12 '19 09:10 vale981

What version of Hy are you using?

After running it, is *Hy* buffer created/can you see the Hy process in list-processes? Also try manually sending text eg like (hy-shell--redirect-send "(setv x 1)") then running hy.

ekaschalk avatar Oct 12 '19 14:10 ekaschalk

Hi, thanks for replying.

I am using hy 0.17.0.

after running run-jedhy, list-processes shows:

Hy              4444    run     *Hy*            /dev/pts/3   hy --spy
Hy Internal     4408    run     *Hy Internal*   /dev/pts/2   hy
server          --      listen  --              --           (network server on /tmp/emacs1000/server)

(hy-shell--redirect-send "(setv x 1)") results in the same error as the above reported:

hy-shell--redirect-check-prompt-regexp: No prompt found or ‘comint-prompt-regexp’ not set properly

vale981 avatar Oct 13 '19 15:10 vale981

me too. problem...

PlumpMath avatar Nov 10 '19 18:11 PlumpMath

I'm not sure when I will be able to get to this, my job has taken my open source time away.

PRs are welcome.

ekaschalk avatar Nov 13 '19 01:11 ekaschalk

I understand... My studies have taken mine as well. I'll look into it, when I find time.

vale981 avatar Nov 13 '19 19:11 vale981

Is anyone aware if this is actually still happening? From #93 it's not clear if this is still a thing.

ekaschalk avatar Jul 30 '20 01:07 ekaschalk

I have to remove the code line that produces this error to make hy-mode work for me. I believe the comint-prompt-regexp test is useless.

alexeiz avatar Aug 31 '20 18:08 alexeiz

Just want to note I ran into the same issue. I haven't tried implementing #103 or alexeiz's fix, though, so either may be valid solutions.

swapneils avatar May 30 '21 20:05 swapneils

Is there any update for this, for those of us would prefer avoiding manually installing these patch?

Inc0n avatar Jan 10 '22 00:01 Inc0n

with alpha 4 out the door now, i'll see what i can do to get hy-mode back up to date

allison-casey avatar Jan 10 '22 00:01 allison-casey

I just ran into this, and manually applying #103 didn't appear to fix this. I'll try to get a PR up to fix this once I get a bit of time to try and dig in on what's happening.

FWIW, version information

Emacs 29.2

Package hy-mode is dependency.

     Status: Installed in ‘hy-mode-20211016.2011/’ (unsigned).
    Version: 20211016.2011
     Commit: df814865a1faa8414dacdbb35b2a9029995312ec
    Summary: Major mode for Hylang
   Requires: dash-2.18.0, s-1.11.0, emacs-24
    Website: https://github.com/hylang/hy-mode
   Keywords: languages lisp python 
Other versions: 20211016.2011 (melpa), 1.0.4 (melpa-stable).

gehrman avatar Mar 30 '24 02:03 gehrman