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

unahndled exception utf-8 #15

Open
fredgrott opened this issue Aug 31, 2021 · 4 comments
Open

unahndled exception utf-8 #15

fredgrott opened this issue Aug 31, 2021 · 4 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed waiting for customer response We need more information about issue

Comments

@fredgrott
Copy link

Unhandled exception:
FileSystemException: Failed to decode data using encoding 'utf-8', path = 'D:\fredgrttsstuff\GithubProjects\code_with_me\cookbook\bootsttrap_fulltest\reports\analyze_report.txt'
#0 _File._tryDecode (dart:io/file_impl.dart:564:7)
#1 _File.readAsStringSync (dart:io/file_impl.dart:584:7)
#2 _File.readAsLinesSync (dart:io/file_impl.dart:590:36)
#3 parseAnalyzerReport (package:analyzer_formatter/src/analyzer_result_parser.dart:24:18)
#4 main (file:///D:/fluttersdk/myfluttersdk/flutter/.pub-cache/hosted/pub.dartlang.org/analyzer_formatter-0.2.0/bin/analyzer_formatter.dart:43:26)
#5 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:281:32)
#6 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
pub finished with exit code 255
PS D:\fredgrttsstuff\GithubProjects\code_with_me\cookbook\bootsttrap_fulltest>

@fartem fartem added the waiting for customer response We need more information about issue label Aug 31, 2021
@fartem
Copy link
Contributor

fartem commented Aug 31, 2021

@fredgrott hi. Can you describe your problem?

@fredgrott
Copy link
Author

I fails on the standard output of analyzer, for example:

`Analyzing devops_lint_metrics...

info - Prefer declaring const constructors on @immutable classes - lib\presentation\features\app\create_screen_for.dart:16:3 - prefer_const_constructors_in_immutables
info - Avoid defining unused parameters in constructors - lib\presentation\features\app\create_screen_for.dart:17:5 - avoid_unused_constructor_parameters
info - Avoid defining unused parameters in constructors - lib\presentation\features\app\create_screen_for.dart:18:5 - avoid_unused_constructor_parameters
info - Use ColoredBox - lib\presentation\features\color\color_palettes_screen.dart:349:12 - use_colored_box
info - Prefer declaring const constructors on @immutable classes - lib\presentation\features\color\scheme_label.dart:10:3 - prefer_const_constructors_in_immutables
info - Avoid defining unused parameters in constructors - lib\presentation\features\color\scheme_label.dart:10:16 - avoid_unused_constructor_parameters
info - Prefer declaring const constructors on @immutable classes - lib\presentation\features\color\scheme_view.dart:11:3 - prefer_const_constructors_in_immutables
info - Avoid defining unused parameters in constructors - lib\presentation\features\color\scheme_view.dart:11:15 - avoid_unused_constructor_parameters
info - Avoid positional boolean parameters - lib\presentation\features\components\component_screen.dart:92:3 - avoid_positional_boolean_parameters
info - Prefer final for variable declarations if they are not reassigned - lib\presentation\features\elevation\elevation_screen.dart:23:5 - prefer_final_locals
info - Prefer final for variable declarations if they are not reassigned - lib\presentation\features\elevation\elevation_screen.dart:24:5 - prefer_final_locals
info - Sort pub dependencies alphabetically - pubspec.yaml:41:3 - sort_pub_dependencies
info - Sort pub dependencies alphabetically - pubspec.yaml:47:3 - sort_pub_dependencies

`

Wil cause your tool to fail.

tool error output indicates that logic to decode utl-8 path is faulty

@fredgrott
Copy link
Author

note did you assume format of utf-8 paths with platforms in mind?

@fartem fartem added bug Something isn't working and removed waiting for customer response We need more information about issue labels Nov 14, 2022
@fartem
Copy link
Contributor

fartem commented Nov 14, 2022

@fredgrott. what OS do you use?

@fartem fartem self-assigned this Apr 27, 2023
@fartem fartem added good first issue Good for newcomers help wanted Extra attention is needed waiting for customer response We need more information about issue labels Apr 27, 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 good first issue Good for newcomers help wanted Extra attention is needed waiting for customer response We need more information about issue
Projects
None yet
Development

No branches or pull requests

2 participants