You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set log_level = vim.log.levels.DEBUG and pasted the log contents below.
Log file
2025-05-2313:13:18[DEBUG] Running formatters on /home/paul/Projects/EFGH/flutter-template/lib/models/example_data.dart: { "dart_format" } 2025-05-23 13:13:18[INFO] Run dart_format on /home/paul/Projects/EFGH/flutter-template/lib/models/example_data.dart 2025-05-23 13:13:18[TRACE] Input lines: { "import 'package:dart_mappable/dart_mappable.dart';", "", "part 'example_data.mapper.dart';", "", "// Annotation to generate the mappers", "@MappableClass(caseStyle: CaseStyle.snakeCase)", "/// Mappable example class", "///", "/// This will generate functions like copyWith", "/// To use itdart run build_runner watchneeds to be run", "class ExampleData with ExampleDataMappable {", " final String uid;", " final String exampleField;", "", " ExampleData({required this.uid, required this.exampleField,});", "}" } 2025-05-23 13:13:18[DEBUG] Run command: { "/home/paul/fvm/default/bin/dart", "format" } 2025-05-23 13:13:18[DEBUG] Run default CWD: /home/paul/Projects/EFGH/flutter-template 2025-05-23 13:13:19[DEBUG] dart_format exited with code 0 2025-05-23 13:13:19[TRACE] Output lines: { "import 'package:dart_mappable/dart_mappable.dart';", "", "part 'example_data.mapper.dart';", "", "// Annotation to generate the mappers", "@MappableClass(caseStyle: CaseStyle.snakeCase)", "/// Mappable example class", "///", "/// This will generate functions like copyWith", "/// To use itdart run build_runner watchneeds to be run", "class ExampleData with ExampleDataMappable {", " final String uid;", " final String exampleField;", "", " ExampleData({required this.uid, required this.exampleField});", "}" } 2025-05-23 13:13:19[TRACE] dart_format stderr: { "" } 2025-05-23 13:13:19[TRACE] Applying formatting to /home/paul/Projects/EFGH/flutter-template/lib/models/example_data.dart 2025-05-23 13:13:19[TRACE] Comparing lines { "import 'package:dart_mappable/dart_mappable.dart';", "", "part 'example_data.mapper.dart';", "", "// Annotation to generate the mappers", "@MappableClass(caseStyle: CaseStyle.snakeCase)", "/// Mappable example class", "///", "/// This will generate functions like copyWith", "/// To use itdart run build_runner watchneeds to be run", "class ExampleData with ExampleDataMappable {", " final String uid;", " final String exampleField;", "", " ExampleData({required this.uid, required this.exampleField,});", "}" } and { "import 'package:dart_mappable/dart_mappable.dart';", "", "part 'example_data.mapper.dart';", "", "// Annotation to generate the mappers", "@MappableClass(caseStyle: CaseStyle.snakeCase)", "/// Mappable example class", "///", "/// This will generate functions like copyWith", "/// To use itdart run build_runner watch` needs to be run", "class ExampleData with ExampleDataMappable {", " final String uid;", " final String exampleField;", "", " ExampleData({required this.uid, required this.exampleField});", "}" }
2025-05-23 13:13:19[TRACE] Diff indices { { 15, 1, 15, 1 } }
2025-05-23 13:13:19[TRACE] Applying text edits: { {
newText = "",
range = {
["end"] = {
character = 61,
line = 14
},
start = {
character = 60,
line = 14
}
}
} }
2025-05-23 13:13:19[TRACE] Done formatting /home/paul/Projects/EFGH/flutter-template/lib/models/example_data.dart
Describe the bug
When calling dart format from within conform (or with the provided debug script through vim.system) the options set in analysis_options.yaml are ignored. The options are picked up when the formatter is run directly from the command line.
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
Have analysis_options.yaml file in cwd
nvim -u repro.lua example_file.dart
Run the formatter
Comma will be removed instead of splitting the lines
Expected Behavior
The arguments should be split up into two lines because of the trailing comma, instead the comma is dropped.
Uh oh!
There was an error while loading. Please reload this page.
Neovim version (nvim -v)
NVIM v0.11.1
Operating system/version
Linux arch 6.14.6-arch1-1
Read debugging tips
Add the debug logs
log_level = vim.log.levels.DEBUG
and pasted the log contents below.Log file
2025-05-23
13:13:18[DEBUG] Running formatters on /home/paul/Projects/EFGH/flutter-template/lib/models/example_data.dart: { "dart_format" } 2025-05-23 13:13:18[INFO] Run dart_format on /home/paul/Projects/EFGH/flutter-template/lib/models/example_data.dart 2025-05-23 13:13:18[TRACE] Input lines: { "import 'package:dart_mappable/dart_mappable.dart';", "", "part 'example_data.mapper.dart';", "", "// Annotation to generate the mappers", "@MappableClass(caseStyle: CaseStyle.snakeCase)", "/// Mappable example class", "///", "/// This will generate functions like copyWith", "/// To use it
dart run build_runner watchneeds to be run", "class ExampleData with ExampleDataMappable {", " final String uid;", " final String exampleField;", "", " ExampleData({required this.uid, required this.exampleField,});", "}" } 2025-05-23 13:13:18[DEBUG] Run command: { "/home/paul/fvm/default/bin/dart", "format" } 2025-05-23 13:13:18[DEBUG] Run default CWD: /home/paul/Projects/EFGH/flutter-template 2025-05-23 13:13:19[DEBUG] dart_format exited with code 0 2025-05-23 13:13:19[TRACE] Output lines: { "import 'package:dart_mappable/dart_mappable.dart';", "", "part 'example_data.mapper.dart';", "", "// Annotation to generate the mappers", "@MappableClass(caseStyle: CaseStyle.snakeCase)", "/// Mappable example class", "///", "/// This will generate functions like copyWith", "/// To use it
dart run build_runner watchneeds to be run", "class ExampleData with ExampleDataMappable {", " final String uid;", " final String exampleField;", "", " ExampleData({required this.uid, required this.exampleField});", "}" } 2025-05-23 13:13:19[TRACE] dart_format stderr: { "" } 2025-05-23 13:13:19[TRACE] Applying formatting to /home/paul/Projects/EFGH/flutter-template/lib/models/example_data.dart 2025-05-23 13:13:19[TRACE] Comparing lines { "import 'package:dart_mappable/dart_mappable.dart';", "", "part 'example_data.mapper.dart';", "", "// Annotation to generate the mappers", "@MappableClass(caseStyle: CaseStyle.snakeCase)", "/// Mappable example class", "///", "/// This will generate functions like copyWith", "/// To use it
dart run build_runner watchneeds to be run", "class ExampleData with ExampleDataMappable {", " final String uid;", " final String exampleField;", "", " ExampleData({required this.uid, required this.exampleField,});", "}" } and { "import 'package:dart_mappable/dart_mappable.dart';", "", "part 'example_data.mapper.dart';", "", "// Annotation to generate the mappers", "@MappableClass(caseStyle: CaseStyle.snakeCase)", "/// Mappable example class", "///", "/// This will generate functions like copyWith", "/// To use it
dart run build_runner watch` needs to be run", "class ExampleData with ExampleDataMappable {", " final String uid;", " final String exampleField;", "", " ExampleData({required this.uid, required this.exampleField});", "}" }2025-05-23 13:13:19[TRACE] Diff indices { { 15, 1, 15, 1 } }
2025-05-23 13:13:19[TRACE] Applying text edits: { {
newText = "",
range = {
["end"] = {
character = 61,
line = 14
},
start = {
character = 60,
line = 14
}
}
} }
2025-05-23 13:13:19[TRACE] Done formatting /home/paul/Projects/EFGH/flutter-template/lib/models/example_data.dart
Describe the bug
When calling dart format from within conform (or with the provided debug script through vim.system) the options set in analysis_options.yaml are ignored. The options are picked up when the formatter is run directly from the command line.
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
Expected Behavior
The arguments should be split up into two lines because of the trailing comma, instead the comma is dropped.
Minimal example file
Minimal init.lua
Additional context
analysis_options.yaml
The text was updated successfully, but these errors were encountered: