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

error: stack overflow (possible infinite recursion) #135

Closed
seghers opened this issue Jan 21, 2023 · 6 comments · Fixed by #137
Closed

error: stack overflow (possible infinite recursion) #135

seghers opened this issue Jan 21, 2023 · 6 comments · Fixed by #137
Labels
bug Something isn't working

Comments

@seghers
Copy link

seghers commented Jan 21, 2023

After upgrading the nixvim flake I get the following error during nixos-rebuild build

"locked": {
        "lastModified": 1674327176,
        "narHash": "sha256-q+HpspHrO5XZnMShBJdLHjHVsCoaWN/Tis7OzRwaF3w=",
        "lastModified": 1674160777,
        "narHash": "sha256-ozE4FVz+UB+5pTiNjhYanS/y52lwXhv8mWzAugbIHak=",
        "owner": "pta2002",
        "repo": "nixvim",
        "rev": "23327700e2a16a3434920d26cb61d90b48478fe7",
        "rev": "d2f714c40ec9bcb20f91a8124f33c81f0576bb68",
        "type": "github"
      },

The second one works, the first gives the error.

error: stack overflow (possible infinite recursion)

@seghers seghers added the bug Something isn't working label Jan 21, 2023
@pta2002
Copy link
Collaborator

pta2002 commented Jan 22, 2023

Can you run the rebuild with --show-trace and paste the output? Thanks

@seghers
Copy link
Author

seghers commented Jan 22, 2023

nixos-rebuild build --flake .#mydevice --show-trace

building the system configuration...
evaluating derivation 'git+file:///pathToConfig#nixosConfigurations."mydevice".config.system.build.toplevel'error: stack overflow (possible infinite recursion)t

@Alexnortung
Copy link
Contributor

What is in your config?

@seghers
Copy link
Author

seghers commented Jan 22, 2023

programs.nixvim.plugins.lsp.servers = {
        # rust-analyzer.enable = true;
}

commenting out rust-analyzer seems to fix it.

@Alexnortung
Copy link
Contributor

Alright, I am not really sure what is going on, maybe @traxys has an idea :)

@traxys
Copy link
Member

traxys commented Jan 22, 2023

Found the problem, published a fix in #137. It seems that my lazyness came and bit me, I needed to exclude some options from the LSP settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants