Scoop: Invalid JSON primitive during scoop search

Created on 27 Nov 2020  路  4Comments  路  Source: lukesampson/scoop

I found today whenever I tried to search for a package on Scoop the following error would be produced.

convertfrom-json : Invalid JSON primitive: .
At C:\Users\VictorSong\scoop\apps\scoop\current\lib\manifest.ps1:10 char:45
+     Get-Content $path -raw -Encoding UTF8 | convertfrom-json -ea stop
+                                             ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [ConvertFrom-Json], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ConvertFromJsonCommand

Is there any way I can diagnose this issue?

Most helpful comment

Hi Luke. First poster here, so bear with me. I had the same issue and found that the file 'C:\Users\\scoop\buckets\extras\bucket\deepgit.json' had an extra comma at the end of line 26. Opening the file in VSCode showed it as improperly coded JSON. Not sure if that's the same issue people are having. I only started noticing it yesterday.

See https://github.com/lukesampson/scoop-extras/blob/master/bucket/deepgit.json

BTW, thanks for all the work on Scoop!

All 4 comments

Same here

Hi Luke. First poster here, so bear with me. I had the same issue and found that the file 'C:\Users\\scoop\buckets\extras\bucket\deepgit.json' had an extra comma at the end of line 26. Opening the file in VSCode showed it as improperly coded JSON. Not sure if that's the same issue people are having. I only started noticing it yesterday.

See https://github.com/lukesampson/scoop-extras/blob/master/bucket/deepgit.json

BTW, thanks for all the work on Scoop!

This is the same as #5201 / #5202. If you retry, it should be OK now.

@pcrama , Thank you. Confirmed the fix made by the deepgit team is working. The error is no longer showing when doing scoop operations.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

klauern picture klauern  路  3Comments

eBaeza picture eBaeza  路  3Comments

roysubs picture roysubs  路  3Comments

quantuumsnot picture quantuumsnot  路  3Comments

brunovieira97 picture brunovieira97  路  3Comments