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: attribute 'typst-lsp' missing #332

Closed
dch82 opened this issue Apr 14, 2023 · 4 comments
Closed

error: attribute 'typst-lsp' missing #332

dch82 opened this issue Apr 14, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@dch82
Copy link

dch82 commented Apr 14, 2023

Plugin affected: None; General Issue
Nixpkgs channel: 22.11; Just downgraded from unstable
Home-manager version: 22.11

Description

When I do home-manager switch, it prints an error message:

$ home-manager switch
error: attribute 'typst-lsp' missing

       at /nix/store/pkqdh03yhmc3xs66maizqajr56cz1xxy-source/plugins/nvim-lsp/language-servers/default.nix:321:17:

          320|       description = "Enable typst-lsp for typst";
          321|       package = pkgs.typst-lsp;
             |                 ^
          322|     }
(use '--show-trace' to show detailed location information)

It may have to do with downgrade complications (I downgraded from unstable because the GNOME experience is more coherent with stable). pkgs.typst-lsp appears in the unstable repo but not 22.11

Config

{
  enable = true;
  options = {
    mouse = "";
    number = true;
    shiftwidth = 2;
    expandtab = true;
    tabstop=2;
    autoindent = true;
    cursorline = true;
  };
  plugins.startify.enable = true;
  extraPlugins = with pkgs.vimPlugins; [
    vim-nix
    nerdtree
  ];
}

EDIT: It may be a home-manager issue as I disabled nixvim temporarily

@dch82 dch82 added the bug Something isn't working label Apr 14, 2023
@traxys
Copy link
Member

traxys commented Apr 14, 2023

Yeah we do not support anything else than unstable right now, but it should not be taken into account, I don't understand that part too well maybe @GaetanLepage knows ?

@GaetanLepage
Copy link
Member

Indeed, this is caused by you not following nixos-unstable. We would like for you not having to follow unstable.
However, currently, the nixpkgs used by nixvim is the same as the one of home-manager.

@dch82
Copy link
Author

dch82 commented Apr 14, 2023

OK... I went back to unstable, and all problems are solved.

@GaetanLepage
Copy link
Member

You may follow this issue. If we find a better solution, it will be mentioned there.

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

No branches or pull requests

3 participants