Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why the compile goes wrong? #133

Open
ly8073 opened this issue Aug 26, 2021 · 0 comments
Open

why the compile goes wrong? #133

ly8073 opened this issue Aug 26, 2021 · 0 comments

Comments

@ly8073
Copy link

ly8073 commented Aug 26, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant