cmderdev / cmder

Lovely console emulator package for Windows
https://cmder.app
MIT License
25.81k stars 2.02k forks source link

[Bug] Input string was not in a correct format. #2797

Closed bachig26 closed 1 year ago

bachig26 commented 1 year ago

Version Information

Cmder version: 1.3.21
Operating system: Windows 10

Cmder Edition

Cmder Full (with Git)

Description of the issue

Cannot convert value "1671444289,09065" to type "System.Int32". Error: "Input string was not in a
correct format."
At D:\cmder\vendor\profile.ps1:228 char:46
+ ... sed Time: $(get-Date) `($($CMDER_INIT_END - $CMDER_INIT_START) total` ...
+                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvalidCastFromStringToInteger

I don't why this error is occurring but it wasn't during my latest upgrades. and this error shows for the PowerShell only.

How to reproduce

After upgrading to the latest version 1.3.21 from 1.3.20

Additional context

No response

Checklist

MartiUK commented 1 year ago

Ah, yeah. I guess you're from a country that uses , for decimal places. I'll have a fix for you soon.

MartiUK commented 1 year ago

For now, you can delete that line from the profile.ps1 file, as it's only used for debugging.