Skip to content

Commit

Permalink
[TEMP] Add verbose logging and only run format test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTup committed Nov 18, 2024
1 parent f1f0748 commit cf989bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pkgs/dart_services/lib/src/analysis.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ class AnalysisServerWrapper {
analysisServer = await AnalysisServer.create(
sdkPath: sdkPath,
serverArgs: serverArgs,
onRead: (str) => print('<== $str'),
onWrite: (str) => print('==> $str'),
);

try {
Expand Down
3 changes: 2 additions & 1 deletion pkgs/dart_services/lib/src/sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ final class Sdk {
}

final flutterBinPath = path.join(flutterSdkPath, 'bin');
final flutterToolPath = path.join(flutterBinPath, 'flutter');
final flutterToolPath = path.join(
flutterBinPath, Platform.isWindows ? 'flutter.bat' : 'flutter');
final dartSdkPath = path.join(flutterSdkPath, 'bin', 'cache', 'dart-sdk');
final dartVersion = _readDartSdkVersionFile(dartSdkPath);

Expand Down
3 changes: 2 additions & 1 deletion pkgs/dart_services/test/server_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ void main() {
print('hello world');
}
''');
});
// ignore: deprecated_member_use, invalid_use_of_do_not_submit_member
}, solo: true);

test('format preserves offset', () async {
final result = await client.format(SourceRequest(
Expand Down

0 comments on commit cf989bc

Please sign in to comment.