fsprojects-archive / zzarchive-generator-fsharp

[ARCHIVED] Yeoman F# generator
Apache License 2.0
62 stars 27 forks source link

Error when using Paket on Ubuntu #16

Closed NatElkins closed 8 years ago

NatElkins commented 9 years ago

I am trying to take this generator for a test run. I'm using Ubuntu 15.04. When I try and run it, I get the following error:

fsharp_generator_error

In case that's hard to read, it says "'Github' download failed. Try fallback download from 'Nuget'.

Error getting response stream (Write: The authentication or decryption has failed.) SendFailure (Nuget)

Error getting response stream (Write: The authentication or decryption has failed.) SendFailure (Github)"

This only seems to occur when I choose the "use Paket" option.

What do you think the issue is? And if you're unsure, where should I look to start investigating?

Thanks!

Krzysztof-Cieslak commented 9 years ago

It looks like a problem of paket.bootstraper.exe not being able to download paket.exe /CC: @forki

Adron commented 9 years ago

I get this all the time too, specific around what @Krzysztof-Cieslak said.

I was pondering adding a change to the project pending I have time to skip this check and just build, but provide a warning that it could fail without paket.bootstrapper.exe. But I see no reason that if it doesn't already have paket.exe and such (or it is installed on the system already) that it can't skip the download step and just run the build.

Thoughts on that @Krzysztof-Cieslak @forki others? ...maybe that's already lined up for development and I missed it?

NatElkins commented 8 years ago

You're right, the issue was with paket.bootstrapper.exe. I filed an issue with Paket, which you can see here.

NatElkins commented 8 years ago

I believe I've fixed the issue. I've put in a pull request with Paket here. Hopefully it will be accepted soon.

NatElkins commented 8 years ago

I tried to get around it by changing paket.bootstrapper.exe to accept all certificates as valid, which thankfully was denied as a terrible idea. Turns out all I needed to do was run mozroots --import --sync to download the trusted root certificates from the Mozilla LXR web site into the Mono certificate store (which doesn't trust any websites by default).

I didn't know to run that command and hadn't run it before because trying to set up generator-fsharp/Ionide was my first foray into Mono. Is there a specific place this bit of knowledge could go (i.e. a FAQ or troubleshooting section in the README, or elsewhere)?