msteen / nixos-vsliveshare Goto Github PK
View Code? Open in Web Editor NEWLive Share support in Visual Studio Code for NixOS
License: MIT License
Live Share support in Visual Studio Code for NixOS
License: MIT License
Just wanted to share this, a way to use patchelf to find unpatched binaries; it runs twice as fast as running file
on the same items:
find ~/.vscode/extensions/ ~/.config/Code -type f -perm -100 -execdir patchelf --print-interpreter {} \; -print 2>/dev/null | awk '{t=$0;getline;if(t!~/^\/nix\//)print}' | while read f; do ...; done
it works by asking patchelf to print the interpreter, and if it succeeds, filter out the ones that are in /nix
Thank you for this script, it's been of great help up until this point. :)
I'm running into an issue and maybe you know more.
My VSCode Liveshare stopped working a few days ago. I made sure to:
fix-vsliveshare
One of these things sure did the trick before, but doesn't now.
Now when I press the "Share" or "Join" buttons, nothing happens.
To get it to install, I had to change in
home.nix
:
Service = {
- ExecStart = script;
+ ExecStart = "${script}";
};
Then it installs, but it won't run for me - I'm not really sure what's happening there:
% fix-vsliveshare
warning: ignoring the user-specified setting 'allow-unsafe-native-code-during-evaluation', because it is a restricted setting and you are not a trusted user
error: anonymous function at /nix/store/ly6najr545milxsnnnzazriyybv4msc0-vsliveshare/default.nix:2:1 called without required argument 'dotnet-sdk_3', at /nix/store/154m4w6grys1kca27gyr3fh8mjpd01jc-nixos-19.09.2079.8731aaaf8b3/nixos/lib/customisation.nix:69:12
Failed to build VS Code Live Share version '1.0.1711'.
why did you write that without writing what it is
unpacking channels...
error: The option environment' defined in
/nix/store/2yk9zvghs9fmci7bngnkjay2bhzx30g6-source/modules/vsliveshare.nix' does not exist.
(use '--show-trace' to show detailed location information)
It worked great last week when I tried, but today I got errors and tried updating, and I'm getting this:
❯ fix-vsliveshare
these derivations will be built:
/nix/store/dwdpl5aiawqagiwpjlvwjpsibcgxjifw-vscode-extension-ms-vsliveshare-vsliveshare-1.0.1742.drv
building '/nix/store/dwdpl5aiawqagiwpjlvwjpsibcgxjifw-vscode-extension-ms-vsliveshare-vsliveshare-1.0.1742.drv'...
unpacking sources
unpacking source archive /nix/store/x88q3iwhzr5qkfjwdi8ihjhh3avbma8c-ms-vsliveshare-vsliveshare.zip
source root is extension
setting SOURCE_DATE_EPOCH to timestamp 1583432708 of file extension/README.md
patching sources
configuring
building
glibPreInstallPhase
installing
bash: line 2: cd: /nix/store/d46i1p7l8sbqkq2m0ll5g3x2jxr1k30j-vscode-extension-ms-vsliveshare-vsliveshare-1.0.1742/share/vscode/extensions/ms-vsliveshare.vsliveshare: No such file or directory
/nix/store/nfs9wf6ipffr9g9ylzb4i9c1i607nxvq-binutils-2.31.1/bin/ld: cannot open output file dotnet_modules/noop-syslog.so: No such file or directory
collect2: error: ld returned 1 exit status
cp: cannot stat 'dotnet_modules/exes/linux-x64/*': No such file or directory
rm: cannot remove 'dotnet_modules/exes': No such file or directory
rm: cannot remove 'dotnet_modules/runtimes/!(linux-x64)': No such file or directory
glibPreFixupPhase
post-installation fixup
patching script interpreter paths in /nix/store/d46i1p7l8sbqkq2m0ll5g3x2jxr1k30j-vscode-extension-ms-vsliveshare-vsliveshare-1.0.1742
checking for references to /build/ in /nix/store/d46i1p7l8sbqkq2m0ll5g3x2jxr1k30j-vscode-extension-ms-vsliveshare-vsliveshare-1.0.1742...
mv: cannot stat '/nix/store/d46i1p7l8sbqkq2m0ll5g3x2jxr1k30j-vscode-extension-ms-vsliveshare-vsliveshare-1.0.1742/share/vscode/extensions/ms-vsliveshare.vsliveshare/dotnet_modules/vsls-agent': No such file or directory
builder for '/nix/store/dwdpl5aiawqagiwpjlvwjpsibcgxjifw-vscode-extension-ms-vsliveshare-vsliveshare-1.0.1742.drv' failed with exit code 1
error: build of '/nix/store/dwdpl5aiawqagiwpjlvwjpsibcgxjifw-vscode-extension-ms-vsliveshare-vsliveshare-1.0.1742.drv' failed
Failed to build VS Code Live Share version '1.0.1742'.
Since the script is using ms-vsliveshare.vsliveshare-*
it matches various Live Share extensions such as audio and pack. See:
$ find ~/.vscode/extensions -name 'ms-vsliveshare.vsliveshare-*'
/home/user/.vscode/extensions/ms-vsliveshare.vsliveshare-audio-0.1.80
/home/user/.vscode/extensions/ms-vsliveshare.vsliveshare-pack-0.3.4
/home/user/.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.1783
If you have this directory structure the fix-vsliveshare
won't work, since it will match one of the other extensions.
$ fix-vsliveshare
Invalid version 'pack-0.3.4'.
If I remove those other extensions, it will work again.
Hi @msteen, have you seen this error with your own setup? Any advice, please?
I've had a go at getting it running but with no real success. The most meaningful error is: The option
services.gnome3' does not exist`. This makes me thing it is not intended for macOS.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.