php-extras
php-extras copied to clipboard
Warning about php-extracs-generate-eldoc is noisy
When the function has not been executed yet, this package keeps nudging about running it ("Warning (emacs): PHP function descriptions not loaded. Try M-x php-extras-generate-eldoc"). With every cursor move, the same message is added again and again to the Warnings buffer. I close the Warnings buffer, and sure enough, the buffer pops up again and the spamming continues. The question should only be asked once.
Usually, I would just run the function, but these days it's not possible because doc.php.net
is down (see https://bugs.php.net/bug.php?id=76819)
Having the same problem ... also, and maybe this is just an emacs issue, but when I run "php-extras-generate-eldoc" with doc.php.net down ... the entire emacs application just freezes up, I can't even close the thing.
Alternatively, does anybody have any tips or temporary workarounds to acknowledge the warning, or turn it off (like a customization without changing the code) to it doesn't keep popping up?
Ok, I'll try to look into this soon. But feel free to beat me to it with at pull request :-)
Short term: try setq'ing php-extras-php-doc-url to a mirror before missing the library and then run generate.
Longer term: we need to make php-extras-php-doc-url a defcustom instead of a defvar and we need to turn down the warnings.
Thanks for the response @arnested. Either of you know of a good mirror of this file, i've been searching for a while and can't seem to find it anywhere.
I have been looking for a mirror as well, with no success... I have asked on Twitter: https://twitter.com/arnejoergensen/status/1039041361348112384
I've salvaged the hash file from an old installation. Here it is: php-extras-eldoc-functions.el.gz. I haven't looked at the age in the old installation, but it should be no older than a few months.
To work around this issue in spacemacs: https://emacs.stackexchange.com/questions/44530/php-function-descriptions-not-loaded-try-m-x-php-extras-generate-eldoc/44639#44639
Before disabling the whole package I'd try it with the salvaged file. No loss of functionality then. You have to put it in ~/.emacs.d/elpa/php-extras-xxx/php-extras-eldoc-functions.el
. To compile the file, execute byte-compile-file
from within emacs.
Thanks @apapsch that's working good for me right now
doc.php.net is up and running again.
But we should probably address this somehow anyway.
doc.php.net is up and running again.
But we should probably address this somehow anyway.
... and the host is down again :-(
There you go, a somewhat fresh hash file from November 2018. php-extras-eldoc-functions-2018-11-14.el.gz
There you go, a somewhat fresh hash file from November 2018. php-extras-eldoc-functions-2018-11-14.el.gz
Thank you :-)