Giter VIP home page Giter VIP logo

Comments (6)

thecodejunkie avatar thecodejunkie commented on May 19, 2024

Roy,

As I read your issue report I immediately get a sense for what is happening. I believe the issue to be in the new view convention code and should be easy to resolve. I will investigate and resolve during the day. Thank you!

from nancy.

sagacity avatar sagacity commented on May 19, 2024

Excellent! I'll keep watching the repo and let you know if the fix takes care of the problem I'm seeing. If you need more detailed diagnostics I can provide those as well, of course (if I know where to look :)).

from nancy.

thecodejunkie avatar thecodejunkie commented on May 19, 2024

Pushed out some fixes to the master repo. Please let me know if this resolved the issue you were seeing. Thanks you!

from nancy.

sagacity avatar sagacity commented on May 19, 2024

This fix solves the startup problems for the regular application, that's good.

The bad thing is, is that the unit testing project still doesn't resolve the modules properly (only the FakeNancyModule gets registered). I'm just using a simple bootstrapper derived from DefaultBootstrapper and I did override the RootPathProvider property because otherwise I get an ArgumentNullException in FileSystemViewLocationProvider.cs: line 43.

from nancy.

sagacity avatar sagacity commented on May 19, 2024

I've just spent some time getting a repro scenario up and running, and I couldn't get it to fail :)
So I think this issue can be closed, since the unit testing problems seem to be unrelated.

And, again, I can confirm that this commit DOES solve the startup problems. Thanks for the help!

from nancy.

sagacity avatar sagacity commented on May 19, 2024

I found why the module didn't get loaded properly in the tests. Apparently I need to add this to my bootstrapper:

AppDomainAssemblyTypeScanner.LoadAssemblies(@"MyAssemblies*.dll");

Any idea how I can avoid this?

from nancy.

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.