ChocolateyPackages icon indicating copy to clipboard operation
ChocolateyPackages copied to clipboard

Cannot install visualstudio2019buildtools, Unterminated string passed in

Open Artalus opened this issue 5 years ago • 1 comments

visualstudio2019buildtools package files install completed. Performing other installation steps.
Chocolatey had an error formatting string:
 Входная строка имела неверный формат.
ERROR: Exception calling "DeserializeObject" with "1" argument(s): "Unterminated string passed in. (5255262)

followed by a 5MB string in some weird JSON-like notation. At position 5 255 262 I see nothing suspicious:

{{"id":"Microsoft.VisualStudio.Debugger.Remote","version":"16.4.29519.181","type":"Vsix","chip":"x86","payloads":[{{"fileName":"payload.vsix","sha256":"f8d54054bbee5fc3cdbc644e5af2c7e03a050d5330d4ff5e0260a5afec307e96","size":5647353,"url":"https://download.visualstudio.microsoft.com/download/pr/c7d8bceb-64c4-426d-85a2-89bc21b21245/f8d54054bbee5fc3cdbc644e5af2c7e03a050d5330d4ff5e0260a5afec307e96/payload.vsix","signer":{{"$ref":"1"}}]
                                                                      ^

However it seems that the string in question starts with

{{"manifestVersion":"1.1","engineVersion":"2.4.1111.43337","info":{{ ...

but ends without closing brackets:

,"progIds":[{{"id":"VisualStudio.vssd.[InstanceId]","displayName":"Snapshot Debugger Protocol Handler","alwaysShowExtension":true,"path":"[InstallDir]\\Common7\\IDE\\devenv.exe","arguments":"/SnapshotDebugger","defaultIconPosition":-2147483648}}],"dependencies":{{"Microsoft.DiagnosticsHub.Runtime":"[16.0,17.0)","Microsoft.DiagnosticsHub.Runtime.ExternalDependencies":"[16.0,17.0)",""
The install of visualstudio2019buildtools was NOT successful.

Artalus avatar Dec 11 '19 09:12 Artalus

Please 1) provide the exact command you use, 2) run choco with -dv and provide all console output, 3) include any details about your system that may be relevant (OS version, language - it seems it is not English).

jberezanski avatar Mar 20 '20 13:03 jberezanski

Closing due to inactivity.

jberezanski avatar May 03 '23 17:05 jberezanski