Question about CSV.jl

I find that if I run in Terminal, it works well.

julia> cd("/Applications/julia/test/")

(test) pkg> activate .
  Activating project at `/Applications/julia/test`

julia> using CSV

julia> using DataFrames

But when I run in Atom REPL, it gets an error.

julia> cd("/Applications/julia/test/")

(@v1.7) pkg> activate .
  Activating project at `/Applications/julia/test`

julia> using CSV
[ Info: Precompiling CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]
ERROR: LoadError: UndefVarError: PosLen not defined
Stacktrace:

So maybe it is the problem of Atom.