I'm having some bugs when trying to access the column of a DataFrame in the extension's Julia REPL. The error is not present in a non-extension REPL. See below:
Julia-REPL from extension
julia> versioninfo()
Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, ivybridge)
Environment:
JULIA_EDITOR = "C:\Users\Martin Cornejo\AppData\Local\Programs\Microsoft VS Code\Code.exe"
JULIA_NUM_THREADS = 4
julia> using CSV
julia> using DataFrames
julia> df = DataFrame(CSV.File("consumption_2016_mwh.csv"))
20540×5 DataFrame
│ Row │ CountryOrArea │ Year │ Commodity │ Transaction │ QuantityMWh │
│ │ String │ Int64 │ String │ String │ Float64 │
├───────┼───────────────┼───────┼─────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────┼─────────────┤
│ 1 │ Armenia │ 2016 │ Animal waste │ Final energy consumption │ 641.944 │
│ 2 │ Armenia │ 2016 │ Animal waste │ Consumption by manufacturing, construction and non-fuel mining industry │ 0.0 │
│ 3 │ Armenia │ 2016 │ Animal waste │ Consumption by other │ 641.944 │
│ 4 │ Armenia │ 2016 │ Animal waste │ Consumption by households │ 641.944 │
│ 5 │ Bangladesh │ 2016 │ Animal waste │ Final energy consumption │ 33660.6 │
│ 6 │ Bangladesh │ 2016 │ Animal waste │ Consumption by other │ 33660.6 │
│ 7 │ Bangladesh │ 2016 │ Animal waste │ Consumption by households │ 33660.6 │
│ 8 │ Belgium │ 2016 │ Animal waste │ Final energy consumption │ 217.5 │
│ 9 │ Belgium │ 2016 │ Animal waste │ Consumption by other │ 217.5 │
│ 10 │ Belgium │ 2016 │ Animal waste │ Consumption by agriculture, forestry and fishing │ 217.5 │
│ 11 │ Eritrea │ 2016 │ Animal waste │ Final energy consumption │ 833.333 │
│ 12 │ Eritrea │ 2016 │ Animal waste │ Consumption by other │ 833.333 │
│ 13 │ Eritrea │ 2016 │ Animal waste │ Consumption by households │ 833.333 │
│ 14 │ Ethiopia │ 2016 │ Animal waste │ Final energy consumption │ 42453.9 │
⋮
│ 20526 │ Japan │ 2016 │ White spirit and SBP industrial spirits │ Consumption by manufacturing, construction and non-fuel mining industry │ 469.0 │
│ 20527 │ Japan │ 2016 │ White spirit and SBP industrial spirits │ Consumption by iron and steel industry │ 11.1667 │
│ 20528 │ Japan │ 2016 │ White spirit and SBP industrial spirits │ Consumption by iron and steel industry │ 11.1667 │
│ 20529 │ Japan │ 2016 │ White spirit and SBP industrial spirits │ Consumption by machinery industry │ 457.833 │
│ 20530 │ Japan │ 2016 │ White spirit and SBP industrial spirits │ Consumption by machinery industry │ 457.833 │
│ 20531 │ Myanmar │ 2016 │ White spirit and SBP industrial spirits │ Final energy consumption │ 2.68 │
│ 20532 │ Myanmar │ 2016 │ White spirit and SBP industrial spirits │ Final energy consumption │ 2.68 │
│ 20533 │ Myanmar │ 2016 │ White spirit and SBP industrial spirits │ Consumption by manufacturing, construction and non-fuel mining industry │ 2.68 │
│ 20534 │ Myanmar │ 2016 │ White spirit and SBP industrial spirits │ Consumption by manufacturing, construction and non-fuel mining industry │ 2.68 │
│ 20535 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Final energy consumption │ 11.1667 │
│ 20536 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Final energy consumption │ 11.1667 │
│ 20537 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Consumption by manufacturing, construction and non-fuel mining industry │ 11.1667 │
│ 20538 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Consumption by manufacturing, construction and non-fuel mining industry │ 11.1667 │
│ 20539 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Consumption by industries not elsewhere specified │ 11.1667 │
│ 20540 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Consumption by industries not elsewhere specified │ 11.1667 │
julia> df.Transaction
20540-element PooledArrays.PooledArrayInternal Error: {ERROR: StringMethodError: no method matching size(::PooledArrays.PooledArray{String,UInt32,1,Array{UInt32,1}})
The applicable method may be too new: running in world age 27174, while current world is 27192.
Closest candidates are:
size(::PooledArrays.PooledArray) at C:\Users\Martin Cornejo\.julia\packages\PooledArrays\yiLq3\src\PooledArrays.jl:146 (method too new to be called from this world context.)
size(::AbstractArray{T,N}, ::Any) where {T, N} at abstractarray.jl:38
size(::BitArray{1}) at bitarray.jl:99
...,
Stacktrace:UInt32
, [1] 1treerender,(Array::{PooledArraysUInt32.,PooledArray1{}String},:UInt32
, 1,"Final energy consumption"Array{UInt32
, 1}"Consumption by manufacturing, construction and non-fuel mining industry"}) at
c:\Users\Martin Cornejo\.vscode\extensions\julialang.language-julia-0.16.8\scripts\packages\VSCodeServer\src\trees.jl:125
[2] "Consumption by other"treerender(::
VSCodeServer .SubTree"Consumption by households") at c:\Users\Martin Cornejo\.vscode\extensions\julialang.language-julia-0.16.8\scripts\packages\VSCodeServer\src\trees.jl:54
[3] repl_getvariables_request"Final energy consumption"(::VSCodeServer.JSONRPC
. JSONRPCEndpoint, "Consumption by other"::Nothing)
at c:\Users\Martin Cornejo\.vscode\extensions\julialang.language-julia-0.16.8\scripts\packages\VSCodeServer\src\request_handlers.jl:88
"Consumption by households" [4] dispatch_msg(
:: VSCodeServer.JSONRPC."Final energy consumption"JSONRPCEndpoint, ::
VSCodeServer.JSONRPC .MsgDispatcher"Consumption by other", ::Dict
{ String,"Consumption by agriculture, forestry and fishing"Any})
at c:\Users\Martin Cornejo\.vscode\extensions\julialang.language-julia-0.16.8\scripts\packages\JSONRPC\src\typed.jl:63
"Final energy consumption" [5] macro expansion at
c:\Users\Martin Cornejo\.vscode\extensions\julialang.language-julia-0.16.8\scripts\packages\VSCodeServer\src\VSCodeServer.jl:83 [inlined]
"Consumption by other" [6] (::VSCodeServer.var"#53#55"{Bool,String})(
) at .\task.jl:358"Consumption by households"
"Final energy consumption"
"Consumption by other"
"Consumption by households"
⋮
"Consumption by manufacturing, construction and non-fuel mining industry"
"Consumption by manufacturing, construction and non-fuel mining industry"
"Consumption by iron and steel industry"
"Consumption by iron and steel industry"
"Consumption by machinery industry"
"Consumption by machinery industry"
"Final energy consumption"
"Final energy consumption"
"Consumption by manufacturing, construction and non-fuel mining industry"
"Consumption by manufacturing, construction and non-fuel mining industry"
"Final energy consumption"
"Final energy consumption"
"Consumption by manufacturing, construction and non-fuel mining industry"
"Consumption by manufacturing, construction and non-fuel mining industry"
"Consumption by industries not elsewhere specified"
"Consumption by industries not elsewhere specified"
Normal Julia REPL in terminal
C:\Users\Martin Cornejo\Documents\ESM\default-values>julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.4.2 (2020-05-23)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.4) pkg> activate .
Activating environment at `C:\Users\Martin Cornejo\Documents\ESM\default-values\Project.toml`
julia> versioninfo()
Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, ivybridge)
julia> using CSV
julia> using DataFrames
julia> df = DataFrame(CSV.File("consumption_2016_mwh.csv"))
20540×5 DataFrame
│ Row │ CountryOrArea │ Year │ Commodity │ Transaction │ QuantityMWh │
│ │ String │ Int64 │ String │ String │ Float64 │
├───────┼───────────────┼───────┼─────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────┼─────────────┤
│ 1 │ Armenia │ 2016 │ Animal waste │ Final energy consumption │ 641.944 │
│ 2 │ Armenia │ 2016 │ Animal waste │ Consumption by manufacturing, construction and non-fuel mining industry │ 0.0 │
│ 3 │ Armenia │ 2016 │ Animal waste │ Consumption by other │ 641.944 │
│ 4 │ Armenia │ 2016 │ Animal waste │ Consumption by households │ 641.944 │
│ 5 │ Bangladesh │ 2016 │ Animal waste │ Final energy consumption │ 33660.6 │
│ 6 │ Bangladesh │ 2016 │ Animal waste │ Consumption by other │ 33660.6 │
│ 7 │ Bangladesh │ 2016 │ Animal waste │ Consumption by households │ 33660.6 │
│ 8 │ Belgium │ 2016 │ Animal waste │ Final energy consumption │ 217.5 │
│ 9 │ Belgium │ 2016 │ Animal waste │ Consumption by other │ 217.5 │
│ 10 │ Belgium │ 2016 │ Animal waste │ Consumption by agriculture, forestry and fishing │ 217.5 │
│ 11 │ Eritrea │ 2016 │ Animal waste │ Final energy consumption │ 833.333 │
│ 12 │ Eritrea │ 2016 │ Animal waste │ Consumption by other │ 833.333 │
│ 13 │ Eritrea │ 2016 │ Animal waste │ Consumption by households │ 833.333 │
│ 14 │ Ethiopia │ 2016 │ Animal waste │ Final energy consumption │ 42453.9 │
⋮
│ 20526 │ Japan │ 2016 │ White spirit and SBP industrial spirits │ Consumption by manufacturing, construction and non-fuel mining industry │ 469.0 │
│ 20527 │ Japan │ 2016 │ White spirit and SBP industrial spirits │ Consumption by iron and steel industry │ 11.1667 │
│ 20528 │ Japan │ 2016 │ White spirit and SBP industrial spirits │ Consumption by iron and steel industry │ 11.1667 │
│ 20529 │ Japan │ 2016 │ White spirit and SBP industrial spirits │ Consumption by machinery industry │ 457.833 │
│ 20530 │ Japan │ 2016 │ White spirit and SBP industrial spirits │ Consumption by machinery industry │ 457.833 │
│ 20531 │ Myanmar │ 2016 │ White spirit and SBP industrial spirits │ Final energy consumption │ 2.68 │
│ 20532 │ Myanmar │ 2016 │ White spirit and SBP industrial spirits │ Final energy consumption │ 2.68 │
│ 20533 │ Myanmar │ 2016 │ White spirit and SBP industrial spirits │ Consumption by manufacturing, construction and non-fuel mining industry │ 2.68 │
│ 20534 │ Myanmar │ 2016 │ White spirit and SBP industrial spirits │ Consumption by manufacturing, construction and non-fuel mining industry │ 2.68 │
│ 20535 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Final energy consumption │ 11.1667 │
│ 20536 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Final energy consumption │ 11.1667 │
│ 20537 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Consumption by manufacturing, construction and non-fuel mining industry │ 11.1667 │
│ 20538 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Consumption by manufacturing, construction and non-fuel mining industry │ 11.1667 │
│ 20539 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Consumption by industries not elsewhere specified │ 11.1667 │
│ 20540 │ Romania │ 2016 │ White spirit and SBP industrial spirits │ Consumption by industries not elsewhere specified │ 11.1667 │
julia> df.Transaction
20540-element PooledArrays.PooledArray{String,UInt32,1,Array{UInt32,1}}:
"Final energy consumption"
"Consumption by manufacturing, construction and non-fuel mining industry"
"Consumption by other"
"Consumption by households"
"Final energy consumption"
"Consumption by other"
"Consumption by households"
"Final energy consumption"
"Consumption by other"
"Consumption by agriculture, forestry and fishing"
"Final energy consumption"
"Consumption by other"
"Consumption by households"
"Final energy consumption"
"Consumption by other"
"Consumption by households"
⋮
"Consumption by manufacturing, construction and non-fuel mining industry"
"Consumption by manufacturing, construction and non-fuel mining industry"
"Consumption by iron and steel industry"
"Consumption by iron and steel industry"
"Consumption by machinery industry"
"Consumption by machinery industry"
"Final energy consumption"
"Final energy consumption"
"Consumption by manufacturing, construction and non-fuel mining industry"
"Consumption by manufacturing, construction and non-fuel mining industry"
"Final energy consumption"
"Final energy consumption"
"Consumption by manufacturing, construction and non-fuel mining industry"
"Consumption by manufacturing, construction and non-fuel mining industry"
"Consumption by industries not elsewhere specified"
"Consumption by industries not elsewhere specified"
julia>
I'm having some bugs when trying to access the column of a DataFrame in the extension's Julia REPL. The error is not present in a non-extension REPL. See below:
Julia-REPL from extension
Normal Julia REPL in terminal