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

Warning fails to show #30

Closed
paulmelis opened this issue May 2, 2022 · 1 comment · Fixed by #33
Closed

Warning fails to show #30

paulmelis opened this issue May 2, 2022 · 1 comment · Fixed by #33

Comments

@paulmelis
Copy link

paulmelis commented May 2, 2022

As also noticed in #24 I get an error about warn() not being defined when it is used to show a warning ;-)

julia> using LMDB

julia> env = create()
Environment is created

julia> env[:mapsize] = 52428800
ERROR: UndefVarError: warn not defined
Stacktrace:
 [1] setindex!(env::Environment, val::UInt32, option::Symbol)
   @ LMDB ~/.julia/packages/LMDB/g7vek/src/env.jl:114
 [2] setindex!(env::Environment, val::Int64, option::Symbol)
   @ LMDB ~/.julia/packages/LMDB/g7vek/src/env.jl:118
 [3] top-level scope
   @ REPL[4]:1

(@v1.7) pkg> st LMDB
      Status `~/.julia/environments/v1.7/Project.toml`
  [11f193de] LMDB v0.2.1

julia> versioninfo()
Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, haswell)

Edit: yes, I should be using :MapSize, but that's not the point here :-)

@meggart
Copy link
Collaborator

meggart commented May 11, 2022

Thanks a lot for the report. I will fix when I am working on the repo again, but might take a few weeks. PR's by anyone are welcome as well...

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

Successfully merging a pull request may close this issue.

2 participants