Closed mdos98 closed 6 months ago
0.9.5
archlinux 6.7.4-arch1-1
log_level = vim.log.levels.DEBUG
Log file: /home/mhdos/.local/state/nvim/conform.log 15:16:03[INFO] Run dart_format on /home/mhdos/file.dart 15:16:03[TRACE] Input lines: { "void main() { print('hello world'); }" } 15:16:03[DEBUG] Run command: { "dart", "format" } 15:16:03[TRACE] Applying formatting to /home/mhdos/file.dart 15:16:03[TRACE] Comparing lines { "void main() { print('hello world'); }" } and { "void main() { print('hello world'); }" } 15:16:03[TRACE] Diff indices {} 15:16:03[TRACE] Applying text edits: {} 15:16:03[TRACE] Done formatting /home/mhdos/file.dart 15:16:03[WARN] Formatter 'dart_format' timeout 15:16:03[INFO] dart_format exited with code 143 15:16:03[DEBUG] dart_format stdout: { "" } 15:16:03[DEBUG] dart_format stderr: { "" }
Formatters for this buffer: dart_format ready (dart) /home/mhdos/.local/sdks/flutter/bin/dart
dart_format does not work.
note: if I manually run dart format file.dart, it works
dart format file.dart
minor (annoyance)
n/a
expected output:
void main() { print('hello world'); }
No response
Looks like it's timing out. Either increase the timeout_ms or run it with async = true
timeout_ms
async = true
Neovim version (nvim -v)
0.9.5
Operating system/version
archlinux 6.7.4-arch1-1
Add the debug logs
log_level = vim.log.levels.DEBUG
and pasted the log contents below.Log file
Log file: /home/mhdos/.local/state/nvim/conform.log 15:16:03[INFO] Run dart_format on /home/mhdos/file.dart 15:16:03[TRACE] Input lines: { "void main() { print('hello world'); }" } 15:16:03[DEBUG] Run command: { "dart", "format" } 15:16:03[TRACE] Applying formatting to /home/mhdos/file.dart 15:16:03[TRACE] Comparing lines { "void main() { print('hello world'); }" } and { "void main() { print('hello world'); }" } 15:16:03[TRACE] Diff indices {} 15:16:03[TRACE] Applying text edits: {} 15:16:03[TRACE] Done formatting /home/mhdos/file.dart 15:16:03[WARN] Formatter 'dart_format' timeout 15:16:03[INFO] dart_format exited with code 143 15:16:03[DEBUG] dart_format stdout: { "" } 15:16:03[DEBUG] dart_format stderr: { "" }
Formatters for this buffer: dart_format ready (dart) /home/mhdos/.local/sdks/flutter/bin/dart
Describe the bug
dart_format does not work.
note: if I manually run
dart format file.dart
, it worksWhat is the severity of this bug?
minor (annoyance)
Steps To Reproduce
n/a
Expected Behavior
expected output:
Minimal example file
void main() { print('hello world'); }
Minimal init.lua
No response
Additional context
No response