Giter VIP home page Giter VIP logo

nixos-vsliveshare's People

Contributors

msteen avatar phryneas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nixos-vsliveshare's Issues

Faster ELF finder

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

Did this break recently?

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:

  • Update nixos-vsliveshare
  • Rerun fix-vsliveshare
  • Reinstall the Livehsare plugin

One of these things sure did the trick before, but doesn't now.
Now when I press the "Share" or "Join" buttons, nothing happens.

Home-manager: not yet working.

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'.

Seeing errors running `ifx-vsliveshare`

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'.

Installing the Live Share extensions breaks the script

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.

Is this expected to work macOS with darwin-nix?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.