-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with Suave 2.2.0 and Liquid #642
Comments
DotLiquid v2.0.55? https://www.nuget.org/packages/Suave.DotLiquid/ Could you submit a PR to bump DotLiquid please? |
@haf with that dependency got this error when tries to render
|
Runtime? |
dotnet core 2 |
It's supposed to bind to And because it all compiles on both mono and .net core. I did build it using .Net core of a previous version though. |
For me. |
I'd update, but there are no command line instructions at https://www.microsoft.com/net/core#macos |
PIng @enricosada – what would be my next steps? |
Also ping @ademar – are we moving to .Net core 2.0? |
@mrkaspa If you could PR that bump of DotLiquid meanwhile, I could get that merged. |
@haf what do you mean? should I create the issue in DotLiquid? |
No, I'm thinking you could bump the version of DotLiquid in this repo and send that as a PR. That way the CI infrastructure can test it out. |
That TypeInitializationException is exactly what I was seeing in #641. |
is there a solution for this? may be another template system? |
@mrkaspa Could you try the new release v2.2.1 where I bumped the dependency, to start with? |
Besides that, I'm having trouble building Suave with .Net Core 2.0, so I can't try recompiling it right now. |
@haf got problems with that version too |
@mrkaspa I see. Thanks for letting us know. Yes, there are other backends, like Razor, Suave.Experimental and the one that is currently a PR since yesterday (see PR #644) Of course it would be optimal to sort this issue out; if you'd feel up for digging about the internals of cross-platform cross-runtime builds, so I don't have to ;) |
@haf honestly I'm a f# beginner learning the language and wanted to build a small experiment web site, so I can't be much help |
Of course. Then I'd recommend https://www.gitbook.com/book/theimowski/suave-music-store/details which uses the F# view engine. |
I'll leave that decision to you. I am still running my stuff in old .NET/Mono |
@haf the guide is too outdated it uses Suave 1 |
@haf this works with on the 2.0.4 version but from 2.0.5 starts breaking with this error
|
@mrkaspa I think the view engine docs of that guide are pretty much up to date. You last message doesn't contain enough information to debug. I suggest you start with mono and await someone who works with .Net Core to come by and help out with these loader errors. |
The |
I'm running on Mono and saw the same issues with Suave.DotLiquid, throwing the initializer exception. However, when I dropped the nuget package and simply included |
From the readme.txt for DotLiquid:
Almost certainly this is the culprit. |
The reason for this is that somewhere between DotLiquid 2.0.55 and 2.0.168, Although the DotLiquid package is referenced from Pakets Main group in Suave.DotLiquid, the
And the
The .NET Standard project references 2.0.55, but the .NET Framework project should reference 2.0.158. I think there is some MSBuild reference resolution magic going on here, which spits 2.0.64 into the mix. 2.0.64 is resolved in the "Tests" dependency group. So I think the DotLiquid package needs to be updated everywhere: in every Paket group and in the |
Using Pakets |
If you have a working environment; it would be great if you could PR some of that. |
Unfortunately, I don't. I just looked into the assemblies with ILDasm. |
I made a simple example and got this error
The text was updated successfully, but these errors were encountered: