-
Notifications
You must be signed in to change notification settings - Fork 157
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
add osx to travis (on master branch) #308
Conversation
fail on
|
I can reproduce this failure on my local Mono install. I'm running mono 4.4.2 stable, installed from Homebrew. |
really thx for help @baronfel |
The dll built by @baronfel on osx |
so |
src/FsCheck/Gen.fs
Outdated
@@ -181,7 +181,7 @@ module Gen = | |||
| :? array<_> as arr -> | |||
elementsArr arr | |||
| _ -> | |||
choose (0, (Seq.length xs)-1) |> map (flip Seq.nth xs) | |||
choose (0, (Seq.length xs)-1) |> map (flip Seq.item xs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you've noticed, this fails because master is still on an older version of FSharp.Core. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#ifdef
all the things! or not? i dont like warnings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw i added this change because @baronfel tried to compile ootb with xamarin studio but failed (warning as error?), and the real compiler error of this issue was after these two warnings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That means you're compiling against a later version of FSharp.Core. FsCheck on master is compiled against 4.3.1.0 - this was not obsoleted in that version. So there is no reason for the ifdef. FsCheck project indeed has warnings as errors turned on.
That must be an F# compiler bug I think that somehow manifests only when you build on OSX. There is no reason why the |
Probably dotnet/fsharp#1319 and a different version of f# compiler |
Thanks @enricosada - I've added some comments to the RFC. I don't particularly agree with this new behavior of the compiler...and I can't seem to turn if off either. So kind of stuck on this. |
RFC or not, i think next questions are:
/cc @dsyme |
Not that I'd claim to be an expert at all, but I thought MacOS was based on Unix (i.e. not Linux, so also not Ubuntu)... |
@ploeh sry, bad phrase. Using the same mono version number (4.2.2) in osx and ubuntu, why the fsc has that new RFC feature? or is a bug with osx only? |
The correct fix here, imo, is to use the same version (or as close as possible) of the compiler on linux/osx as the one we're using on Windows. Note that according to the RFC, even |
@kurtschelfthout @ploeh we are getting this error on travis with mono version 4.0.5 (one year old), before the referenced pr (so maybe is not related but i think it is).
that's strange.. we need a minimal repro of the issue and open a new issue in fsharp/fsharp repo |
@enricosada I mean version of fsc. Is that controllable? |
Yes, agree that's weird. |
i dont know an easy way, i dont have my mac near atm, and there is not sha commit in version. Ok but for sure that's the last time, i am gonna add |
@enricosada can you enable write access on this branch? see https://github.com/blog/2247-improving-collaboration-with-forks GitHub seems to claim I don't have write access... |
Allow edits from maintainers. Was already checked, dunno you get error in push? |
sorry, my mistake, git trouble :) worked now. I tried a few workarounds, we'll see... |
@kurtschelfthout remove some from build Matrix in travis. |
This is so weird. The only build on linux that works, which claims to use F# 4.0 compiler and FSharp.Core 4.3.1.0 nonetheless gives a deprecation warning for Seq.nth. But for sure the FSharp.Core 4.3.1.0 on windows does not have that deprecation warning. On OSX I have no idea what it's doing but it never works. And old mono on linux seems to kill the mono runtime when running paket. What a mess! |
I give up on this :) |
with mono
latest
, let's check if osx workswith new edits from maintainers feature of github, i think you @kurtschelfthout can push commit to this branch