You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
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...)
Well, the dependencies are causing more pain here....
Apparently, when we create FsiEvaluator from an FSI session, on .NET this loads whatever version of FSharp.Compiler.Service is already loaded (even if it is a different one (?)), but on Mono, this fails.
So, if we download FSharp.Compiler.Service version 0.89, but VFPT requires 0.87, then creating FsiEvaluator fails because it cannot find it (and since this is in FSI session started by FAKE, I really don't know where I would put binding redirects...).
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.)
Activity
tpetricek commentedon Apr 4, 2015
Can you try referencing the F# Formatting library using the load script
FSharp.Formatting.fsx(rather than referencing individual packages using#r)?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
Indy9000 commentedon Apr 4, 2015
This doesn't work. Looks like it's FSharpVSPowerTools.Core.1.8.0 that's breaking it.
If I downgrade to version 1.7.0 it works.
tpetricek commentedon Apr 4, 2015
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...)
dsyme commentedon Apr 6, 2015
This is busted for me too. I used
to work around it
Downgrade versions, see fsprojects/FSharp.Formatting#282 and fsprojec…
Temporay fix for #156
Pin VFPT to v1.8.0
dungpa commentedon Apr 7, 2015
Sorry, it was a non-obvious breaking change. I sent a PR to pin VFPT to v1.8.0 exactly.
tpetricek commentedon Apr 7, 2015
Thanks!
tpetricek commentedon Apr 24, 2015
Well, the dependencies are causing more pain here....
Apparently, when we create
FsiEvaluatorfrom an FSI session, on .NET this loads whatever version ofFSharp.Compiler.Serviceis already loaded (even if it is a different one (?)), but on Mono, this fails.So, if we download
FSharp.Compiler.Serviceversion 0.89, but VFPT requires 0.87, then creatingFsiEvaluatorfails because it cannot find it (and since this is in FSI session started by FAKE, I really don't know where I would put binding redirects...).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...)
tpetricek commentedon Apr 24, 2015
(@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.)
matthid commentedon Apr 24, 2015
See #303
matthid commentedon Apr 24, 2015
@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?
Updated FSharp.Formatting to resolve issue 277 (fsprojects/FSharp.For…