Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

improved debugging of modules #389

Open
molleweide opened this issue Sep 8, 2022 · 0 comments
Open

improved debugging of modules #389

molleweide opened this issue Sep 8, 2022 · 0 comments
Labels
scope: enhancement New feature or request

Comments

@molleweide
Copy link
Contributor

molleweide commented Sep 8, 2022

Currently, I have noticed that when a module fails to load it does not inform you of which file that failed, eg. if a util is failing.

example err:

[doom] [DEBUG 11:58:13] init.lua:62: Doom: loading 'doom.core.commands'...
[doom] [DEBUG 11:58:13] init.lua:68: Successfully loaded 'doom.core.commands' module
[doom] [DEBUG 11:58:13] init.lua:62: Doom: loading 'doom.core.modules'...
[doom] [DEBUG 11:58:13] init.lua:68: Successfully loaded 'doom.core.modules' module
[doom] [ERROR 11:58:13] config.lua:92: There was an error loading module 'features.dui'. Traceback:
[doom] loop or previous error loading module 'doom.modules.features.dui'
[doom] stack traceback:
[doom] ^I[C]: at 0x010b205713
[doom] ^I[C]: in function 'xpcall'
[doom] ^I...s/hjalmarjakobsson/.config/nvim/lua/doom/core/config.lua:81: in function 'node'
[doom] ^I...rs/hjalmarjakobsson/.config/nvim/lua/doom/utils/tree.lua:260: in function 'recurse'
[doom] ^I...rs/hjalmarjakobsson/.config/nvim/lua/doom/utils/tree.lua:251: in function 'recurse'
[doom] ^I...rs/hjalmarjakobsson/.config/nvim/lua/doom/utils/tree.lua:441: in function 'traverse_table'
[doom] ^I...s/hjalmarjakobsson/.config/nvim/lua/doom/core/config.lua:65: in function 'load'
[doom] ^I...son/.config/nvim/lua/doom/modules/core/reloader/init.lua:120: in function '_reload_doom'
[doom] ^I...son/.config/nvim/lua/doom/modules/core/reloader/init.lua:156: in function 'reload'
[doom] ^I...son/.config/nvim/lua/doom/modules/core/reloader/init.lua:175: in function <...son/.config/nvim/lua/doom/modules/core/reloader/init.lua:174>

[doom] ^I[string ":lua"]:1: in main chunk
[doom] [INFO  11:58:13] init.lua:158: Reloaded Doom in 0.305 seconds
Press ENTER or type command to continue

@molleweide molleweide added the scope: enhancement New feature or request label Sep 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant