SavchenkoValeriy / emacs-powerthesaurus

Powerthesaurus integration for Emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`Symbol’s function definition is void: reduce`

michaelmhoffman opened this issue · comments

To reproduce:

M-x powerthesaurus-lookup-synonyms-dwim RET awesome RET

leads to the error message

powerthesaurus--compose-completion-candidates: Symbol’s function definition is void: reduce

With debug on error enabled, here is the backtrace:

Debugger entered--Lisp error: (void-function reduce)
  reduce(max (2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1))
  powerthesaurus--compose-completion-candidates((#<powerthesaurus-result powerthesaurus-result-6d3a8be7b0> #<powerthesaurus-result powerthesaurus-result-6d3a8be91c> #<powerthesaurus-result powerthesaurus-result-6d3a8bd268> #<powerthesaurus-result powerthesaurus-result-6d3a8bd3d4> #<powerthesaurus-result powerthesaurus-result-6d3a8bd530> #<powerthesaurus-result powerthesaurus-result-6d3a8be2a8> #<powerthesaurus-result powerthesaurus-result-6d3a8be414> #<powerthesaurus-result powerthesaurus-result-6d3a8be98c> #<powerthesaurus-result powerthesaurus-result-6d3a8beae0> #<powerthesaurus-result powerthesaurus-result-6d3a8bec4c> #<powerthesaurus-result powerthesaurus-result-6d3a8bdda0> #<powerthesaurus-result powerthesaurus-result-6d3a8bdf0c> #<powerthesaurus-result powerthesaurus-result-6d3a8be068> #<powerthesaurus-result powerthesaurus-result-6d3a8bd9d4> #<powerthesaurus-result powerthesaurus-result-6d3a8bdb30> #<powerthesaurus-result powerthesaurus-result-6d3a8bdc9c> #<powerthesaurus-result powerthesaurus-result-6d3a8bd604> #<powerthesaurus-result powerthesaurus-result-6d3a8bd764> #<powerthesaurus-result powerthesaurus-result-6d3a8bd8c0> #<powerthesaurus-result powerthesaurus-result-6d3a8bee40>))
  powerthesaurus--select-candidate((#<powerthesaurus-result powerthesaurus-result-6d3a8be7b0> #<powerthesaurus-result powerthesaurus-result-6d3a8be91c> #<powerthesaurus-result powerthesaurus-result-6d3a8bd268> #<powerthesaurus-result powerthesaurus-result-6d3a8bd3d4> #<powerthesaurus-result powerthesaurus-result-6d3a8bd530> #<powerthesaurus-result powerthesaurus-result-6d3a8be2a8> #<powerthesaurus-result powerthesaurus-result-6d3a8be414> #<powerthesaurus-result powerthesaurus-result-6d3a8be98c> #<powerthesaurus-result powerthesaurus-result-6d3a8beae0> #<powerthesaurus-result powerthesaurus-result-6d3a8bec4c> #<powerthesaurus-result powerthesaurus-result-6d3a8bdda0> #<powerthesaurus-result powerthesaurus-result-6d3a8bdf0c> #<powerthesaurus-result powerthesaurus-result-6d3a8be068> #<powerthesaurus-result powerthesaurus-result-6d3a8bd9d4> #<powerthesaurus-result powerthesaurus-result-6d3a8bdb30> #<powerthesaurus-result powerthesaurus-result-6d3a8bdc9c> #<powerthesaurus-result powerthesaurus-result-6d3a8bd604> #<powerthesaurus-result powerthesaurus-result-6d3a8bd764> #<powerthesaurus-result powerthesaurus-result-6d3a8bd8c0> #<powerthesaurus-result powerthesaurus-result-6d3a8bee40>))
  #f(compiled-function (results) #<bytecode -0x1e27036d7489219c>)((#<powerthesaurus-result powerthesaurus-result-6d3a8be7b0> #<powerthesaurus-result powerthesaurus-result-6d3a8be91c> #<powerthesaurus-result powerthesaurus-result-6d3a8bd268> #<powerthesaurus-result powerthesaurus-result-6d3a8bd3d4> #<powerthesaurus-result powerthesaurus-result-6d3a8bd530> #<powerthesaurus-result powerthesaurus-result-6d3a8be2a8> #<powerthesaurus-result powerthesaurus-result-6d3a8be414> #<powerthesaurus-result powerthesaurus-result-6d3a8be98c> #<powerthesaurus-result powerthesaurus-result-6d3a8beae0> #<powerthesaurus-result powerthesaurus-result-6d3a8bec4c> #<powerthesaurus-result powerthesaurus-result-6d3a8bdda0> #<powerthesaurus-result powerthesaurus-result-6d3a8bdf0c> #<powerthesaurus-result powerthesaurus-result-6d3a8be068> #<powerthesaurus-result powerthesaurus-result-6d3a8bd9d4> #<powerthesaurus-result powerthesaurus-result-6d3a8bdb30> #<powerthesaurus-result powerthesaurus-result-6d3a8bdc9c> #<powerthesaurus-result powerthesaurus-result-6d3a8bd604> #<powerthesaurus-result powerthesaurus-result-6d3a8bd764> #<powerthesaurus-result powerthesaurus-result-6d3a8bd8c0> #<powerthesaurus-result powerthesaurus-result-6d3a8bee40>))
  #f(compiled-function (&rest _) #<bytecode 0xbed45f82eb163a2>)((:peer (:certificates ((:version 3 :serial-number "04:0d:c8:73:d3:e6:2c:d4:4f:2c:7c:2a:fe:07:13:4e:cf..." :issuer "C=US,O=Let's Encrypt,CN=R3" :valid-from "2023-03-11" :valid-to "2023-06-09" :subject "CN=powerthesaurus.org" :public-key-algorithm "RSA" :certificate-security-level "Medium" :signature-algorithm "RSA-SHA256" :public-key-id "sha1:f7:a4:e7:6a:80:a2:82:51:2d:6a:1d:08:07:2b:94:..." :certificate-id "sha1:c1:e8:6b:01:bf:54:56:d0:4a:c7:93:72:13:c4:85:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFPzCCBCegAwIBAgISBA...") (:version 3 :serial-number "00:91:2b:08:4a:cf:0c:18:a7:53:f6:d6:2e:25:a7:5f:5a" :issuer "C=US,O=Internet Security Research Group,CN=ISRG Ro..." :valid-from "2020-09-04" :valid-to "2025-09-15" :subject "C=US,O=Let's Encrypt,CN=R3" :public-key-algorithm "RSA" :certificate-security-level "Medium" :signature-algorithm "RSA-SHA256" :public-key-id "sha1:8a:93:82:f4:c8:04:08:34:5e:5b:c2:f8:d7:55:d3:..." :certificate-id "sha1:a0:53:37:5b:fe:84:e8:b7:48:78:2c:7c:ee:15:82:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFFjCCAv6gAwIBAgIRAJ...") (:version 3 :serial-number "40:01:77:21:37:d4:e9:42:b8:ee:76:aa:3c:64:0a:b7" :issuer "O=Digital Signature Trust Co.,CN=DST Root CA X3" :valid-from "2021-01-20" :valid-to "2024-09-30" :subject "C=US,O=Internet Security Research Group,CN=ISRG Ro..." :public-key-algorithm "RSA" :certificate-security-level "High" :signature-algorithm "RSA-SHA256" :public-key-id "sha1:f8:16:51:3c:fd:1b:44:9f:2e:6b:28:a1:97:22:1f:..." :certificate-id "sha1:93:3c:6d:de:e9:5c:9c:41:a4:0f:9f:50:49:3d:82:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFYDCCBEigAwIBAgIQQA...")) :certificate (:version 3 :serial-number "04:0d:c8:73:d3:e6:2c:d4:4f:2c:7c:2a:fe:07:13:4e:cf..." :issuer "C=US,O=Let's Encrypt,CN=R3" :valid-from "2023-03-11" :valid-to "2023-06-09" :subject "CN=powerthesaurus.org" :public-key-algorithm "RSA" :certificate-security-level "Medium" :signature-algorithm "RSA-SHA256" :public-key-id "sha1:f7:a4:e7:6a:80:a2:82:51:2d:6a:1d:08:07:2b:94:..." :certificate-id "sha1:c1:e8:6b:01:bf:54:56:d0:4a:c7:93:72:13:c4:85:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFPzCCBCegAwIBAgISBA...") :key-exchange "ECDHE-RSA" :protocol "TLS1.2" :cipher "AES-128-GCM" :mac "AEAD" :encrypt-then-mac nil :safe-renegotiation t)))
  apply(#f(compiled-function (&rest _) #<bytecode 0xbed45f82eb163a2>) (:peer (:certificates ((:version 3 :serial-number "04:0d:c8:73:d3:e6:2c:d4:4f:2c:7c:2a:fe:07:13:4e:cf..." :issuer "C=US,O=Let's Encrypt,CN=R3" :valid-from "2023-03-11" :valid-to "2023-06-09" :subject "CN=powerthesaurus.org" :public-key-algorithm "RSA" :certificate-security-level "Medium" :signature-algorithm "RSA-SHA256" :public-key-id "sha1:f7:a4:e7:6a:80:a2:82:51:2d:6a:1d:08:07:2b:94:..." :certificate-id "sha1:c1:e8:6b:01:bf:54:56:d0:4a:c7:93:72:13:c4:85:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFPzCCBCegAwIBAgISBA...") (:version 3 :serial-number "00:91:2b:08:4a:cf:0c:18:a7:53:f6:d6:2e:25:a7:5f:5a" :issuer "C=US,O=Internet Security Research Group,CN=ISRG Ro..." :valid-from "2020-09-04" :valid-to "2025-09-15" :subject "C=US,O=Let's Encrypt,CN=R3" :public-key-algorithm "RSA" :certificate-security-level "Medium" :signature-algorithm "RSA-SHA256" :public-key-id "sha1:8a:93:82:f4:c8:04:08:34:5e:5b:c2:f8:d7:55:d3:..." :certificate-id "sha1:a0:53:37:5b:fe:84:e8:b7:48:78:2c:7c:ee:15:82:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFFjCCAv6gAwIBAgIRAJ...") (:version 3 :serial-number "40:01:77:21:37:d4:e9:42:b8:ee:76:aa:3c:64:0a:b7" :issuer "O=Digital Signature Trust Co.,CN=DST Root CA X3" :valid-from "2021-01-20" :valid-to "2024-09-30" :subject "C=US,O=Internet Security Research Group,CN=ISRG Ro..." :public-key-algorithm "RSA" :certificate-security-level "High" :signature-algorithm "RSA-SHA256" :public-key-id "sha1:f8:16:51:3c:fd:1b:44:9f:2e:6b:28:a1:97:22:1f:..." :certificate-id "sha1:93:3c:6d:de:e9:5c:9c:41:a4:0f:9f:50:49:3d:82:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFYDCCBEigAwIBAgIQQA...")) :certificate (:version 3 :serial-number "04:0d:c8:73:d3:e6:2c:d4:4f:2c:7c:2a:fe:07:13:4e:cf..." :issuer "C=US,O=Let's Encrypt,CN=R3" :valid-from "2023-03-11" :valid-to "2023-06-09" :subject "CN=powerthesaurus.org" :public-key-algorithm "RSA" :certificate-security-level "Medium" :signature-algorithm "RSA-SHA256" :public-key-id "sha1:f7:a4:e7:6a:80:a2:82:51:2d:6a:1d:08:07:2b:94:..." :certificate-id "sha1:c1:e8:6b:01:bf:54:56:d0:4a:c7:93:72:13:c4:85:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFPzCCBCegAwIBAgISBA...") :key-exchange "ECDHE-RSA" :protocol "TLS1.2" :cipher "AES-128-GCM" :mac "AEAD" :encrypt-then-mac nil :safe-renegotiation t)))
  url-http-activate-callback()
  url-http-chunked-encoding-after-change-function(3629 3634 5)
  url-http-generic-filter(#<process api.powerthesaurus.org> "0\15\n\15\n")

GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13

This might be because the package is trying to use the (deprecated) Common Lisp library to define reduce. As a temporary workaround, if you add a (require 'cl) in your config you will be able to successfully call the functions.