themes icon indicating copy to clipboard operation
themes copied to clipboard

Bytecode overflow

Open seagle0128 opened this issue 5 years ago • 11 comments

In recent versions, this error is showed while installing.

e.g.

doom-Iosvkem-theme.el:200:6:Error: Bytecode overflow
doom-one-theme.el:155:5:Error: Bytecode overflow

seagle0128 avatar Jul 31 '19 08:07 seagle0128

Yes, Henrik is working on it. It's the compiler unable to manage the doom def theme function. Given this just happens during compile time it's not that big of a problem, but it we're working on it

ema2159 avatar Jul 31 '19 13:07 ema2159

Thank you for updating!

seagle0128 avatar Jul 31 '19 13:07 seagle0128

Just chiming in to say that I bumped into the same problem today while packaging emacs-doom-themes for Guix, which does indeed do byte-compiling. So I'd very much appreciate a fix for this :)

bandali avatar Aug 06 '19 21:08 bandali

After this is fixed, I'd love to see a write-up of what caused it and how it was fixed! :)

alphapapa avatar Aug 23 '19 08:08 alphapapa

Is there another way to install this package? I'm unable to install.

jupart avatar Sep 12 '19 14:09 jupart

@seagle0128 Does increasing gc-cons-threshold and/or max-lisp-eval-depth stave off these errors?

hlissner avatar Oct 12 '19 04:10 hlissner

@hlissner No, it doesn't work for me.

seagle0128 avatar Oct 14 '19 19:10 seagle0128

I've disabled byte-compilation of theme files in 9cd6872. Which resolves this issue. This is a temporary fix while I work on https://github.com/hlissner/emacs-doom-themer; which will eventually replace this package's API for themes (and properly address this).

When I first wrote doom-themes my elisp-fu was weak. Performance and sane code be damned, I did what worked to make it easier for me to write multiple themes off a common base, but with some syntax sugar in the mix. What worked was a gratuitously iterative, accumulative and recursing monstrosity that threw space efficiency out the window to attempt to find Waldo between the cracks of parentheses. It did not find him. Most of that work is done at compile-time to spare users its inefficiencies at runtime/startup. In their stead, the byte-compiler got to suffer it, and suffer it did til it could take no more. They say you can still hear it crying "bytecode overflow" on dreary, windy days.

Anyhow, I'll leave this thread open until that is done. I'll keep you posted.

hlissner avatar Jan 03 '20 11:01 hlissner

@hlissner Looking forward to your progress! Emacs could really use a better way to define themes. Wow us with your Elisp-fu mastery. :)

alphapapa avatar Jan 03 '20 12:01 alphapapa

I'm still getting similar errors on installing via melpa on non-doom-emacs:


In toplevel form:
doom-plain-dark-theme.el:153:5:Error: Bytecode overflow

In toplevel form:
doom-plain-theme.el:153:5:Error: Bytecode overflow

In doom-themes--neotree-no-fringes:
doom-themes-ext-neotree.el:173:23:Warning: reference to free variable
    ‘neo-global--window’

In doom-themes--neotree-setup:
doom-themes-ext-neotree.el:179:53:Warning: assignment to free variable
    ‘hl-line-sticky-flag’

In doom-themes-neotree-insert-dir:
doom-themes-ext-neotree.el:288:19:Warning: reference to free variable
    ‘neo-vc-integration’
doom-themes-ext-neotree.el:311:28:Warning: reference to free variable
    ‘neotree-dir-button-keymap’

In doom-themes-neotree-insert-file:
doom-themes-ext-neotree.el:318:17:Warning: reference to free variable
    ‘neo-vc-integration’
doom-themes-ext-neotree.el:342:28:Warning: reference to free variable
    ‘neotree-file-button-keymap’
doom-themes-ext-neotree.el:355:9:Warning: assignment to free variable
    ‘neo-vc-integration’

In end of data:
doom-themes-ext-neotree.el:374:1:Warning: the following functions are not
    known to be defined: all-the-icons-dir-is-submodule,
    all-the-icons-octicon, all-the-icons-octicon-family,
    all-the-icons-icon-for-file, all-the-icons-fileicon,
    neo-path--file-short-name, neo-vc-for-node,
    neo-buffer--insert-fold-symbol, neo-buffer--node-list-set,
    neo-buffer--newline-and-begin, neo-global--select-window,
    neo-buffer--insert-file-entry, neo-buffer--insert-dir-entry,
    neo-buffer--insert-root-entry

hrehfeld avatar Feb 26 '21 12:02 hrehfeld

:warning: This issue has been automatically marked stale because due to 60 days of inactivity. If this issue is still valid, please reply to it or it will be closed in 7 days.

github-actions[bot] avatar Sep 17 '21 00:09 github-actions[bot]