Skip to content

textwidth is deprecated warning #1324

@ExpandingMan

Description

@ExpandingMan

I get the following warning when displaying a DataFrame with strings

WARNING: textwidth is deprecated, use Compat.Unicode.textwidth instead.    
Stacktrace:                      
 [1] depwarn(::String, ::Symbol) at ./deprecated.jl:70 
 [2] textwidth(::String, ::Vararg{String,N} where N) at ./deprecated.jl:31
 [3] getmaxwidths(::DataFrames.DataFrame, ::UnitRange{Int64}, ::UnitRange{Int64}, ::Symbol) at /home/expandingman/.julia/v0.6/DataFrames/src/abstractdataframe/show.jl:96
 [4] show(::IOContext{Base.Terminals.TTYTerminal}, ::DataFrames.DataFrame, ::Bool, ::Symbol, ::Bool) at /home/expandingman/.julia/v0.6/DataFrames/src/abstractdataframe/show.jl:450
 [5] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::DataFrames.DataFrame) at ./REPL.jl:122
 [6] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::DataFrames.DataFrame) at ./REPL.jl:125
 [7] display(::DataFrames.DataFrame) at ./multimedia.jl:218               
 [8] eval(::Module, ::Any) at ./boot.jl:235                                                                                                                                                                           [9] print_response(::Base.Terminals.TTYTerminal, ::Any, ::Void, ::Bool, ::Bool, ::Void) at ./REPL.jl:144
 [10] print_response(::Base.REPL.LineEditREPL, ::Any, ::Void, ::Bool, ::Bool) at ./REPL.jl:129                                                                                                                        [11] (::Base.REPL.#do_respond#16{Bool,Base.REPL.##26#36{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:646                                                                                                                                             
 [12] eval(::Module, ::Any) at ./boot.jl:235                                                                                        
 [13] run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at ./LineEdit.jl:1583
 [14] run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at ./REPL.jl:945
 [15] run_repl(::Base.REPL.LineEditREPL, ::Base.##510#511) at ./REPL.jl:180
 [16] _start() at ./client.jl:413                                                                         
while loading no file, in expression starting on line 0       

on 11.2. This seems to come from here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions