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

Regression in 0.4.2 causing indentTemplate: false to break dprint #4

Closed
voool opened this issue Sep 26, 2022 · 3 comments
Closed

Regression in 0.4.2 causing indentTemplate: false to break dprint #4

voool opened this issue Sep 26, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@voool
Copy link

voool commented Sep 26, 2022

Hello,

I noticed this error output when I was using v0.4.2 with indentTemplate: false. This went away when I downgraded to 0.4.1 and the option worked as expected.

yarn dprint fmt                         [18:02]
yarn run v1.22.19
$ .....node_modules/.bin/dprint fmt
Critical error formatting ....AComponent.vue. Cannot continue. Message: Originally panicked in dprint-plugin-vue, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[364]:0x207fe)
    at rust_panic (<module>[360]:0x207b5)
    at std::panicking::rust_panic_with_hook::h47a0e203360b6c10 (<module>[355]:0x204fd)
    at std::panicking::begin_panic_handler::{{closure}}::h888144d5e9a03cec (<module>[348]:0x1fedd)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h81961607fd97e28e (<module>[347]:0x1fe2c)
    at rust_begin_unwind (<module>[354]:0x203d6)
    at core::panicking::panic_fmt::h4ca53049f45e3264 (<module>[440]:0x26a26)
    at core::str::slice_error_fail::hc8f76ed1263d932a (<module>[458]:0x27a51)
    at dprint_plugin_vue::format::format::h779901301d6afa9b (<module>[169]:0xef4f)
    at format (<module>[136]:0xb3dd)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[364]:0x207fe)
    at rust_panic (<module>[360]:0x207b5)
    at std::panicking::rust_panic_with_hook::h47a0e203360b6c10 (<module>[355]:0x204fd)
    at std::panicking::begin_panic_handler::{{closure}}::h888144d5e9a03cec (<module>[348]:0x1fedd)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h81961607fd97e28e (<module>[347]:0x1fe2c)
    at rust_begin_unwind (<module>[354]:0x203d6)
    at core::panicking::panic_fmt::h4ca53049f45e3264 (<module>[440]:0x26a26)
    at core::str::slice_error_fail::hc8f76ed1263d932a (<module>[458]:0x27a51)
    at dprint_plugin_vue::format::format::h779901301d6afa9b (<module>[169]:0xef4f)
    at format (<module>[136]:0xb3dd)
Had 1 error(s) formatting.
error Command failed with exit code 1.

I can help with a reproducer if need-be. Thanks a bunch for this plugin!

@malobre malobre added the bug Something isn't working label Oct 2, 2022
@malobre
Copy link
Owner

malobre commented Oct 2, 2022

Thanks for the report, I'll have a look asap.

@malobre
Copy link
Owner

malobre commented Nov 7, 2022

Could you check with the latest version (0.5.0) ? I've updated the plugin to the latest version of dprint, this might have fixed the problem.

@voool
Copy link
Author

voool commented Jan 5, 2023

I am unable to replicate this on 0.5.0. Thanks!

@voool voool closed this as completed Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants