php-extras icon indicating copy to clipboard operation
php-extras copied to clipboard

Warning about php-extracs-generate-eldoc is noisy

Open apapsch opened this issue 6 years ago • 12 comments

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)

apapsch avatar Sep 04 '18 12:09 apapsch

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?

jmshelby avatar Sep 07 '18 19:09 jmshelby

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.

arnested avatar Sep 07 '18 19:09 arnested

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.

jmshelby avatar Sep 09 '18 21:09 jmshelby

I have been looking for a mirror as well, with no success... I have asked on Twitter: https://twitter.com/arnejoergensen/status/1039041361348112384

arnested avatar Sep 10 '18 06:09 arnested

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.

apapsch avatar Sep 10 '18 09:09 apapsch

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

chrissound avatar Sep 10 '18 11:09 chrissound

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.

apapsch avatar Sep 10 '18 11:09 apapsch

Thanks @apapsch that's working good for me right now

jmshelby avatar Sep 10 '18 20:09 jmshelby

doc.php.net is up and running again.

But we should probably address this somehow anyway.

arnested avatar Sep 20 '18 07:09 arnested

doc.php.net is up and running again.

But we should probably address this somehow anyway.

... and the host is down again :-(

finex avatar Jan 04 '19 10:01 finex

There you go, a somewhat fresh hash file from November 2018. php-extras-eldoc-functions-2018-11-14.el.gz

apapsch avatar Jan 07 '19 09:01 apapsch

There you go, a somewhat fresh hash file from November 2018. php-extras-eldoc-functions-2018-11-14.el.gz

Thank you :-)

finex avatar Jan 07 '19 10:01 finex