Coder Social home page Coder Social logo

Comments (7)

knocte avatar knocte commented on August 11, 2024

Look carefully in the references list: it's not finding FSharp.Core, which may be related to the issue.

from zarchive-fsharpbinding.

7sharp9 avatar 7sharp9 commented on August 11, 2024

Dont worry about that, its always shown like that due to an issue with the pkgconfig, thats issue #30

from zarchive-fsharpbinding.

7sharp9 avatar 7sharp9 commented on August 11, 2024

To be honest I dont think this is an issue with the binding anymore, Ill leave it here until I get to the bottom of the issue though...

from zarchive-fsharpbinding.

 avatar commented on August 11, 2024

A while back someone helped us make a couple of type providers "cross platform" on Mono/MonoDevelop.

Here are the notes:

First, a type provider on Mono can expose some small differences in Mono and .NET, especially in the System.Type implementation. The ProvidedTypes API can normally be adjusted to account for these.

To help isolate the problem, try the following:

  • Start with a simple file that uses the type provider and compile it using "fsc.exe" on Windows. This should succeed.
  • Now compile the file on windows using the open source "fsc.exe" (this will run using .NET). This should succeed (if not, there is a bug in the open source compiler)
  • Now compile the file on windows using the open source "mono fsc.exe" (this will run using Mono). . If this fails, then there are differences in Mono v. .NET exposed by the type provider. The type provider can probably be adjusted.
  • If that succeeded, then try the same command-line compilation on, say, OSX. If this fails then the type provider may not be cross-platform, e.g. may rely on Windows-only functionality. Diagnostics from the type provider may need improving.
  • If that succeeded, then check if the type provider works from MonoDevelop. If not then the problem is with the MonoDevelop binding (but that is very unlikely because it doesn't know anything specific about type providers)

In any case, switching to command-line compilations will help localize the problem.

from zarchive-fsharpbinding.

7sharp9 avatar 7sharp9 commented on August 11, 2024

Thanks @dsyme

One of the main problems is debugging the issues. I found the main issue was the errors reported didn't reflect the problem. It looked like the problem was with with the compiler not being passed the types, but the real issue was with path differences between osx and windows. Whats Ill do is transfer this issue to the fsharpx repo.

One thing I have noticed is that intellisense seems to be extremely limited around the nested functions in the type providers, Ill see if I can localise this too and raise an issue in the binding.

from zarchive-fsharpbinding.

7sharp9 avatar 7sharp9 commented on August 11, 2024

@dsyme Maybe we should extend the advice above and include it in the new documentation we are planning (we being fsharp.org)

from zarchive-fsharpbinding.

 avatar commented on August 11, 2024

Good point. I've copied them into some working notes for a x-plat development guide and will send you a copy of the collected notes I have.

from zarchive-fsharpbinding.

Related Issues (20)

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.