nimlsp icon indicating copy to clipboard operation
nimlsp copied to clipboard

Irrelevant errors with db_sqlite

Open mildred opened this issue 4 years ago • 2 comments

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()

image

Compiling it with nim, I have no errors.

Running:

  • Nim v1.4.0 [Linux: amd64]
  • nimlsp v0.2.4

mildred avatar Nov 22 '20 22:11 mildred

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?

PMunch avatar Nov 24 '20 09:11 PMunch

Going through issues and doing some house-keeping. Never got a reply on this, do you have a response to my questions?

PMunch avatar Mar 08 '21 18:03 PMunch