You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use the ScalaStan for some work, but when I running the examples,the IDEA told me like this:
I thought it might be something wrong when compiling the model, I can find the model.stan file and model.hpp,and I can use CmdStan to compile them successfully;
My OS is Windows,I guess it may can't compile for windows shell according to the codes. Exception in thread "main" java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.throwException(CoderResult.java:281) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.io.InputStreamReader.read(InputStreamReader.java:184) at java.io.BufferedReader.fill(BufferedReader.java:161) at java.io.BufferedReader.readLine(BufferedReader.java:324) at java.io.BufferedReader.readLine(BufferedReader.java:389) at scala.io.BufferedSource$BufferedLineIterator.hasNext(BufferedSource.scala:70) at scala.collection.Iterator.foreach(Iterator.scala:937) at scala.collection.Iterator.foreach$(Iterator.scala:937) at scala.collection.AbstractIterator.foreach(Iterator.scala:1425) at com.cibo.scalastan.CommandRunner.runCommand(CommandRunner.scala:21) at com.cibo.scalastan.CommandRunner.runCommand$(CommandRunner.scala:18) at com.cibo.scalastan.run.CmdStanCompiler$.runCommand(CmdStanCompiler.scala:20) at com.cibo.scalastan.run.CmdStanCompiler$.runMake(CmdStanCompiler.scala:79) at com.cibo.scalastan.run.CmdStanCompiler$.compile(CmdStanCompiler.scala:155) at com.cibo.scalastan.TransformedModel.compile(TransformedModel.scala:26) at com.cibo.scalastan.StanModel.compile(StanModel.scala:241) at com.cibo.scalastan.StanModel.compile$(StanModel.scala:241) at com.huawei.algtech.ai.stan.MyModel$.compile(MyApp.scala:15) at com.huawei.algtech.ai.stan.MyApp$.delayedEndpoint$com$huawei$algtech$ai$stan$MyApp$1(MyApp.scala:33) at com.huawei.algtech.ai.stan.MyApp$delayedInit$body.apply(MyApp.scala:27) at scala.Function0.apply$mcV$sp(Function0.scala:34) at scala.Function0.apply$mcV$sp$(Function0.scala:34) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App.$anonfun$main$1$adapted(App.scala:76) at scala.collection.immutable.List.foreach(List.scala:388) at scala.App.main(App.scala:76) at scala.App.main$(App.scala:74)
The text was updated successfully, but these errors were encountered:
I tried to use the ScalaStan for some work, but when I running the examples,the IDEA told me like this:
I thought it might be something wrong when compiling the model, I can find the model.stan file and model.hpp,and I can use CmdStan to compile them successfully;
My OS is Windows,I guess it may can't compile for windows shell according to the codes.
Exception in thread "main" java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.throwException(CoderResult.java:281) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.io.InputStreamReader.read(InputStreamReader.java:184) at java.io.BufferedReader.fill(BufferedReader.java:161) at java.io.BufferedReader.readLine(BufferedReader.java:324) at java.io.BufferedReader.readLine(BufferedReader.java:389) at scala.io.BufferedSource$BufferedLineIterator.hasNext(BufferedSource.scala:70) at scala.collection.Iterator.foreach(Iterator.scala:937) at scala.collection.Iterator.foreach$(Iterator.scala:937) at scala.collection.AbstractIterator.foreach(Iterator.scala:1425) at com.cibo.scalastan.CommandRunner.runCommand(CommandRunner.scala:21) at com.cibo.scalastan.CommandRunner.runCommand$(CommandRunner.scala:18) at com.cibo.scalastan.run.CmdStanCompiler$.runCommand(CmdStanCompiler.scala:20) at com.cibo.scalastan.run.CmdStanCompiler$.runMake(CmdStanCompiler.scala:79) at com.cibo.scalastan.run.CmdStanCompiler$.compile(CmdStanCompiler.scala:155) at com.cibo.scalastan.TransformedModel.compile(TransformedModel.scala:26) at com.cibo.scalastan.StanModel.compile(StanModel.scala:241) at com.cibo.scalastan.StanModel.compile$(StanModel.scala:241) at com.huawei.algtech.ai.stan.MyModel$.compile(MyApp.scala:15) at com.huawei.algtech.ai.stan.MyApp$.delayedEndpoint$com$huawei$algtech$ai$stan$MyApp$1(MyApp.scala:33) at com.huawei.algtech.ai.stan.MyApp$delayedInit$body.apply(MyApp.scala:27) at scala.Function0.apply$mcV$sp(Function0.scala:34) at scala.Function0.apply$mcV$sp$(Function0.scala:34) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App.$anonfun$main$1$adapted(App.scala:76) at scala.collection.immutable.List.foreach(List.scala:388) at scala.App.main(App.scala:76) at scala.App.main$(App.scala:74)
The text was updated successfully, but these errors were encountered: