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
loading sweep trashes emacs hashtable management #1
Comments
After updating sweep to 0.27.4 the problem persists. |
Hi @drtutut, thank you for the detailed report. I cannot reproduce this issue just yet, but I have a suspicion that it relates to some locale settings. |
Hi @eshelyaron ,
And when I launch emacs with |
Great, thank you for confirming. |
Thank you for your prompt answer. |
The Emacs Elisp reader only works with locales that have "." as their decimal separator, but Prolog initialization sets up the locale according to the environment variables. Therefore we need to reset the locale after initializing Prolog in case the environment prescribes a locale with a different decimal separator, such as fr_FR. See also #1
Thanks to these clues I was able to reproduce this issue, and hopefully fix it in commit f57584a. I'll release a version 0.27.5 with this fix soon, but you're welcome to test the development version and see if it works for you. |
Thanks for the work. I hope to have time tomorrow to test it. |
I just updated to 0.27.5 and everything works fine. Thank you. |
This issue has been mentioned on SWI-Prolog. There might be relevant details there: https://swi-prolog.discourse.group/t/ann-swi-prolog-9-3-4/7399/1 |
This issue has been mentioned on SWI-Prolog. There might be relevant details there: https://swi-prolog.discourse.group/t/ann-swi-prolog-9-2-4-stable/7407/1 |
description
When starting emacs and loading a prolog file, the following appears in the
*Messages*
buffer:The prolog file is loaded and correctly displayed, but some emacs functions are definitively trashed. And it is possible to gets things worse, e.g. :
*Messages*
buffer.How to reproduce ?
Emacs version 27.1, debian build
sweeprolog : 0.27.3
swi-prolog: 9.1.21
minimal configuration:
start emacs:
(replace the path to the swipl.so with the correct one on your system).
.emacs-sweep-mini
is the minimal emacs configuration described above, and test.pl is just a "hello world" program in prolog.You should see the spurious
(error Invalid hash table rehash size 1.0)
messages in the*Messages*
buffer.The text was updated successfully, but these errors were encountered: