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

Error indent/outdent mismatch: 2 with multi-line #82

Open
jsf9k opened this issue May 20, 2021 · 2 comments
Open

Error indent/outdent mismatch: 2 with multi-line #82

jsf9k opened this issue May 20, 2021 · 2 comments

Comments

@jsf9k
Copy link

jsf9k commented May 20, 2021

First of all, thanks for providing such a great tool that manages to parse shell syntax correctly 99% of the time. That's no small feat!

I have a case where beautysh appears to do the wrong thing, so I wanted to document it here in case it helps improve the project.

I have a script here that beautysh appears to parse incorrectly. If I remove the @formatter directives here then I get an indent/outdent mismatch: 2 error and beautysh over-indents the rest of the script.

@KindDragon
Copy link

Same for me:

    here_launch=(--tab -e "sh -c 'sleep 4; roslaunch launch_scripts here.launch \
       run_minimal:=${run_minimal} --wait; $SHELL -i'")

error: indent/outdent mismatch: 1.

@diachedelic
Copy link

Here is my minimal reproduction of what I think is the same bug:

#!/bin/bash
if true; then
    x="
    "
fi

error: indent/outdent mismatch: 1.

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

3 participants