Method not found: 'System.String SQLitePCL.raw.sqlite3_errstr(Int32)
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 2.1k
- Forks
- 528
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 54
Description
Description
When use entityframework core with sqlite there is some issue with paket, it generates wrong dependency so when I run the program it throws exception " Method not found: 'System.String SQLitePCL.raw.sqlite3_errstr(Int32)".
Repro steps
I create a repository to reproduce: https://github.com/albertwoo/PaketIssue
- Project "UseNuget" is just a console project with a dependency to "Microsoft.EntityFrameworkCore.Sqlite". It works as expected.
- Project "UsePaket" is powered by paket, actually it is just the copy of project "UseNuget", I just use command "paket convert-from-nuget". I can build it but if I use "dotnet run". The exception happens:
Unhandled Exception: System.MissingMethodException: Method not found: 'System.String SQLitePCL.raw.sqlite3_errstr(Int32)'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteConnection.Open() at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnection(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Sqlite.Storage.Internal.SqliteRelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Sqlite.Storage.Internal.SqliteDatabaseCreator.Exists() at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.EnsureCreated() at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.EnsureCreated() at Program.main(String[] argv) in D:\CodeBase\Playground\PaketIssue\UsePaket\Program.fs:line 20
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked PaketIssue repository and compare the UsePaket and UseNuget projects after running paket convert-from-nuget. Reproduce the dotnet run failure and inspect how the converted project resolves the SQLite dependencies. Done means the Paket-based project runs without the SQLitePCL.raw.sqlite3_errstr missing-method exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fsharp, sqlite
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100