Genie.jl icon indicating copy to clipboard operation
Genie.jl copied to clipboard

UndefVarError: SQLite not defined in connecting a DB step

Open logankilpatrick opened this issue 2 years ago • 2 comments

Describe the bug

julia> include(joinpath("config", "initializers", "searchlight.jl"))
[ Info: Precompiling SearchLight [340e8cb6-72eb-11e8-37ce-c97ebeb32050]
┌ Error: KeyError("GENIE_ENV")
â”” @ Main ~/Desktop/freeCodeCampMVC/config/initializers/searchlight.jl:11

julia> SQLite.DB("db/freeCodeCamp_courses.sqlite")
ERROR: UndefVarError: SQLite not defined
Stacktrace:
 [1] top-level scope
   @ REPL[10]:1

Error stacktrace

ERROR: UndefVarError: SQLite not defined
Stacktrace:
 [1] top-level scope
   @ REPL[10]:1

Additional context

julia> versioninfo()
Julia Version 1.6.3
Commit ae8452a9e0 (2021-09-23 17:34 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.5.0)
  CPU: Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, westmere)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 
  JULIA_PKG_SERVER = https://geo.pkg.julialang.org

I am following the tutorial here: https://genieframework.com/docs/tutorials/Developing-MVC-Web-Apps.html#connectingtothedatabase

logankilpatrick avatar Jan 31 '22 14:01 logankilpatrick

Adding using SQLite fixed the SQL issue but not the first issue at the top.

logankilpatrick avatar Jan 31 '22 14:01 logankilpatrick

Resolves the 2nd issue via #477

logankilpatrick avatar Jan 31 '22 14:01 logankilpatrick