Skip to content
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

"Exited with code 1" is a bad restore error message #2970

Closed
haf opened this issue Jan 10, 2018 · 4 comments
Closed

"Exited with code 1" is a bad restore error message #2970

haf opened this issue Jan 10, 2018 · 4 comments

Comments

@haf
Copy link
Member

haf commented Jan 10, 2018

Trying to use .Net Core with Http.fs now.

Input:

<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <AssemblyName>HttpFs</AssemblyName>
    <PackageId>HttpFs</PackageId>
    <Version>5.0</Version>
    <TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="..\paket-files\haf\YoLo\YoLo.fs">
      <Paket>True</Paket>
      <Link>paket-files/YoLo.fs</Link>
    </Compile>
    <Compile Include="..\paket-files\logary\logary\src\Logary.Facade\Facade.fs">
      <Paket>True</Paket>
      <Link>paket-files/Facade.fs</Link>
    </Compile>
    <Compile Include="AssemblyInfo.fs" />
    <Compile Include="HttpFs.fs" />
    <PackageReference Include="FSharp.Core" Version="4.1.18" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetFramework)'!='net461'">
    <PackageReference Include="System.Diagnostics.FileVersionInfo" Version="4.3.0" />
  </ItemGroup>
  <Import Project="..\.paket\Paket.Restore.targets" />
</Project>

Output

Finished Target: Clean
Starting Target: AssemblyInfo (==> Clean)
Created AssemblyInfo file "HttpFs/AssemblyInfo.fs".
Finished Target: AssemblyInfo
Starting Target: PaketFiles (==> AssemblyInfo)
Finished Target: PaketFiles
Starting Target: ProjectVersion (==> PaketFiles)
Finished Target: ProjectVersion
Starting Target: BuildTest (==> ProjectVersion)
dotnet "build" "HttpFs.UnitTests/HttpFs.UnitTests.fsproj" --configuration Release --framework netcoreapp2.0
Microsoft (R) Build Engine version 15.5.179.9764 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  f156589e866cf26dc74ebae4deb2682472e2dc51
  f156589e866cf26dc74ebae4deb2682472e2dc51
  Paket version 5.129.1
  Performance:
   - Runtime: 2 seconds
  Paket failed with
  -> Extracting platforms from path 'netcoreapp2.0;net461' failed
/Users/h/dev/logibit/Http.fs/.paket/Paket.Restore.targets(108,5): error MSB3073: The command "/Library/Frameworks/Mono.framework/Commands/mono --runtime=v4.0.30319 "/Users/h/dev/logibit/Http.fs/.paket/paket.exe" restore --project "/Users/h/dev/logibit/Http.fs/HttpFs.UnitTests/HttpFs.UnitTests.fsproj"" exited with code 1. [/Users/h/dev/logibit/Http.fs/HttpFs.UnitTests/HttpFs.UnitTests.fsproj]

Compiles if I remove paket restore. I'm following @AnthonyLloyd's work here haf/expecto@fa2ead7

@haf haf changed the title paket install adds in paket.targets, that breaks .net core restore "Exited with code 1" is a bad restore error message Jan 10, 2018
@haf
Copy link
Member Author

haf commented Jan 10, 2018

Reason: <TargetFramework> vs <TargetFrameworks>?

@haf
Copy link
Member Author

haf commented Jan 10, 2018

It's the above problem, with the -s which caused the unexpected output. If you have already considered making this error message better, but decided against, please close this issue.

@forki forki closed this as completed in e561d0b Jan 10, 2018
@reinux
Copy link

reinux commented Nov 23, 2020

I think this should be reopened. I've spent an entire hour so far trying to figure out what 1 means.

@forki
Copy link
Member

forki commented Nov 23, 2020

Can you please open a new issue with details? Ideally with a repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants