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
Running global-flycheck-mode
errors if no "Tools" menu on startup
#2032
Comments
global-flycheck-mode
errors if no "Tools" menu-barglobal-flycheck-mode
errors if no "Tools" menu on startup
For reference, there were a couple other packages that use
https://github.com/bbatsov/projectile/blob/master/projectile.el#L5926C14-L5926C14 |
I looked at this issue today, but solving it is a bit trickier than I thought. The main issue is that the menu is added at load-time, which means any config option will have effect only before Flycheck is loaded, which is usually quick confusing for the users. See https://github.com/flycheck/flycheck/blob/master/flycheck.el#L1233 I'm thinking the best solution might be to just suppress errors there, or check for the existence of the parent menu if I manage to find a function that does this. |
There's a function named |
Bug description
When I start Doom Emacs I receive the following error on startup
Starting with
--debug-init
shows the following stacktraceMy personal Doom
config.el
removes the "Tools" menu-bar like soIf I remove that line from my configuration the startup error goes away but I would prefer removing that menu bar item. I'm still a pretty new Emacs user so I might not be aware of a better way to disable that menu bar. I suspect there's at least a problem with flycheck assuming that menu bar should exist because if I
M-x global-flycheck-mode
after startup it doesn't error but it also adds the "Tools" menu bar back with the "Syntax Checking" menu.Maybe at a minimum their should be a configuration to disable Flycheck from adding to the "Tools" menu?
The text was updated successfully, but these errors were encountered: