microsoft / theme-converter-for-vs

CLI tool that allows you to convert your VS Code color theme to a VS 2022 color theme.
MIT License
502 stars 53 forks source link

Convertion of a JSON theme file failed, with a "file cannot be found" error. #27

Closed BeardedBear closed 3 years ago

BeardedBear commented 3 years ago

Describe the bug Convertion of a JSON theme file failed, with a "file cannot be found" error.

Screenshots image (Same error with PowerShell on Windows Terminal, or Developer PowerShell for VS 2022 Preview launched in administrator, or directly system PowerShell launched in administrator)

To Reproduce Steps to reproduce the behavior:

  1. Extract JSON theme file with the suggested method (in my case, Bearded Theme Monokai Metallian)
  2. Follow the steps on project's README

Environment (please complete the following information):

Additional context The file : image

The VS install folder : image

I tried to :

If i use a folder instead of directly JSON file :

image So i created myself a folder ImportedThemes in bin\Debug\netcoreapp3.1 and it say :

image

I move my theme.json file in the new ImportedThemes folder and :

image

(I guess the last part of the screenshots is not relevant, it looks more like a desperate trick, but hopefully it can be useful, we never know)

huguesv commented 3 years ago

Thanks for the feedback!

This is due to a missing component (VsixColorCompiler) which is included as part of the "Visual Studio extension development" workload that can be selected in the VS installer.

We'll update the readme to include that information.

Note that you will likely encounter issue https://github.com/microsoft/theme-converter-for-vs/issues/28 once you've installed that missing component, please see my workaround to get past that.

BeardedBear commented 3 years ago

Great, it works ! Theme converted ! Thanks :)