-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paket install
fails due to JSON parsing error
#1699
Comments
This is because github API returns broken JSON containing non-unicode text (SHIFT_JIS encoding). (Such as https://api.github.com/repos/vain0/hsp_green/commits/master) |
@vain0 I assume paket doesn't handle json parsing itself but depends on 3rd part library (I believe Newtonsoft.Json), maybe you should inquire there or check with github what can be done with the json itself? |
I see. Thank you for your suggestion. |
I think I still want to understand what's going wrong here. |
Paket install on a dependencies file containing
worked for me. Can you create a zip that reproduces? |
Okay, here you are. I've just now confirmed that (I added a small note to the first comment.) |
Thank you. It's mysterious. Only my environment...? |
Hmm... Let's wait for someone else try the repro. |
Maybe there is a firewall blocking it?
|
I've tried to |
I asked my twitter account's followers to do repro steps and one could: https://twitter.com/htid46/status/735076020584251394 (written in Japanese) According to them, because Windows's standard char code is shift_jis (? I don't understand yet.) |
Can you please tweet same thing in English? Will retweet |
Tweeted: https://twitter.com/ue_dai/status/735080574314905601 and https://twitter.com/ue_dai/status/735081112205025280 . They also wrote a note: https://gist.github.com/hafuu/1e6cf81c0d08636ee86b5d0de3c55bb4 And they solved this issue immediately. I'll open a PR instead of them. |
I forgot to say I built the PR version Paket and confirmed it succeeded to |
great work. thanks |
https://twitter.com/harrisj/status/734857735393714176
|
Description
Please see repro steps.
Repro steps
Locate
paket.exe
(from Paket latest release). Then run these commands:(Note at 2016/May/24 07:55 JST: I use an alias that "paket=.paket\paket.exe". So please read them as
.paket\paket.exe init
and.paket\paket.exe install
.)And I got this error:
Known workarounds
github vain0/hsp_green
also invoked a similar error. Then I putpaket.dependencies
next to "src/all.hsp" (a file in the repository) and rewrite mypaket.dependencies
like this.Then paket first fetches "src/all.hsp", and then it fetches all files in the repository due to the transitive dependency written in that
paket.dependencies
.Other cases
github/zeo_five_hsp
(contains no files related to Paket)github/speed_fs
(contains paket.dependencies in the root)github vain0/git_edit
(which contains no files related to paket), ``github vain0/rss_reader_fs` (which contains paket.dependencies), etcRelated information
The text was updated successfully, but these errors were encountered: