Skip to content
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

Generated code doesn't work with LicenseToCIL 1.0.0 #38

Open
marklam opened this issue Sep 17, 2018 · 1 comment
Open

Generated code doesn't work with LicenseToCIL 1.0.0 #38

marklam opened this issue Sep 17, 2018 · 1 comment

Comments

@marklam
Copy link

marklam commented Sep 17, 2018

Following the tutorial in a .net 4.7.2 console app with FSharp.Core 4.5, the generated code produces an exception

System.TypeInitializationException
  HResult=0x80131534
  Message=The type initializer for 'Rezoom.SQL.Mapping.CodeGeneration.ReaderTemplate`1' threw an exception.
  Source=Rezoom.SQL.Mapping
  StackTrace:
   at Rezoom.SQL.Mapping.CodeGeneration.ReaderTemplate`1.Template()
   at Rezoom.SQL.Compiler.BackendUtilities.DefaultMigrationBackend.GetMigrationsRun()
   at Rezoom.SQL.Migrations.MigrationUtilities.runMigrations(MigrationConfig config, IMigrationBackend backend, IEnumerable`1 migrationTrees)
   at Rezoom.SQL.Migrations.MigrationExtensions.Run(MigrationTree`1[] migrations, MigrationConfig config, FSharpFunc`2 backend)
   at Program.MyModel.Migrate(MigrationConfig config)
   at Program.migrate()
   at Program.main(String[] argv)

Inner Exception 1:
MissingMethodException: Method not found: 'Microsoft.FSharp.Core.FSharpFunc`2<S`1<!!0>,Microsoft.FSharp.Core.FSharpFunc`2<LicenseToCIL.IL,S`1<S`1<!!1>>>> LicenseToCIL.Ops.newobj'x(System.Reflection.ConstructorInfo)'.

It seems to be a problem with the LicenseToCIL dependency, because pinning at 0.3.0 fixes it.

@rspeele
Copy link
Collaborator

rspeele commented Oct 2, 2018

Same underlying issue as #37.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants