How to correctly import tsv-utilites functions?

p.shkadzko p.shkadzko at gmail.com
Tue Apr 14 19:34:40 UTC 2020


I need to use "bufferedByLine" function from "tsv-utilities" 
package located: 
https://github.com/eBay/tsv-utils/blob/master/common/src/tsv_utils/common/utils.d

I have the following dub config

/+ dub.sdl:
     name "demo"
     dependency "tsv-utils" version="~>1.6.0"
     dflags-ldc "-mcpu=native"
     targetType "executable"
+/

Now, in the script file I am trying to

import tsv_utils.common.utils: bufferedByLine;

and this fails "Error: module utils is in file 
'tsv_utils\common\utils.d' which cannot be read"

tsv-utils do not have a "source" dir which I guess is needed for 
the imports to work correctly. Maybe it's not supposed to be used 
this way?



More information about the Digitalmars-d-learn mailing list