scala - sbt run fails whereas sbt package succeeds -




please have problem running chisel code. when sbt package, success. when sbt run, fails , following error: code error

i suspected data not loaded correctly array not initialized or forgot initialize array, arrays initialised.

so please question correct way load data in chisel?

this did:

val data = io.source.fromfile(args(0)).getlines().map(_.split(",").map(_.todouble))                 .zipwithindex                 .map{ case(data, id) => (id.tolong, data)}.toarray  

where args array of strings defined such

def main(args: array[string]): unit = {... 

looking forward responses
thank you!

looks exception when you're trying access args(0) (if that's on line 24 in main.scala).

when sbt run you're not passing command line arguments main. add args after sbt run this: sbt run foo bar





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -