fsprojects / FsXaml

F# Tools for working with XAML Projects
http://fsprojects.github.io/FsXaml/
MIT License
171 stars 48 forks source link

Error in XAML type provider : Could not load type ... #60

Closed Ummon closed 7 years ago

Ummon commented 7 years ago

Description

I upgraded FsXaml.Wpf from 2.2.0 to 3.1.1 and this error happened:

fsxaml_error

I used NuGet package manager in Visual Studio and just clicked 'Update'.

Related information

ReedCopsey commented 7 years ago

@Ummon This is a "false error" that happens only if F# Power Tools is enabled. It'll go away once I get them to update their internal version of fsxaml. I'm fixing one other FsXaml bug, but will then put a PR into that project to resolve.

For now, everything builds fine. You can ignore this error or temporarily disable f#pt.

ReedCopsey commented 7 years ago

I've put the pull request in - https://github.com/fsprojects/VisualFSharpPowerTools/pull/1495

A compatible build should show up in the artifacts of the AppVeyor build on that PR.

ReedCopsey commented 7 years ago

Can be downloaded prior to official release from https://ci.appveyor.com/project/dungpa/visualfsharppowertools/build/2.5.6-a1702031951/artifacts

Ummon commented 7 years ago

Thanks for you answer. I tried to upgrade F# Power tools to the linked version you re-tried the FsXaml.Wpf 3.1.2 version but I still have this error (first error during compilation):

ActionsPartView.xaml.fs(10,28): error FS3033: The type provider 'FsXaml.XamlTypeProvider' reported an error: Object reference not set to an instance of an object.

Live compilation give me the same error:

fsxaml_error_2

ReedCopsey commented 7 years ago

I'm guessing this is a separate, unrelated issue. Any chance you can make a small Repro, and I can take a look?

On Feb 7, 2017 2:43 AM, "Greg Burri" notifications@github.com wrote:

Thanks for you answer. I tried to upgrade F# Power tools to the linked version you re-tried the FsXaml.Wpf 3.1.2 version but I still have this error (first error during compilation):

ActionsPartView.xaml.fs(10,28): error FS3033: The type provider 'FsXaml.XamlTypeProvider' reported an error: Object reference not set to an instance of an object.

Live compilation give me the same error:

[image: fsxaml_error_2] https://cloud.githubusercontent.com/assets/89829/22687984/8e260578-ed2a-11e6-853d-75d4aba1fe0c.png

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/fsprojects/FsXaml/issues/60#issuecomment-277962478, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCUmkVxKkalOLlRI6TQhnsu9A8AslQnks5raErPgaJpZM4L2Ctv .