microsoft / microsoft/winget-studio

Only some emoji work

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C#
Stars
67
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Brief description of your issue
Image
Opening configuration set failed.

Exception: 
WinGetStudio.Services.DesiredStateConfiguration.Exceptions.OpenConfigurationSetException: Exception of type 'WinGetStudio.Services.DesiredStateConfiguration.Exceptions.OpenConfigurationSetException' was thrown.
   at WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations.OpenConfigurationSetAsync(IDSCFile file, ConfigurationProcessor processor)
   at WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations.OpenConfigurationSetAsync(IDSCFile file)
   at WinGetStudio.ViewModels.ConfigurationFlow.PreviewFileViewModel.ImportDSCSetFromPathAsync(String path)
   at WinGetStudio.ViewModels.ConfigurationFlow.PreviewFileViewModel.OnBrowseAsync()

[FAIL] C:\__w\1\s\external\pkg\src\AppInstallerSharedLib\YamlWrapper.cpp(77)\Microsoft.Management.Configuration.dll!00007FFCA8BC1F83: (caller: 00007FFCA8BC267F) Exception(6) tid(8ab8) 8A150027 

[CONF] Invalid YAML: [YAML:Policy] unsupported control character [line 6; col 11] at [line 6, col 11]
[CONF] ConfigurationSetParser error: 8a15c002 for [YAML:Policy] unsupported control character [line 6; col 11] with value `` at [line 6, col b]
Image
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
metadata:
  winget:
    processor: dscv3
resources:
  - name: "\U00000000Test"
    type: WinGetPackage
    metadata:
      module: Microsoft.WinGet.DSC
      description: "\U00000000Test"
      allowPrerelease: True
    properties:
      Ensure: Present
      id: Microsoft.VisualStudioCode
      source: winget
Steps to reproduce

Create a .winget configuration file for DSCv2
In an IDE or text editor like VSCode, set the description for a resource to 😊😂🤣❤️ and save it
In WinGet studio, go to Manage a configuration file and load the configuration
Observe the emoji load correctly
Turn on edit mode
Click "Save configuration file"
Re-open the configuration file in the IDE
Observe the description has changed to \U0001F60A\U0001F602\U0001F923❤️

Expected behavior

Above

Actual behavior

Above

Environment

0.0.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files or tests. Reproduce the DSCv2 configuration save flow with the emoji description, then trace the configuration-file save path from the WinGet Studio desktop app. Done means reopening the saved file preserves the original emoji characters instead of converting them to escape sequences.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.