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

Irrelevant errors with db_sqlite #63

Open
mildred opened this issue Nov 22, 2020 · 2 comments
Open

Irrelevant errors with db_sqlite #63

mildred opened this issue Nov 22, 2020 · 2 comments

Comments

@mildred
Copy link

mildred commented Nov 22, 2020

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 mildred closed this as completed Nov 22, 2020
@mildred mildred reopened this Nov 23, 2020
@PMunch
Copy link
Owner

PMunch commented Nov 24, 2020

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
Copy link
Owner

PMunch commented Mar 8, 2021

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

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