question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wrong number conversion in structs (regional format related)

See original GitHub issue

Environment

Microsoft Visual Studio Community 2022 Version 17.1.6 VisualStudio.17.Release/17.1.6+32421.90 Microsoft .NET Framework Version 4.8.04084

Installed Version: Community

Visual C++ 2022 00482-90000-00000-AA052 Microsoft Visual C++ 2022

ASP.NET and Web Tools 2019 17.1.363.30963 ASP.NET and Web Tools 2019

Azure App Service Tools v3.0.0 17.1.363.30963 Azure App Service Tools v3.0.0

C# Tools 4.1.0-5.22165.10+e555772db77ca828b02b4bd547c318387f11d01f C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CodeRush for Roslyn 21.2.9.0 DevExpress CodeRush for Roslyn package.

CodeRush for Roslyn Tool Windows 21.2.9.0 DevExpress CodeRush for Roslyn Tool Windows package.

Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GhostDoc 22.1.22090.0 Generate XML Comments from your code, maintain clean and up-to-date documentation, produce help documentation in multiple formats, use intelligent source code Spell Checker in Visual Studio.

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards 1.0 Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC Package

NuGet Package Manager 6.1.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

PVS-Studio 7.16.55368.3293 PVS-Studio is a tool for bug detection in the source code of programs, written in C, C++, C# and Java. It works in Windows, Linux and macOS environment.

Test Adapter for Boost.Test 1.0 Enables Visual Studio’s testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0 Enables Visual Studio’s testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

TGit 1.0 Control TortoiseGit from within Visual Studio

Visual Basic Tools 4.1.0-5.22165.10+e555772db77ca828b02b4bd547c318387f11d01f Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 17.1.0-beta.21610.4+07b5673e4f2fa7630e78abe37f16b372353a7242 Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Color Theme Designer 1.0 Allows users to create and edit Visual Studio themes. Themes can customize colors used for menus, toolbars, tabs, titlebars, the text editor, and other environment colors.

Visual Studio IntelliCode 2.2 AI-assisted development for Visual Studio.

Visual Studio Spell Check Everywhere VSSpellCheckEverywhere An extension that enables spell checking within any Visual Studio file editor or tool window that uses WPF text boxes. https://GitHub.com/EWSoftware/VSSpellChecker

Visual Studio Spell Checker VSSpellChecker An editor extension that checks the spelling of comments, strings, and plain text as you type or interactively with tool windows. https://GitHub.com/EWSoftware/VSSpellChecker

Visual Studio Tools for CMake 1.0 Visual Studio Tools for CMake

.NET version

6.0

Did this work in a previous version of Visual Studio and/or previous .NET release?

It’s working in old .net framework designer.

Issue description

Can’t edit struct properties (Size, Padding etc.) directly due to wrong values separator. See video from steps to reproduce. This error will appear:

486, 421 is not a valid value for Int32. (Parameter ‘value’)

New designer value separator is comma: net

Old designer value separator is semicolon: netfw

Steps to reproduce

V.S. language is English. Windows language is English. Region and regional format in windows settings - Ru.

https://user-images.githubusercontent.com/17767561/167297112-b7228dc7-6f15-4ff2-b487-e3a995e4561e.mp4

Diagnostics

[15:40:34.4058116] Sending request: TypeConverters/ConvertFrom
[15:40:34.4068120] TypeConverters/ConvertFrom took 00:00:00.0008453.
[15:40:34.4068120] REQUEST FAILURES: TypeConverters/ConvertFrom
                   Microsoft.DotNet.DesignTools.Client.DesignToolsServerException: 486, 421 is not a valid value for Int32. (Parameter 'value') ---> Microsoft.DotNet.DesignTools.Client.DesignToolsServerException: Input string was not in a correct format.
                      --- End of inner exception stack trace ---

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
RussKiecommented, May 9, 2022

I think I may have found the problem, investigating a possible fix.

1reaction
RussKiecommented, May 25, 2022

The fix is expected to be available in 17.3p2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C Structure to String
I need to do what the name of the function suggest, I need to convert the Airport structure passed to a string and...
Read more >
structToJson
A scalar Struct that is tagged as number but cannot be converted to a JSON number. In this case, structToJson falls back to...
Read more >
Conversion functions | BigQuery
Service for distributing traffic across applications and regions. ... Data types · Lexical structure and syntax · Conversion rules · Format elements ...
Read more >
Date Data Type - Visual Basic
To convert a Date literal to the format of your locale, or to a custom format, supply the literal to the Format function,...
Read more >
Functions, operators, and conditionals | BigQuery
Service for distributing traffic across applications and regions. ... Data types · Lexical structure and syntax · Conversion rules · Format elements ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found