Click here to register.

Comments

Flat
WARNING: Array(::Type{T}, m::Int) where T is deprecated, use Array{T}(m) instead.
User: birdieagle
Date: 11/15/2017 5:26 pm
Views: 669
Rating: 0

Hello,

I have this error to get a wlist file by using:

julia ../bin/prompts2wlist.jl prompts.txt wlist

the result is:
WARNING: Array(::Type{T}, m::Int) where T is deprecated, use Array{T}(m) instead.
Stacktrace:
 [1] depwarn at .\deprecated.jl:70
 [2] Array(::Type{String}, ::Int32) at .\deprecated.jl:57
 [3] prompts2wlist(::String, ::String) at E:\voxforge\bin\prompts2wlist.jl:39
 [4] include_from_node1 at .\loading.jl:576
 [5] include at .\sysimg.jl:14
 [6] process_options at .\client.jl:305
 [7] _start at .\client.jl:371
while loading E:\voxforge\bin\prompts2wlist.jl, in expression starting on line 58
I'm using Cygwin compiler in Windows 10. Do you guys have any idea on how to solve this problem? Thank you!
Vesa
Re: WARNING: Array(::Type{T}, m::Int) where T is deprecated, use Array{T}(m) instead.
User: kmaclean
Date: 11/16/2017 9:32 am
Views: 0
Rating: 0

>I'm using Cygwin compiler in Windows 10.

try running the julia scripts from the windows command line

Re: WARNING: Array(::Type{T}, m::Int) where T is deprecated, use Array{T}(m) instead.
User: birdieagle
Date: 11/22/2017 11:07 pm
Views: 1
Rating: 0

Thank you very much! 

The problem was solved.. I changed the format of the array, that the error suggested, and it worked!

Vesa

Re: WARNING: Array(::Type{T}, m::Int) where T is deprecated, use Array{T}(m) instead.
User: prithviraj
Date: 3/12/2018 1:12 am
Views: 3
Rating: 0

plz suggest me,What exact the line in "prompts2wlist.jl" changed , so that you will not get that warning message.

I dont know the programming in Julia.

Thanks 

Prithviraj

 

Re: WARNING: Array(::Type{T}, m::Int) where T is deprecated, use Array{T}(m) instead.
User: kmaclean
Date: 3/12/2018 7:18 am
Views: 0
Rating: 0

>,What exact the line in "prompts2wlist.jl" changed , so that you will not get

>that warning message.

stacktrace says line 39:

[3] prompts2wlist(::String, ::String) at E:\voxforge\bin\prompts2wlist.jl:39

therefore change line 39 from:

    wlist_arr=Array(String,length(wordhash))

to:

    wlist_arr=Array{String}(length(wordhash))

See Julia Arrays documentation for more information.

Re: WARNING: Array(::Type{T}, m::Int) where T is deprecated, use Array{T}(m) instead.
User: prithviraj
Date: 3/22/2018 11:18 am
Views: 1
Rating: 0

Thanks kmaclean.

Now it was working fine.

Prithviraj

PreviousNext