-
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
Some features adjustment on MetadataFormat #64
Conversation
Wow, great work!! :-) I'll test & merge this tomorrow. |
Hi Tomas, Good you like it. Here is the manual I build for Alea.cuBase: You can click the "Reference" link to see the doc generated by my To apply the fixed PowerPack.Metadata.dll, you can clone my repo and just Regards, On Fri, Nov 8, 2013 at 1:22 PM, Tomas Petricek notifications@github.comwrote:
|
example of union case: example of record fields: example of nested types: On Fri, Nov 8, 2013 at 1:22 PM, Tomas Petricek notifications@github.comwrote:
|
Nice! I'm glad other people are finding F# formatting useful. I'll run this on the Deedle documentation (which has some records & discriminated unions) too. Thanks very much for the contribution! |
Thank you providing such a good tool. This is the best one for F# :) On Fri, Nov 8, 2013 at 3:21 PM, Tomas Petricek notifications@github.comwrote:
|
Cool, if I read this right, it will allow to document JsonValue properly in FSharp.Data |
Some features adjustment on MetadataFormat
Released in version 2.2.7-beta (labeled as beta mainly because I made some other unrelated beta changes on my machine - it should not break anything, but who knows :-)) I also have not imported the changes in PowerPack yet - I'm wondering what's the best way to do that. Perhaps we should just copy the code from PowerPack and have it directly in the repository here? (I think it is unlikely that anyone else would want to maintain that...) Thoughts @ovatsus @dsyme @forki? |
If there is no license problem, then I'd suggest copy it over. |
I'm getting an invalid cast exception. Ideas? |
This seems to be a Razor template problem, you need a little trace into the Also, I think I forgot one thing, if there is a generic type (not nested), On Mon, Nov 11, 2013 at 6:13 PM, Steffen Forkmann
|
So for example, I used following razor template in my project (not in this pull request):
So, from your error screenshot, you are reading view bag Properties, you should use correct cast I think. |
I'd also suggest that you just copy the file from powerpack |
@soloman817 I get the same error with the default templates |
could you send the dll to me via soloman817@gmail.com |
It might be easier to clone fsprojects/FAKE@95725d4 and run build.cmd |
ok, let me have a try. On Mon, Nov 11, 2013 at 7:19 PM, Steffen Forkmann
|
@forki I confirmed, this problem is because you used things like Here is the step I debug this problem:
Then I can pass the build, but once if I added a I think I also met this problem when using Because I traced into the code, the Properties is created as a dictionary, but must cast it down. Well I'm not very good at dynamic .NET, could @tpetricek check this? I think this is not a problem raised by my commits, this is about how to use the dynamic view bag stuff in the template which I'm not very familiar. Regards, |
I'll have a look. Razor is quite odd, but I think it might be fixed if I change how the dictionaries are created. |
I updated FSharp.Data to 2.2.7-beta, but I'm still not getting the |
@soloman817 How do you specify the docs for the record fields in the source code to generate this (http://www.aleacubase.com/temp/manual/reference/alea_cuda/alea-cuda-common-compileoptions.html) |
@ovatsus The UnionCase is parsed by FSharp.PowerPack.Metadata, so it should be there, and make sure you use fsharp 3.0+ (by running the script with Developer Prompt VS2012 or 2013). The following code generates this page /// Compiling options.
type CompileOptions =
{
/// The module name. If a module is used as library, it _must_ be assigned with a module name.
ModuleName : string
AddressSize : AddressSize
MinimalArch : DeviceArch
VarDebug : bool
FixInlineFunctionIssue : bool
LinkageG : bool
LinkageOpt : LinkageOpt
LinkageFTZ : bool
LinkagePrecSqrt : bool
LinkagePrecDiv : bool
LinkageFMA : bool
JITMaxRegisters : int option
JITCacheMode : JITCacheMode option
} Another example generate this page /// CUDA JIT compiling cache mode.
type JITCacheMode =
/// Compile with L1 cache disabled.
| CG
/// Compile with L1 cache enabled.
| CA But I'm using VS2012, don't know if it work with open source fsharp. |
@forki @soloman817 I tried reproducing the error mentioned above (when building FAKE) but it works fine with the latest master of FSharp.Formatting. Can you please open a separate issue if you get the above error again? The latest master also includes union cases & records in The default templates use @soloman817 I would be happy to include a version of templates that do not use LINQ to group by categories, but I think I can only reasonably maintain one version - but if you can add them and add a MetadataFormat test that uses them, that would be perfect (if your project fits better with this simpler version of the templates). |
@forki @tpetricek I remembered that the reproducing happens in one branch, not master. But yes, @forki you should open a new issues, and better write down how to reproduce this problem. @tpetricek absolutely you should only maintain one template. The problem is I went to the wrong template from the beginning. I will adjust my project to using the LINQ one later. |
I modified these issues:
I also find another bug, that the private constructor is also listed. I traced this problem and find that it is a FSharpPowerPack.Metadata problem, so I also make a FSharpPowerPack repo, and fixed it by just one line, you can check that here: soloman817/FSharpPowerPack@05182d5