-
Notifications
You must be signed in to change notification settings - Fork 813
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
Doesn't work in NixOS #821
Comments
How did you configure VSCode? Could you share the relevant portion? |
Can confirm I'm seeing the same issue on NixOS:
This is a Nix specific distribution problem to solve, and I'd take a look at building the extension with https://github.com/nix-community/nix-vscode-extensions to resolve the issue. I havent' tried this yet, but will report back when I have time to. |
I'm using home-manger's VS Code module and this code works for me: (pkgs.vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "continue";
publisher = "Continue";
version = "0.9.61";
sha256 = "f3538fff6a5f2b5c354e1227907e9ad3127d8fecf3940ddf15598f17f144c14e";
arch = "linux-x64";
};
nativeBuildInputs = [
pkgs.autoPatchelfHook
];
buildInputs = [ pkgs.stdenv.cc.cc.lib ];
}) It patches binary ELFs for NixOS. Edit: Edit 2: |
@Raroh73 I should say this does NOT work for me as is. I just get "Error activating the Continue extension" when starting VSCode. Not sure what is going on there, the log file is empty. Do you have any other config to share to make this work? |
@icodeforyou-dot-net |
Thanks @Raroh73 Yeah, I just added your code snippet to to my Did you set any custom models or something in settings.json or something like that? In my case the extension appears in the side bar, but I just get a loading animation when opening it. When clicking on the button "Toggle Full Screen" I get a number of error messages. I made a screenshot of those. Edit: I guess for some reason it cannot open the Also the error when activating extension appears to be this from the VSCode debug console. Obviously having a read-only filesystem is somewhat to be expected on NixOS:
|
@icodeforyou-dot-net Edit: Edit 2: Edit 3: |
Sorry I broke things for you 🥲 From the error message I got there seems to be some I will try 0.8.3 later and see if this fixes things. |
I think it requires write access to extension folder (in nix store) because of this commit. It rewrites keyboard shortcuts in tutorial file basing on running OS. I will need to find a way to bypass first activation somehow. |
Well it does set |
From my research it looks like |
@Raroh73 From looking at other VSCode extentions, I believe one might add a postInstall = ''
cd "$out/$installPrefix"
jq '.contributes.configuration.properties."continue.tutorialShown".default = "true"' package.json | sponge package.json
''; However that did not work for me, so I have no idea how to actually do it. But maybe something along these lines? I should say I tried version |
postInstall = ''
cd "$out/$installPrefix"
substituteInPlace "out/extension.js" \
--replace 'await showTutorial();' '//await showTutorial();'
''; It disables |
Great, that sounds like a somewhat hacky workaround! I will delete all three folders without backing them up later and try it! 🤟 (Nix is supposed to make things have less state. So deleting state every once in a while might be a decent idea.) 😄 |
So I did test it by now and it basically works with newer version @Raroh73 . 🎊 However I managed to break it once more when I reloaded the extension. It got stuck in shoing the loading spinner. I have not been able to reproduce this problem, so I can't say if this is at all related to NixOS. After deleting all VSCode related files once more it went away and the extension now works again. |
My PR was merged and now is available on NixOS Unstable. |
I'd been using VSCode Insiders from AUR before I switched to configuring my VSCode with Nix, so I have a Looks like the best workaround to make INSERT INTO ItemTable VALUES('Continue.continue', '{"continue.tutorialShown":true}'); to the Doing that gets even the latest version of Continue loading and working properly (my config is using gpt4-turbo for chat and local ollama for tab autocomplete). |
Just wanted to say the Intellij Plugin is also not working in NixOS. Should I make a separate issue with the details? |
Providing the NixOS-package Intellij plugin would be nice. For now the following workaround works: In Create
and |
I managed to fix the aforementioned libstdc++ error with
The last working VSCode extension version is Edit: In |
Thanks for mentioning vscode-fhs, I didn't realize that was a thing, I was sitting here thinking how am I going to modify the desktop file to add env LD_LIBRARY_PATH=NIX_LD_LIBRARY_PATH to it. |
Before submitting your bug report
Relevant environment info
Description
VS Code plugin logs:
Activation Event:onStartupFinished
Activation Time:83ms
libstdc++.so.6: cannot open shared object file: No such file or directory
To reproduce
No response
Log output
No response
The text was updated successfully, but these errors were encountered: