stan-dev / stan-dev/rstan

Syntax error in '/var/folders/q4/gvrdsnj94vl527nfhj25rxh40000gn/T/RtmpAbftu1/model-cede3aff1ad3.stan', line 10, column 7 to column 8, parsing error:

Open
#1,119 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
1.1k
Forks
266
Avg merge
2h 56m
Merged PRs (30d)
1

Description

Dear @maverickg,

Please help me out, thanks.

cmdstan_model(stan_f.name)
Compiling Stan program...
Syntax error in '/var/folders/q4/gvrdsnj94vl527nfhj25rxh40000gn/T/RtmpAbftu1/model-cede3aff1ad3.stan', line 10, column 7 to column 8, parsing error:

 8:    real generation_time;
 9:    matrix[N,D] X;
10:    int Y[N,K];
            ^
11:    int Y_sum[N];
12:  }

";" expected after variable declaration.

make: *** [/var/folders/q4/gvrdsnj94vl527nfhj25rxh40000gn/T/RtmpAbftu1/model-cede3aff1ad3.hpp] Error 1

Error: An error occured during compilation! See the message above for more information.
In addition: Warning messages:
1: In get(results[[i]], packages[[i]]) :
restarting interrupted promise evaluation
2: In get(results[[i]], packages[[i]]) :
internal error -3 in R_decompress1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the generated Stan snippet around line 10 and the cmdstan_model(stan.f.name) call, then check the relevant RStan and Stan versions. Reproduce the compilation failure and identify a documented, verifiable cause or correction for the reported parsing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.