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

Github Copilot for IntelliJ IDEs #23

Closed
not-matthias opened this issue Jan 17, 2023 · 2 comments
Closed

Github Copilot for IntelliJ IDEs #23

not-matthias opened this issue Jan 17, 2023 · 2 comments

Comments

@not-matthias
Copy link
Owner

not-matthias commented Jan 17, 2023

Updater: https://gitlab.com/genericnerdyusername/jetbrains-updater/

Tracking issue: NixOS/nixpkgs#191341
Implementation:

Another potential fix: NixOS/nixpkgs#201518

@not-matthias
Copy link
Owner Author

Current workaround:

cd ~/.local/share/JetBrains/CLion2022.3/github-copilot-intellij/copilot-agent/bin/
mv copilot-agent-linux copilot-agent-linux.bak
ln -s /nix/store/a5a8gvrbynadh84s7v9l6md6mrl5p4jf-home-manager-path/bin/copilot-agent (pwd)/copilot-agent-linux

@hacker1024
Copy link

hacker1024 commented Jan 22, 2023

Using my derivation, the binary can be replaced with Home Manager. Here's my setup, for example:

{
  xdg.dataFile = let
    ideDataDirectories = with pkgs;
      with jetbrains; {
        "JetBrains/IntelliJIdea" = idea-ultimate;
        "JetBrains/PyCharm" = pycharm-professional;
        "JetBrains/WebStorm" = webstorm;
        "JetBrains/CLion" = clion;
        "Google/AndroidStudioPreview" = androidStudioPackages.dev;
      };
    copilotAgent =
      "${github-copilot-intellij-agent}/bin/copilot-agent";
  in lib.mapAttrs' (name: package:
    lib.nameValuePair "${name}${
      lib.versions.majorMinor (lib.getVersion package)
    }/github-copilot-intellij/copilot-agent/bin/copilot-agent-linux" {
      source = copilotAgent;
      force = true;
    }) ideDataDirectories;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants