Open aleloi opened 2 years ago
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.
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, runThe 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.