GithubHelp home page GithubHelp logo

Comments (6)

wieslawsoltes avatar wieslawsoltes commented on May 27, 2024 1

Fixed in 11.0.0.2

from dock.

wieslawsoltes avatar wieslawsoltes commented on May 27, 2024

https://github.com/uxmal/reko/blob/40a12caa2f345e6ae4ac56dd591650dec5cea9b4/src/UserInterfaces/AvaloniaUI/AvaloniaUI.csproj#L27

from dock.

uxmal avatar uxmal commented on May 27, 2024

Thanks for the feedback. I'm not sure what you're implying, however. The package reference is to the most recent available Nuget on nuget.org: <PackageReference Include="Dock.Model.ReactiveUI" Version="11.0.0-preview6" />. The error reproduces on my CI build, so it doesn't appear to me a machine-specific issue:
https://cirrus-ci.com/task/6006447935324160

Are you suggesting:

  • Removing the reference? I did, the compiler error persists and more compiler errors appear as the code uses extension methods from Dock.Model.ReactiveUI
  • To use a non-prerelease package? If so, where is it available from? According to nuget.org this is the most recent available binary.
  • To use a different package? If so, which one?

After doing a clean rebuild, I get the following stack trace together with my diagnostic. Is it of any help?

Severity	Code	Description	Project	File	Line	Suppression State
Error	AXN0002	XamlX.XamlParseException: Unable to resolve type DockProperties from namespace using:Dock.Avalonia Line 1, position 2.
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveTypeCore(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Transform/Transformers/TypeReferenceResolver.cs:line 109
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Transform/Transformers/TypeReferenceResolver.cs:line 35
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, XamlAstXmlTypeReference xmlref, Boolean strict) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Transform/Transformers/TypeReferenceResolver.cs:line 147
   at XamlX.Transform.Transformers.TypeReferenceResolver.Transform(AstTransformationContext context, IXamlAstNode node) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Transform/Transformers/TypeReferenceResolver.cs:line 136
   at XamlX.Transform.AstTransformationContext.Visitor.Visit(IXamlAstNode node) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Transform/AstTransformationContext.cs:line 58
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Ast/Common.cs:line 56
   at XamlX.Ast.XamlAstNamePropertyReference.VisitChildren(IXamlAstVisitor visitor) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Ast/Xaml.cs:line 137
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Ast/Common.cs:line 60
   at XamlX.Ast.XamlAstXamlPropertyValueNode.VisitChildren(IXamlAstVisitor visitor) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Ast/Xaml.cs:line 58
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Ast/Common.cs:line 60
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Ast/Common.cs:line 74
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Ast/Common.cs:line 60
   at XamlX.Compiler.XamlCompiler`2.Transform(XamlDocument doc, Boolean strict) in /_/src/Markup/Avalonia.Markup.Xaml.Loader/xamlil.github/src/XamlX/Compiler/XamlCompiler.cs:line 71
   at Avalonia.Generators.Common.XamlXViewResolver.ResolveView(String xaml) in /_/src/tools/Avalonia.Generators/Common/XamlXViewResolver.cs:line 48	AvaloniaUI	D:\dev\uxmal\reko\master\src\UserInterfaces\AvaloniaUI\AvaloniaUI.csproj	1	Active

The token DockProperties doesn't exist in my codebase. I see it in the Dock.Settings project in your source reposity. There is already a reference to Dock.Settings in my csproj file. Am I making an obvious mistake?

from dock.

Sputnik24 avatar Sputnik24 commented on May 27, 2024

Same issue here. Since updating to 11.0.0.1, it cannot find DockProperties in Dock.Avalonia.

from dock.

Sputnik24 avatar Sputnik24 commented on May 27, 2024

It is still not working, same error. Do I need to change something coming from 11.0.0?

from dock.

wieslawsoltes avatar wieslawsoltes commented on May 27, 2024

You need different namespace

https://github.com/uxmal/reko/blob/6548217074a7ded73954a7a35d52fdbf2e348485/src/UserInterfaces/AvaloniaUI/Views/MainWindow.axaml#L25

xmlns:ids="using:Dock.Settings"
ids:DockProperties

from dock.

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.