stan-dev / stan-mode

Emacs mode for Stan.
GNU General Public License v3.0
72 stars 15 forks source link

Can't indent whole Stan program #49

Closed syclik closed 7 years ago

syclik commented 7 years ago

Using the current master branch, I can't indent a whole file.

Example:

parameters {
    vector[2] y;
}
model {
     y ~ normal(0, 1);
}

When I highlight the whole file and hit tab or M-x indent-region, I get this error:

Wrong type argument: stringp, nil

It happens with the second block in the program. In this case, it's model. I'll try to dig into how to fix this, but if you know where to look, I'll try to get it fixed.

syclik commented 7 years ago

And just like that, the problem is gone. I have no idea what it was, but now I can't reproduce.