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
vscode-exts/ms-dotnettools-csharp: Init at 1.23.2 #100181
vscode-exts/ms-dotnettools-csharp: Init at 1.23.2 #100181
Conversation
637bfe7
to
f343ec2
Compare
This latest version add a patch that fixes debugging a specific test. At this point, this extension as been quite extensively tested on projects of significant size. It works impressively well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please fix the merge conflict? Then I can merge it.
pkgs/misc/vscode-extensions/ms-dotnettools-csharp/update-bin-srcs-lib.sh
Outdated
Show resolved
Hide resolved
pkgs/misc/vscode-extensions/ms-dotnettools-csharp/update-bin-srcs-lib.sh
Outdated
Show resolved
Hide resolved
f343ec2
to
66eb1ad
Compare
@SuperSandro2000: Thanks for the review. Re-based on top of latest which fixes the conflict, applied the suggested changes and re-tested. Everything still works fine. |
Result of 1 package built:
|
@SuperSandro2000: Is anything wrong with |
Nope but I am not sure if this is all packaged correctly and it is a very big diff so I decided to not merge it. |
Will it eventually get merged or really there'll be no way of using the c# ext in vscode on nixos? |
@rdk31: Would like for this to go forward. However, I wasn't told what was missing / wrong. |
@ofborg eval |
@SuperSandro2000: Didn't you misstype eval? |
Yeah, fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are other places where inherit like this can be used but just a suggestion.
The important part is to fix the eval error.
pkgs/misc/vscode-extensions/ms-dotnettools-csharp/update-bin-srcs-lib.sh
Show resolved
Hide resolved
IMO we need some utility functions to automate some of this across a few packages. Inside the vsix there is a package.json with a runtimeDependencies key with platform specific runtime dependencies. That is how VSCode finds and downloads runtime dependencies, in this case, OmniSharp, .NET Debugger, and Razor. An idiomatic solution would be something that lets us do the following:
...and buildVscodeMarketplaceExtension just does the magic of mapping the dependencies in package.json to the supplied runtimeDependencies, |
8ffc053
to
35f8b19
Compare
Including PR fixes as suggested by: - Sandro <sandro.jaeckel@gmail.com>
35f8b19
to
3752605
Compare
@SuperSandro2000: Fixes as requested. @jbalme: Seems like good idea worth working upon to improve the vscode extension framework for nix. IMO: it seems indeed related to this issue but out of scope. It might be worth opening a separate Issue / PR with a reference to this issue (and other) as examples of what would be improved. This would allow not to delay this issue and continue working on improving the whole set of extensions. |
This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 1 package built:
The following issues got detected with the above build packages.
vscode-extensions.ms-dotnettools.csharp:
warning: build-tools-in-build-inputs Near pkgs/misc/vscode-extensions/vscode-utils.nix:25:5:
See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md |
@SuperSandro2000: The above |
Separate PR please. |
Motivation for this change
Missing vscode extension. Not possible to install simply using
vscode-utils.extensionsFromVscodeMarketplace
as this depends on dowloaded binaries that needs to be patched.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Tested in isolation using the following expressions: