unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Invalid function error when loading elisp through native compilation
@ 2024-03-03 10:42 picnoir
  2024-03-03 21:56 ` Michael Heerdegen via Users list for the GNU Emacs text editor
  2024-03-03 21:58 ` tpeplt
  0 siblings, 2 replies; 11+ messages in thread
From: picnoir @ 2024-03-03 10:42 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'm facing a puzzling error that only manifests using native
compilation.

If I evaluate this particular elisp file:
https://github.com/picnoir/my-repo-pins/blob/master/my-repo-pins.el
using eval-buffer (ie. not natively compiled), I can run the following
snippet just fine:

  (my-repo-pins--clone-project "test/test")

However, if I natively compile the same elisp file and load it to Emacs
through emacs-lisp-native-compile-and-load and try to call
my-repo-pins--clone-project the exact same way I was doing above, the
function call errors out with a confusing error message:

  Invalid function: (my-repo-pins--query-github-owner-repo "test" "test"
  (lambda (result) (let ((new-state (if (null result) 'not-found
  result))) (my-repo-pins--update-forges-state "GitHub.com" new-state
  "test/test"))))

I'm not sure how to debug that further. What should I do to find out
what the issue is here? Any idea about what's happening?



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-03-04  3:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-03 10:42 Invalid function error when loading elisp through native compilation picnoir
2024-03-03 21:56 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-03-03 23:27   ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-03-04  0:50     ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-03-04  1:07       ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-03-04  1:56     ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-03-03 21:58 ` tpeplt
2024-03-04  1:22   ` tpeplt
2024-03-04  1:43     ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-03-04  2:01       ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-03-04  3:53         ` [External] : " Drew Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).