-
Notifications
You must be signed in to change notification settings - Fork 153
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
Can't generate docs on Linux or OSX #65
Comments
I tried to fix the issue copying the suggested dll from within packages/FAKE/tools to docs/tools (simply cause the trace above says this folder is among the inspected ones). fsharpi --define:RELEASE generate.fsx |
Should be fixed by this direct commit: ccdd395 |
Reopened and renamed because of the problem with generating docs |
The generated file is: // ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.17020
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace CompiledRazorTemplates.Dynamic {
using System;
using System.Collections.Generic;
using System.Linq;
public class bdfebedcbe : FSharp.Literate.DocPageTemplateBase<System.Object> {
#line hidden
public bdfebedcbe() {
}
public override void Execute() {
Layout = "template";
Title = Properties["page-title"];
Description = Properties["project-summary"];
WriteLiteral("\r\n");
Write(Properties["document"]);
WriteLiteral("\r\n");
Write(Properties["tooltips"]);
}
}
} |
FWIW, neither the output above nor the output listed in #68 contain any specific parsing errors from the error handling code in FSharp.Formatting |
@tpetricek - It would be great if the scaffolding (or FSharp.Formatting) could drop the dependency on Razor. Is Razor really doing anything particularly complicated here? Could we have a fully cross-platform F#-only FSharp.Formatting? |
It's not that complicated, but we would need a good OSS templating tool.
|
I think @7sharp9 knows some things about fixing the Razor engine on Mono. I'd love to drop it too. We just need some pretty basic OSS templating tool instead. I would welcome any pull requests to F# Formatting that replace Razor - either with another dependency or even with a simple templating tool written in F# instead. Though it should probably not be completely basic - the templates currently do some non-trivial things. We could move the grouping into the F# code itself, but it still needs some composition, looping and if statements. |
I made a PR that fixed Razor, not sure if it made it to a nuget release of Razor though. It was some time ago ... |
I started implementing F# support in Razor years ago, but I'm sure Razor has changed substantially since then. |
DotLiquid might be a good candidate. It is a .NET implementation of Liquid, which is the default template engine for Jekyll (used on Github pages). I've not tried it on Mono. |
Incidentally, my fix was here in the RazorEngine: Antaris/RazorEngine@2098fb0 When I built all from source I could use formatting fine, some of the fsx scripts were troublesome though. Ive never built the scaffolding, so it might not be relevant ... |
The other problem with Razor is that the newer versions require .NET 4.5, while F# Formatting can work fine with just .NET 4.0. So updating to newer version of Razor also means updating to .NET 4.5 (might not be a big deal though). F# support for Razor sounds nice, but it probably does not fix the problem here. @7sharp9 Thanks for the clarification! We could try updating the package. |
I was going to start using ProjectScaffold soon, as it doesn't work out of the box on osx its dissapointing :-( |
@tpetricek I rebuilt everything from scratch so I probably made everything .Net 4.5, I cant actually remember now. |
@7sharp9 It is disappointing indeed! That's why we need help from some mono experts ;-) |
@7sharp9 Are you having a different issue than the one at the start of this thread? If so, please create an new issue. I'm in the process of moving my primary dev stack over to OS X. So I intend to tackle this issue (maybe a few others) in the very near future. |
@pblasucci I had issues with Razor ages ago, thats what @tpetricek was referring to. I have the same issue thats described here just checked. |
Any updates on this? |
The best way to get this started would be to start a discussion on the F# Formatting project page: http://github.com/tpetricek/FSharp.Formatting/ I think writing a custom system might be more work than one would expect, but if there is something we could use instead of Razor, that would be fantastic... |
Ok, created Issue #188 over at FSharp.Formatting. |
Please try with #135. |
From a clear clone on OSX 10.9.3 + Mono 3.4.0, after having setup the project info through build.sh, I run build.sh ReleaseDoc and I get the following error:
fsharpi --define:RELEASE generate.fsx
/Users/gabriele/Projects/ProjectScaffold/docs/tools/generate.fsx(29,1): error FS0078: Unable to find the file 'NuGet.Core.dll' in any of
/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5
/Users/gabriele/Projects/ProjectScaffold/docs/tools/../../packages/FSharp.Formatting.2.4.1/lib/net40
/Users/gabriele/Projects/ProjectScaffold/docs/tools/../../packages/RazorEngine.3.3.0/lib/net40
/Users/gabriele/Projects/ProjectScaffold/docs/tools/../../packages/FSharp.Compiler.Service.0.0.36/lib/net40
/Users/gabriele/Projects/ProjectScaffold/docs/tools
/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.0/
The text was updated successfully, but these errors were encountered: