nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
6.64k stars 1.75k forks source link

vscode-extensions.dart-code.flutter doesn't work #5293

Open patmuk opened 4 months ago

patmuk commented 4 months ago

Are you following the right branch?

Is there an existing issue for this?

Issue description

The vscode-extensions.dart-code.flutter is not available in VSCode or VSCodium. This is due to the fact that the extension tries to write a json file .vsixmanifest into the install directory (e.g. ~/.vscode-oss/extensions/dart-code.flutter-3.86.0-universal. As a workaround one can set mutableExtensionsDir = true; and install this extension via Market Place in VSCode.

Its content looks rather generic (though the VSCode Engine version is hardcoded). Maybe just adding the file solves the problem (the VS-Engine version might be not processed), or some more logic in the build step could write the correct VS-Engine version into the file.

Here is the file's content:

File: extensions/dart-code.flutter-3.86.0-universal/.vsixmanifest
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ <?xml version="1.0" encoding="utf-8"?>
   2   │     <PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
   3   │         <Metadata>
   4   │             <Identity Language="en-US" Id="flutter" Version="3.86.0" Publisher="Dart-Code" />
   5   │             <DisplayName>Flutter</DisplayName>
   6   │             <Description xml:space="preserve">Flutter support and debugger for Visual Studio Code.</Description>
   7   │             <Tags>flutter,dart,mobile,android,ios</Tags>
   8   │             <Categories>Programming Languages,Snippets,Linters,Formatters,Debuggers</Categories>
   9   │             <GalleryFlags>Public</GalleryFlags>
  10   │             
  11   │             <Properties>
  12   │                 <Property Id="Microsoft.VisualStudio.Code.Engine" Value="^1.75.0" />
  13   │                 <Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="Dart-Code.dart-code" />
  14   │                 <Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
  15   │                 <Property Id="Microsoft.VisualStudio.Code.ExtensionKind" Value="workspace" />
  16   │                 <Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />
  17   │                 
  18   │                 
  19   │                 <Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="https://github.com/Dart-Code/Flutter.git" />
  20   │                 <Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="https://github.com/Dart-Code/Flutter.git" />
  21   │                 <Property Id="Microsoft.VisualStudio.Services.Links.GitHub" Value="https://github.com/Dart-Code/Flutter.git" />
  22   │                 <Property Id="Microsoft.VisualStudio.Services.Links.Support" Value="https://github.com/Dart-Code/Dart-Code/issues" />
  23   │                 <Property Id="Microsoft.VisualStudio.Services.Links.Learn" Value="https://dartcode.org/" />
  24   │                 
  25   │                 
  26   │                 <Property Id="Microsoft.VisualStudio.Services.GitHubFlavoredMarkdown" Value="true" />
  27   │                 <Property Id="Microsoft.VisualStudio.Services.Content.Pricing" Value="Free"/>
  28   │ 
  29   │                 
  30   │                 
  31   │             </Properties>
  32   │             <License>extension/LICENSE.txt</License>
  33   │             <Icon>extension/media/flutter.png</Icon>
  34   │         </Metadata>
  35   │         <Installation>
  36   │             <InstallationTarget Id="Microsoft.VisualStudio.Code"/>
  37   │         </Installation>
  38   │         <Dependencies/>
  39   │         <Assets>
  40   │             <Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
  41   │             <Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" />
  42   │ <Asset Type="Microsoft.VisualStudio.Services.Content.Changelog" Path="extension/CHANGELOG.md" Addressable="true" />
  43   │ <Asset Type="Microsoft.VisualStudio.Services.Content.License" Path="extension/LICENSE.txt" Addressable="true" />
  44   │ <Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/media/flutter.png" Addressable="true" />
  45   │         </Assets>
  46   │     </PackageManifest>

Maintainer CC

No response

System information

- system: `"aarch64-darwin"`
 - host os: `Darwin 23.3.0, macOS 14.3.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
stale[bot] commented 1 month ago

Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.

If you are the original author of the issue

* If this is resolved, please consider closing it so that the maintainers know not to focus on this. * If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

If you are not the original author of the issue

* If you are also experiencing this issue, please add details of your situation to help with the debugging process. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

Memorandum on closing issues

Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.