# This page documents known bugs in Dynare stable.
# This page documents known bugs in Dynare stable.
*`perfect_foresight_with_expectation_errors` command used with no `endval`/`endval(learnt_in=1)` block but an `endval(learnt_in=`t`)` block with t>1 may fail to converge if homotopy is needed
*`perfect_foresight_with_expectation_errors` command combined with `homotopy_marginal_linearization_fallback` returns incorrect results (bug fixed in a3f2a3893ad2309ba790d0897de4c56c89912f5e)
*`perfect_foresight_with_expectation_errors` command crashes with `homotopy_marginal_linearization_fallback` option if there are several distinct `shocks` or `endval` blocks with the `learnt_in` option (bug fixed in 85bea5a68bcee16fe3c707c62e34bef56608e056)
*`model_diagnostics` with the `bytecode` option will crash if the static Jacobian is singular (bug fixed in e58c12555798c3cdb1b1bf991502b08b32dcd299)
*`discretionary_policy` with the `noprint` option will crash when encountering a problem instead of continuing (bug not yet fixed, see https://git.dynare.org/Dynare/dynare/-/merge_requests/2349)
* Using the `forecast` command with a model solved at `order=2` with `varexo_det`, Dynare would return uncertainty bands based on a first-order approximation (bug not fixed, see #1940)
* Using the `forecast` command with a model solved at `order=2` with `varexo_det`, Dynare would return uncertainty bands based on a first-order approximation (bug not fixed, see #1940)
* Using `ramsey_model` with models declared as `linear` would crash during preprocessing when there is a lead/lag >1 on endogenous or >0 on exogenous variables (bug fixed in https://git.dynare.org/Dynare/preprocessor/-/commit/7a758f6779e9665d1d0bdb5fb7191af3cccbc5c)
* Using `identification` with the slice sampler would crash if the `slice_initialize_with_mode` was used (bug fixed in bc048b23)
* The particle filter option `resampling_method` was broken (bug fixed in preprocessor@00b041916dea295fa8ef253095e926cd458f1f1b)
* The `output=third` preprocessor option did not work if no computational commands were present in the mod-file (bug fixed in preprocessor@6f4ba00f)
### Low priority bugs that won't be fixed soon:
### Low priority bugs that won't be fixed soon:
* Forecasts are only based on the DSGE-model, not the DSGE-VAR (bug not yet fixed; see #819)
* Forecasts are only based on the DSGE-model, not the DSGE-VAR (bug not yet fixed; see #819)
* The `contemp_reduced_form` option of the `sbvar` command is broken (bug not yet fixed, see #1716)
* The `contemp_reduced_form` option of the `sbvar` command is broken (bug not yet fixed, see #1716)