-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
[BUG] derivations cause infinite recursion in toLuaObject
#1888
Comments
Wh as t would happen if we didn't have a I agree, the ideal thing would be for derivations to automatically be stringified to their store path, but I think it's also important for this kinda thing to behave consistently throughout nixvim. For this specific option we could have |
We could run mapAttrsRecursive and convert all derivations to strings. Not sure if all plugins use a some wrapper we could unite this under. |
Ah, I haven't studied the stack trace, but this is probably an edge case It's possible the error is happening when we try and print the attrs as a lua string. |
Yes, near the end of the trace it shows |
toLuaObject
typos-lsp
nixos-unstable
none
Description
When adding a derivation inside of plugins.lsp.servers.typos-lsp.settings it is not automatically turned into a store path but an infinite recursion occurs.
The end of the errors is:
Minimal, Reproducible Example (MRE)
Changing the config to :
works as expected and I would expect that this automatically happens.
Full log: https://gist.github.com/SuperSandro2000/ebe7af677a61337404703b3358f0f35a
The text was updated successfully, but these errors were encountered: