Skip to content

buildDocumentation fails #294

Closed
Closed

Description

@halcwb

Trying to run buildDocumentation in generate.fsx fails with:

Generating 'C:\Users\hal\Dropbox\Development\GenPres\docs\tools..\content/index.html'
System.TypeLoadException: Method 'get_LineCount' in type 'lexer@289' from assembly 'FSharp.CodeFormat, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at FSharp.CodeFormat.CodeFormatAgent.ParseSource(String file, String source, FSharpOption1 options, FSharpOption1 defines) in c:\Tomas\FSharp.Formatting\src\FSharp.CodeFormat\CodeFormatAgent.fs:line 389
at FSharp.Literate.ParseScript.parseScriptFile(String file, String content, CompilerContext ctx) in c:\Tomas\FSharp.Formatting\src\FSharp.Literate\ParseScript.fs:line 197
at FSharp.Literate.Literate.ParseScriptFile[d](String path, FSharpOption1 formatAgent, FSharpOption1 compilerOptions, FSharpOption1 definedSymbols, FSharpOption1 references, FSharpOption1 fsiEvaluator) in c:\Tomas\FSharp.Formatting\src\FSharp.Literate\Main.fs:line 62 at FSharp.Literate.Literate.ProcessScriptFile(String input, FSharpOption1 templateFile, FSharpOption1 output, FSharpOption1 format, FSharpOption1 formatAgent, FSharpOption1 prefix, FSharpOption1 compilerOptions, FSharpOption1 lineNumbers, FSharpOption1 references, FSharpOption1 fsiEvaluator, FSharpOption1 replacements, FSharpOption1 includeSource, FSharpOption1 layoutRoots, FSharpOption1 generateAnchors, FSharpOption1 assemblyReferences) in c:\Tomas\FSharp.Formatting\src\FSharp.Literate\Main.fs:line 152 at <StartupCode$FSharp-Literate>[email protected](String file, String output) in c:\Tomas\FSharp.Formatting\src\FSharp.Literate\Main.fs:line 167 at <StartupCode$FSharp-Literate>.$Main.processDirectory@180(FSharpOption1 format, Boolean processRecursive, FSharpFunc2 processScriptFile, FSharpFunc2 processMarkdown, String indir, String outdir) in c:\Tomas\FSharp.Formatting\src\FSharp.Literate\Main.fs:line 198
at FSharp.Literate.Literate.ProcessDirectory(String inputDirectory, FSharpOption1 templateFile, FSharpOption1 outputDirectory, FSharpOption1 format, FSharpOption1 formatAgent, FSharpOption1 prefix, FSharpOption1 compilerOptions, FSharpOption1 lineNumbers, FSharpOption1 references, FSharpOption1 fsiEvaluator, FSharpOption1 replacements, FSharpOption1 includeSource, FSharpOption1 layoutRoots, FSharpOption1 generateAnchors, FSharpOption1 assemblyReferences, FSharpOption`1 processRecursive) in c:\Tomas\FSharp.Formatting\src\FSharp.Literate\Main.fs:line 164
at FSI_0004.buildDocumentation() in C:\Users\hal\Dropbox\Development\GenPres\docs\tools\generate.fsx:line 123
at <StartupCode$FSI_0007>.$FSI_0007.main@()
Stopped due to error

Not sure what this error means.

Activity

  1. halcwb commented on Apr 14, 2015

    @halcwb
    Author

    Probably it doesn't have a proper implementation of LexerBase. However, as far as I can tell all the dependencies are in place.

  2. matthid commented on Apr 14, 2015

    @matthid
    Member

    Try looking into #277.

  3. halcwb commented on Apr 14, 2015

    @halcwb
    Author

    I did, I pinpointed the powertools version but still, no result:

    NUGET
    remote: https://www.nuget.org/api/v2
    specs:
    AutoMapper (3.3.1)
    Deedle (1.0.6)
    FSharp.Data (2.0.14)
    Ext.Direct.Mvc4 (3.0.2)
    Microsoft.AspNet.Mvc (>= 4.0.20710.0)
    Newtonsoft.Json (>= 4.5.11)
    FAKE (3.27.5)
    Faker.Net (1.0.3)
    FsCheck (2.0.0)
    FSharp.Core (>= 3.1.2.1)
    FSharp.Compiler.Service (0.0.87)
    FSharp.Core (3.1.2.1)
    FSharp.Data (2.0.14)
    Zlib.Portable (>= 1.10.0) - framework: portable-net40+sl50+wp80+win80
    FSharp.Formatting (2.8.0)
    FSharp.Compiler.Service (>= 0.0.86)
    FSharpVSPowerTools.Core (>= 1.7.0)
    FSharpVSPowerTools.Core (1.8.0)
    FSharp.Compiler.Service (>= 0.0.87)

  4. matthid commented on Apr 14, 2015

    @matthid
    Member

    As the fix is not jet released (if I'm not mistaken) you need to use

    nuget FSharpVSPowerTools.Core == 1.7.0
    

    Currently you use FSharpVSPowerTools.Core (1.8.0)

  5. halcwb commented on Apr 14, 2015

    @halcwb
    Author

    I tried both. However, I discovered that changing the paket dependency file is not enough, you also need to delete the lock file and then run the paket install again to get to the right package. Now, everything runs fine indeed. Thanks.

  6. matthid commented on Apr 14, 2015

    @matthid
    Member

    Good to hear :). Normally I run paket update after changing the dependency file.

  7. forki commented on Apr 14, 2015

    @forki
    Member

    as described in the Paket issue. Running paket install should be enough, but I assume there is a bug. I will try to fix it as soon as I get the data.

  8. matthid commented on Apr 14, 2015

    @matthid
    Member

    Oh, thanks for the clarification.

  9. forki commented on Apr 14, 2015

    @forki
    Member

    the bug is fixed in Paket 0.41.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions