Skip to content

Oxpecker fable plugin not working with fable 4.25.0+ #4176

@Lanayx

Description

@Lanayx

When I'm trying to run command from any of the Oxpecker.Solid projects after updating from 4.24 to 4.25:

 dotnet fable --noCache

I get the error

Loaded Oxpecker.Solid.SolidComponentAttribute from ..\..\src\Oxpecker.Solid.FablePlugin\bin\Debug\net6.0\Oxpecker.Solid.FablePlugin.dll
Started Fable compilation...
Compiled 12/12: src\Components\TodoList.fs                    
Fable compilation finished in 4006ms

Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Core, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'FSharp.Core, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at System.ModuleHandle.ResolveType(QCallModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
   at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
   at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken caCtorToken, MetadataImport& scope, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1& derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctorWithParameters, Boolean& isVarArg)
   at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Int32 attributeCtorToken, Boolean mustBeInheritable)
   at System.Reflection.CustomAttribute.IsDefined(RuntimeType type, RuntimeType caType, Boolean inherit)
   at System.RuntimeType.IsDefined(Type attributeType, Boolean inherit)
   at System.Diagnostics.StackTrace.ToString(TraceFormat traceFormat, StringBuilder sb)
   at System.Diagnostics.StackTrace.ToString(TraceFormat traceFormat)
   at System.Exception.get_StackTrace()
   at Fable.Cli.Main.compilationCycle@1118-8.Invoke(FSharpResult`2 _arg3) in /home/mmangel/Workspaces/Github/fable-compiler/Fable/fable4/src/Fable.Cli/Main.fs:line 1128
   at Fable.Cli.Main.compilationCycle@1115-6.Invoke(Tuple`2 _arg2) in /home/mmangel/Workspaces/Github/fable-compiler/Fable/fable4/src/Fable.Cli/Main.fs:line 1116
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in /home/dev/Projects/fsharp/src/FSharp.Core/async.fs:line 528
   at Microsoft.FSharp.Control.AsyncPrimitives.PostOrQueueWithTrampoline@932.Invoke(Unit unitVar0) in /home/dev/Projects/fsharp/src/FSharp.Core/async.fs:line 932
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in /home/dev/Projects/fsharp/src/FSharp.Core/async.fs:line 112
--- End of stack trace from previous location ---
   at Microsoft.FSharp.Control.AsyncResult`1.Commit() in /home/dev/Projects/fsharp/src/FSharp.Core/async.fs:line 454
   at Microsoft.FSharp.Control.AsyncPrimitives.QueueAsyncAndWaitForResultSynchronously[a](CancellationToken token, FSharpAsync`1 computation, FSharpOption`1 timeout) in /home/dev/Projects/fsharp/src/FSharp.Core/async.fs:line 1139
   at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronously[T](CancellationToken cancellationToken, FSharpAsync`1 computation, FSharpOption`1 timeout) in /home/dev/Projects/fsharp/src/FSharp.Core/async.fs:line 1166
   at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken) in /home/dev/Projects/fsharp/src/FSharp.Core/async.fs:line 1515
   at Fable.Cli.Entry.Run@297-3.Invoke(Unit _arg5) in /home/mmangel/Workspaces/Github/fable-compiler/Fable/fable4/src/Fable.Cli/Entry.fs:line 391
   at Fable.Cli.Entry.main@517-1.Invoke(Tuple`2 _arg2) in /home/mmangel/Workspaces/Github/fable-compiler/Fable/fable4/src/Fable.Cli/Entry.fs:line 523
   at Fable.Cli.Entry.main(String[] argv) in /home/mmangel/Workspaces/Github/fable-compiler/Fable/fable4/src/Fable.Cli/Entry.fs:line 515

To reproduce - download Oxpecker repository

  1. Go to this folder https://github.com/Lanayx/Oxpecker/tree/main/examples/EmptySolid
  2. Run dotnet tool update fable
  3. Observe fable build fails

Basically just reiterating issue Lanayx/Oxpecker#77

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions