Git Product home page Git Product logo

Comments (11)

wieslawsoltes avatar wieslawsoltes commented on May 22, 2024 2

@waliarubal Sorry did not have much time lately. I hope I can investigate over the weekend.

from avalonia.xaml.behaviors.

wieslawsoltes avatar wieslawsoltes commented on May 22, 2024

@waliarubal Can you post from where the stack overflow is coming, I am currently unable to do repro on my machine.

from avalonia.xaml.behaviors.

wieslawsoltes avatar wieslawsoltes commented on May 22, 2024

@waliarubal When I run your app I get this:
Jaya

from avalonia.xaml.behaviors.

waliarubal avatar waliarubal commented on May 22, 2024

Check that the project file for FileSystem plugin looks like below. It has setting to emit output DLL to main project's output directory on build. Try taking latest from my master branch as I may have added some MEF changes that might effect.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Library</OutputType>
    <TargetFramework>netcoreapp2.2</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <Compile Update="**\*.xaml.cs">
      <DependentUpon>%(Filename)</DependentUpon>
    </Compile>
    <AvaloniaResource Include="**\*.xaml">
      <SubType>Designer</SubType>
    </AvaloniaResource>
    <AvaloniaResource Include="Assets\**" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Avalonia" Version="0.9.0-preview4" />
    <PackageReference Include="Avalonia.Desktop" Version="0.9.0-preview4" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\Jaya.Shared\Jaya.Shared.csproj" />
  </ItemGroup>
  <PropertyGroup Condition="'$(Platform)'=='AnyCPU'">
    <OutputPath>..\Jaya.Ui\bin\$(Configuration)\</OutputPath>
  </PropertyGroup>
</Project>

You shall see something like below.
image

from avalonia.xaml.behaviors.

waliarubal avatar waliarubal commented on May 22, 2024

Did you manage to reproduce it? Is the issue fixed now?

from avalonia.xaml.behaviors.

waliarubal avatar waliarubal commented on May 22, 2024

Okay @wieslawsoltes , will be waiting eagerly for your fix. Just to re-mention, the below line in project file of plugins forces the plugins to be built in main program's output directory.

<PropertyGroup Condition="'$(Platform)'=='AnyCPU'">
    <OutputPath>..\Jaya.Ui\bin\$(Configuration)\</OutputPath>
</PropertyGroup>

from avalonia.xaml.behaviors.

wieslawsoltes avatar wieslawsoltes commented on May 22, 2024

@waliarubal I get this:
1
Why do you thinks its caused by Avalonia Behaviors. When Avalonia was updated from 0.8.X to 0.9.X the Rx library was also updated.

from avalonia.xaml.behaviors.

wieslawsoltes avatar wieslawsoltes commented on May 22, 2024

@waliarubal I have commented out this code:
https://github.com/waliarubal/Jaya/blob/c5dcf8fb9fc55ea8e78e723754c00c82085c38ce/Jaya.Ui/Views/ExplorerView.xaml#L96-L100
and SO exceptions still happens. Did not see any other usage of behaviors in your app.

from avalonia.xaml.behaviors.

waliarubal avatar waliarubal commented on May 22, 2024

Interesting, I never checked after commenting the behaviour usage in my app but yes it occured when i did double click action on nodes. Anyways, is this a problem with Avalonia itself then or is their something I should do to prevent this?

from avalonia.xaml.behaviors.

waliarubal avatar waliarubal commented on May 22, 2024

@waliarubal I have commented out this code:
https://github.com/waliarubal/Jaya/blob/c5dcf8fb9fc55ea8e78e723754c00c82085c38ce/Jaya.Ui/Views/ExplorerView.xaml#L96-L100
and SO exceptions still happens. Did not see any other usage of behaviors in your app.

Yes, for now I just have this usage.

from avalonia.xaml.behaviors.

waliarubal avatar waliarubal commented on May 22, 2024

Also let me know how were you able to step into external code since debugger never halted at that point in my machine? In future it will help me in being more verbose in diagnosing root cause of the issues. Thanks for your help and support.

from avalonia.xaml.behaviors.

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.