GithubHelp home page GithubHelp logo

Comments (6)

rachelblasucci avatar rachelblasucci commented on August 18, 2024

Ah, good call on removing my path. I'd be meaning to do that. Thanks!

For the second, yes, this one was super tricky to resolve for me.
If neither updating MonoTouch to the latest version, nor using the FSharp.Core that comes in the latest version of Mono work, you might have to compile F#. Or, you can use a slightly different syntax in place of query:

    ctx.``[main].[tasks]``
        |> Seq.filter (fun t -> t.complete = 0L)
        |> Seq.map (fun t -> {Description=t.task; Complete=false})
        |> Seq.toList

Let me know how it goes!

from tasky.

ajonno avatar ajonno commented on August 18, 2024

hi Rachel, uhf I still can’t seem to get it running w/ this particular type provider.

I’m running:
Macbook Pro 2.3 GHz Intel Core i7 ; 16Gb ram
Xam Studio 5.1 Build 479
mtouch 7.2.5.5 (87026b6)

(just for reference, the “Shallow” sample F# project works fine for me)

also tried switching from mono runtime 3.4 to 3.6.

I also inserted the code snippet below like so, in Data.fs but still got the same compile error.

let GetIncompleteTasks () =
ctx.[main].[tasks]
|> Seq.filter (fun t -> t.complete = 0L)
|> Seq.map (fun t -> {Description=t.task; Complete=false})
|> Seq.toList

From build log:
Building: Tasky (Debug | iPhoneSimulator)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/3.4.0/bin/fsharpc --noframework --nologo
-r:"/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/2.0/mscorlib.dll"
-r:"/Developer/MonoTouch/usr/lib/mono/2.1/FSharp.Core.dll"
-r:"/Developer/MonoTouch/usr/lib/mono/2.1/Mono.Data.Sqlite.dll"
-r:"/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll"
-r:"/Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll"
-r:"/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll"
-r:"/Developer/MonoTouch/usr/lib/mono/2.1/System.dll"
Build complete -- 1 error, 0 warnings

---------------------- Done ----------------------

Build: 1 error, 0 warnings

Is this sort of (type provider) problem typical w/ F# projects ? I’m absolute loving the language and have spent some solid time educating myself on it so far, however issues like this make me a bit ‘nervous’. For example is the tooling and API set for Xamarin projects not stable & ready for prod use ?

cheers
Angus

On 7 Jul 2014, at 1:26 pm, Rachel Reese [email protected] wrote:

Ah, good call on removing my path. I'd be meaning to do that. Thanks!

For the second, yes, this one was super tricky to resolve for me.
If neither updating MonoTouch to the latest version, nor using the FSharp.Core that comes in the latest version of Mono work, you might have to compile F#. Or, you can use a slightly different syntax in place of query:

ctx.``[main].[tasks]``
    |> Seq.filter (fun t -> t.complete = 0L)
    |> Seq.map (fun t -> {Description=t.task; Complete=false})
    |> Seq.toList

Let me know how it goes!


Reply to this email directly or view it on GitHub.

from tasky.

7sharp9 avatar 7sharp9 commented on August 18, 2024

@rachelreese @ajonno I think this is caused from using an older version of FSharp.Core that was packaged in monotouch.

@rachelreese It may be worth comparing your version of monotouch with @ajonno 's

I have this working on my machine and Im using:

Xamarin.iOS
Version: 7.2.6.7 (Business Edition)
Hash: c19d551
Branch: 
Build date: 2014-06-26 18:49:51-0400

Shallow is working because it doesn't use Type Providers. Type providers require the type FSharp.Core.CompilerServices.TypeProviderAssemblyAttributeand Microsoft.FSharp.Linq.QueryBuilder which are not present in the older version of FSharp.core that was included with monotouch.

It may be worth moving to the Xamarin beta or alpha channels to get the newer version of monotouch, which I think will rectify this.

from tasky.

ajonno avatar ajonno commented on August 18, 2024

i upgraded Xamarin Studio to alpha release and the Tasky app now compiles and runs ok. thanks for your help w/ this.

just to note - i also tried to run Tasky after changing preferences in Xam Studio to point to iOS 8 —> /Applications/Xcode6-Beta3.app . Tasky crashed with this log error :

2014-07-10 23:36:32.925 Tasky[14699:874415] *** Assertion failure in -[UIApplication applicationWillOrderInContext:forWindow:], /SourceCache/UIKit_Sim/UIKit-3262.1/UIApplication.m:10117

from tasky.

7sharp9 avatar 7sharp9 commented on August 18, 2024

Does the C# version also do that?

from tasky.

ajonno avatar ajonno commented on August 18, 2024

i just downloaded/tested the C# version ; it builds ok, but the iOS simulator didn't launch. seeing this error:

warning MT1201: Could not load the simulator: dlopen(/Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTiPhoneSimulatorRemoteClient.framework/Versions/A/DVTiPhoneSimulatorRemoteClient, 1): image not found

from tasky.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.