Open JeztC opened 10 months ago
Sorry to get back to you late.
The extension uses an additional CLI binary for some of its functionality (https://github.com/rage/tmc-langs-rust) and we haven't considered NixOS support for it before since it hasn't come up, but we'd like to support it if we can.
I was unable to find a good solution for distributing a precompiled binary for NixOS, though possibly just because I'm not familiar with Nix. Seems like the preferred method is to compile the programs yourself? I haven't come up with a good way to integrate that with the extension, if you're well versed with nix and have some thoughts let me know. Currently, we just identify the the platform the extension is running on and download the appropriate executable from our servers.
For now, I've committed a default.nix
file for the CLI. If you clone the repository (https://github.com/rage/tmc-langs-rust), build it with nix and replace the executable at the path in the error message, it should hopefully work without issues. If something is off with the default.nix
file, an issue or PR is appreciated too.
Starting from the next release of the CLI, we'll also publish a version of the binary that should work on NixOS, but will not work on Java extensions (the binary will be built targeting musl, which doesn't support dynamic linking which the Java support relies on). The next release of the extension after that would then add logic to download the musl build if NixOS is detected.
Describe the bug TMC extension is not working on NixOS, and doesn't let me login or choose courses with the extension.
To Reproduce Steps to reproduce the behavior:
Expected behavior Normally the extension would let the user login to TMC.
Screenshots
Desktop (please complete the following information):
TMC Extension logs