Giter Site home page Giter Site logo

Comments (2)

rdeago avatar rdeago commented on August 14, 2024

After some research and quite a few trial and error cycles, during which I managed to fix other, still undiscovered issues (PR incoming BTW), it seems that this is not a problem with Buildvana SDK.

The same issue has been reported in dotnet/vscode-csharp#3766 so it looks like either Omnisharp or MSBuild itself is to blame.

from buildvana.sdk.

rdeago avatar rdeago commented on August 14, 2024

Some more research revealed that the same problem afflicts all tasks derived from AppDomainIsolatedTask, even built-in tasks such as ResolveComReference, as proved by this comment on Omnisharp's issue.

AppDomainIsolatedTask is a bare minimum ITask implementation; its only distinguishing feature is being decorated with a LoadInSeparateAppDomain attribute, which triggers special behavior in MSBuild's internal TaskLoader class. That special behavior (running the task in a separate AppDomain) seems to prevent Omnisharp from successfully loading the task, although I haven't dug any deeper into it.

Buildvana SDK's ContextIsolatedTask doesn't need any special treatment, because it already creates and uses its own separate AppDomain. So, instead of deriving it from AppDomainIsolatedTask, I made it a subclass of MarshalByRefObject and added a bare minimum ITask implementation.

I tried opening my local Buildvana SDK repo in VS code with a locally-rebuilt SDK. Omnisharp works like a charm. PR incoming.

from buildvana.sdk.

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.