-
Notifications
You must be signed in to change notification settings - Fork 158
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
Literate.ProcessScriptFile Broken with "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." #277
Comments
Can you try referencing the F# Formatting library using the load script Basically, I think that replacing the first 6 lines with the following should work:
If this works, it would be great if you can send a pull request to update the "typical literate setup" section in the documentation (so that it recommends to use the load script): https://github.com/tpetricek/FSharp.Formatting/blob/master/docs/content/literate.fsx |
This doesn't work. Looks like it's FSharpVSPowerTools.Core.1.8.0 that's breaking it. |
cc @vasily-kirichenko @dungpa I suppose that having a dependency on "any version newer than 1.7.0" is causing the troubles here. Should we have a dependency on exact version? Or should we just include the current version of PowerTools DLL in the package? (I guess that's what @forki would suggest and I think that might save us some pain...) |
This is busted for me too. I used
to work around it |
This is a temporary fix for #156 until the problem with FSharp.Formatting is fixed (see fsprojects/FSharp.Formatting#277)
Sorry, it was a non-obvious breaking change. I sent a PR to pin VFPT to v1.8.0 exactly. |
Thanks! |
Well, the dependencies are causing more pain here.... Apparently, when we create So, if we download I'll try fixing F# Compiler Service version too - basically, it looks like we should make sure that F# Formatting is compiled against the same version as VFPT (or ILMerge all the things...) |
(@dsyme Tried to explain to me at F# eXchange how deal with references properly, but I still don't get it... so maybe I'm missing something here. A better solution would be nice.) |
See #303 |
@tpetricek Is there a way to reproduce the issue, just updating FCS seems to work: See #304. Maybe we should add a testcase to make that fail? |
Tried out with the default instructions on page F# Formatting: Literate programming
and updated the nuget packages to latest
Here's the build script
Error:
The text was updated successfully, but these errors were encountered: