Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple warnings from helm-core.el and helm-lib.el when starting emacs #2628

Closed
1 task done
hhyyrylainen opened this issue Nov 14, 2023 · 7 comments
Closed
1 task done
Labels

Comments

@hhyyrylainen
Copy link

What happened?

When I start emacs I get a bunch of warnings from helm like this:

Warning (comp): helm-lib.el:315:17: Warning: reference to free variable ‘package--initialized’ Disable showing Disable logging
Warning (comp): helm-lib.el:310:17: Warning: reference to free variable ‘package-archive-contents’ Disable showing Disable logging
Warning (comp): helm-lib.el:316:34: Warning: reference to free variable ‘package-alist’ Disable showing Disable logging
Warning (comp): helm-lib.el:1165:46: Warning: the function ‘pos-eol’ is not known to be defined. Disable showing Disable logging
Warning (comp): helm-lib.el:1114:24: Warning: the function ‘pos-bol’ is not known to be defined. Disable showing Disable logging
Warning (comp): helm-lib.el:401:20: Warning: the function ‘kmacro--to-vector’ is not known to be defined. Disable showing Disable logging
Warning (comp): helm-lib.el:369:42: Warning: the function ‘package-desc-reqs’ is not known to be defined. Disable showing Disable logging
Warning (comp): helm-lib.el:362:12: Warning: the function ‘package--compile’ is not known to be defined. Disable showing Disable logging
Warning (comp): helm-lib.el:360:26: Warning: the function ‘package-desc-dir’ is not known to be defined. Disable showing Disable logging
Warning (comp): helm-lib.el:353:30: Warning: the function ‘package-desc-p’ is not known to be defined. Disable showing Disable logging
Warning (comp): helm-lib.el:343:14: Warning: the function ‘package-delete’ is not known to be defined. Disable showing Disable logging
Warning (comp): helm-lib.el:331:26: Warning: the function ‘package-desc-version’ is not known to be defined. Disable showing Disable logging
Warning (comp): helm-utils.el:601:39: Warning: reference to free variable ‘helm-mode-find-file-target-alist’ Disable showing Disable logging
Warning (comp): helm-core.el:7237:47: Warning: ‘special-display-buffer-names’ is an obsolete variable (as of 24.3); use ‘display-buffer-alist’ instead. Disable showing Disable logging
Warning (comp): helm-core.el:7237:23: Warning: ‘special-display-regexps’ is an obsolete variable (as of 24.3); use ‘display-buffer-alist’ instead. Disable showing Disable logging
Warning (comp): helm-core.el:7236:23: Warning: ‘display-buffer-function’ is an obsolete variable (as of 24.3); use ‘display-buffer-alist’ instead. Disable showing Disable logging

How to reproduce?

I presume it is enough to install helm packages with M-x list-packages and maybe have something in your .emacs file to bytecompile all the installed packages.

Helm Version

Melpa or NonGnuElpa

Emacs Version

Emacs-28.3

OS

GNU/Linux

Relevant backtrace (if possible)

I tried using the minimal configuration script but it doesn't work at all, it fails with:

$ .emacs.d/elpa/helm-20231108.1729/emacs-helm.sh
Loading /usr/share/emacs/site-lisp/site-start.d/autoconf-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/clang-format.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/clang-include-fixer.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/clang-rename.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/cmake-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/mercurial-site-start.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/systemtap-init.el (source)...
find: ‘.emacs.d/elpa/helm-20231108.1729’: Tiedostoa tai hakemistoa ei ole

(emacs:91422): Gtk-CRITICAL **: 08:52:29.380: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed

(emacs:91422): Gtk-CRITICAL **: 08:52:29.398: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed

(emacs:91422): Gtk-CRITICAL **: 08:52:29.413: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed

Minimal configuration

  • I agree using a minimal configuration
@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Nov 14, 2023 via email

@hhyyrylainen
Copy link
Author

Don'y know why your Emacs is loading these files.

I think these are all files from system packages. The first few are from autoconf-2.71-5.fc38.noarch and clang-tools-extra-16.0.6-3.fc38.x86_64.

You can use LC_ALL=C to avoid messages in your locale language,

Here's that:

$ LC_ALL=C .emacs.d/elpa/helm-20231108.1729/emacs-helm.shLoading /usr/share/emacs/site-lisp/site-start.d/autoconf-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/clang-format.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/clang-include-fixer.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/clang-rename.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/cmake-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/mercurial-site-start.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/systemtap-init.el (source)...
find: '.emacs.d/elpa/helm-20231108.1729': No such file or directory

It was just a non-existent path error which is pretty strange as that does exist:

$ ls '.emacs.d/elpa/helm-20231108.1729'
emacs-helm.sh      helm-external.elc         helm-misc.el
helm-adaptive.el   helm-fd.el                helm-misc.elc
helm-adaptive.elc  helm-fd.elc               helm-mode.el
helm-autoloads.el  helm-files.el             helm-mode.elc
helm-bookmark.el   helm-files.elc            helm-net.el
helm-bookmark.elc  helm-find.el              helm-net.elc
helm-buffers.el    helm-find.elc             helm-occur.el
helm-buffers.elc   helm-font.el              helm-occur.elc
helm-color.el      helm-font.elc             helm-packages.el
helm-color.elc     helm-for-files.el         helm-packages.elc
helm-command.el    helm-for-files.elc        helm-pkg.el
helm-command.elc   helm-global-bindings.el   helm-regexp.el
helm-dabbrev.el    helm-global-bindings.elc  helm-regexp.elc
helm-dabbrev.elc   helm-grep.el              helm-ring.el
helm-easymenu.el   helm-grep.elc             helm-ring.elc
helm-easymenu.elc  helm-help.el              helm-semantic.el
helm.el            helm-help.elc             helm-semantic.elc
helm.elc           helm-id-utils.el          helm-sys.el
helm-elisp.el      helm-id-utils.elc         helm-sys.elc
helm-elisp.elc     helm-imenu.el             helm-tags.el
helm-epa.el        helm-imenu.elc            helm-tags.elc
helm-epa.elc       helm-info.el              helm-types.el
helm-eshell.el     helm-info.elc             helm-types.elc
helm-eshell.elc    helm-locate.el            helm-utils.el
helm-eval.el       helm-locate.elc           helm-utils.elc
helm-eval.elc      helm-man.el               helm-x-files.el
helm-external.el   helm-man.elc              helm-x-files.elc

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Nov 14, 2023 via email

@hhyyrylainen
Copy link
Author

Okay calling the script from the folder it is in with ./emacs-helm.sh does work. The terminal output no doesn't have any errors but in messages there's:

Unable to activate package ‘helm’.
Required package ‘wfnames-1.1’ is unavailable

I guess this also (almost) confirms that byte compiling helm is what triggers the warnings.

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Nov 14, 2023 via email

@hhyyrylainen
Copy link
Author

With that change I don't notice anymore errors happening when using emacs-helm.sh.

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Nov 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants