You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cause is apparent after removing 2> /dev/null in the construction of the predict call in src/plugin/featurs.ml : the command fails with sh: 1: predict: not found.
There are no problems with coqide installed from opam. Maybe this is an issue with proof-general, or it is a configuration issue. In any case, it took me a few hours to figure out that the problem was sh PATH, and I'd like to see it documented somewhere.
The text was updated successfully, but these errors were encountered:
You need 'predict' on the path. This is mentioned in the documentation, but maybe the error message from CoqHammer should clearly state that it's the most probable reason. Perhaps you didn't configure 'opam' properly and its binary directory is not on the path.
lukaszcz
changed the title
'hammer' and 'predict 1' fails in Proof General on clean install though opam
Improve CoqHammer error message when 'predict' not found
Jul 8, 2022
Thanks for the reply! I followed some documentation to put test -r $HOME/.opam/opam-init/init.sh && . $HOME/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true in .bashrc, but that only changes path for bash on not sh.
Steps to reproduce
coq=8.15.2, coq-hammer=1.3.2+8.15
In emacs-28.1 with proof-general 20220707.758, run
The expected result is something like
The actual result is
The cause is apparent after removing
2> /dev/null
in the construction of the predict call in src/plugin/featurs.ml : the command fails withsh: 1: predict: not found
.There are no problems with
coqide
installed fromopam
. Maybe this is an issue withproof-general
, or it is a configuration issue. In any case, it took me a few hours to figure out that the problem wassh
PATH, and I'd like to see it documented somewhere.The text was updated successfully, but these errors were encountered: