nimlsp
nimlsp copied to clipboard
Irrelevant errors with db_sqlite
I tracked down ittelevant errors shown, and I could trace it back to the db_sqlite package with the following example code:
import db_sqlite
proc connect*(dbfile: string): DbConn =
result = db_sqlite.open(dbfile, "", "", "")
proc process_db() =
var db: DbConn = connect("foo.db")
defer: db.close()
echo "foo"
process_db()
Compiling it with nim, I have no errors.
Running:
- Nim v1.4.0 [Linux: amd64]
- nimlsp v0.2.4
Hmm, I'm unable to reproduce this. Are you sure your nimlsp is compiled with the same version of Nim you're compiling with and that it points to the same stdlib?
Going through issues and doing some house-keeping. Never got a reply on this, do you have a response to my questions?