Giter Site home page Giter Site logo

Monodevelop fails to open any .fs file and produces an "Object reference not set to an instance of an object" error. about zarchive-fsharpbinding HOT 5 CLOSED

fsharp avatar fsharp commented on July 20, 2024
Monodevelop fails to open any .fs file and produces an "Object reference not set to an instance of an object" error.

from zarchive-fsharpbinding.

Comments (5)

funnelweb avatar funnelweb commented on July 20, 2024

Could you move to Modevelop 3.0.4.7? (though not sure that's the problem)

Do you have a version number for the FSharpBinding addin - was it the one installed from the addin repository? If you're comfortable compiling and installing from fsharpbinding/master that would be helpful.

-- ben

from zarchive-fsharpbinding.

Kazurik avatar Kazurik commented on July 20, 2024

I'm having some trouble getting 3.0.4.7 to compile in Arch which I am still working on. Once I get that working I'll try it in there.

I was using the FSharpBinidng addin from the addin repository. When I try to compile FSharpBinding from source it fails with this error with monodevelop 3.0.3.5:
Errors:

/home/kaz/src/fsharpbinding/MonoDevelop.FSharpBinding/MonoDevelop.FSharp.fsproj (default targets) ->
/usr/lib/mono/Microsoft F#/v4.0/Microsoft.FSharp.targets (CoreCompile target) ->

    /home/kaz/src/fsharpbinding/MonoDevelop.FSharpBinding/FSharpResolverProvider.fs(199,9): error FS0016: The type 'string' does not have any proper subtypes and cannot be used as the source of a type test or runtime coercion.

     3 Warning(s)
     1 Error(s)

and then in monodevelop: 3.05 it fails with:
Errors:

/home/kaz/src/fsharpbinding/MonoDevelop.FSharpBinding/MonoDevelop.FSharp.fsproj (default targets) ->
/usr/lib/mono/Microsoft F#/v4.0/Microsoft.FSharp.targets (CoreCompile target) ->

    /home/kaz/src/fsharpbinding/MonoDevelop.FSharpBinding/Services/Parameters.fs(24,6): error FS0365: No implementation was given for 'ConfigurationParameters.HasDefineSymbol(symbol: string) : bool'
    /home/kaz/src/fsharpbinding/MonoDevelop.FSharpBinding/Services/Parameters.fs(24,6): error FS0054: This type is 'abstract' since some abstract members have not been given an implementation. If this is intentional then add the '[<AbstractClass>]' attribute to your type.

     3 Warning(s)
     2 Error(s)

I will post an update soon with my progress on getting monodevelop 3.0.4.7 to compile.

from zarchive-fsharpbinding.

Kazurik avatar Kazurik commented on July 20, 2024

After getting 3.0.4.7 compiled I now receive the error of:
System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.Ide.Templates.ProjectTemplate ---> Mono.Addins.MissingDependencyException: The required addin 'MonoDevelop.SourceEditor2,3.0.4' is disabled.

when ever I try to do anything involving solutions at all in monodevelop. This is with the fsharpbindings from the repos. I will go test out the main branch now.

from zarchive-fsharpbinding.

funnelweb avatar funnelweb commented on July 20, 2024

3.0.4.7 is the one you need to use.

If you want to use 3.0.5 then undefine the MONODEVEVLOP_HEAD code in Parameters.fs. See the discussion on the F# open source google group yesterday

Your earlier exceptions might have horked your MD setup and even basic MD components are now disabled. there should be some local setting under ~ that controls this stuff i suppose.

from zarchive-fsharpbinding.

funnelweb avatar funnelweb commented on July 20, 2024

closing this for now.

there are updated versions of the binding in the MonoDevelop gallery for MD 3.0.3, 3.0.4 and 3.0.5. If you get this bug with any of those then pls reopen

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.