Skip to content

Commit

Permalink
chore(debug): add print logger
Browse files Browse the repository at this point in the history
  • Loading branch information
nikaera committed Feb 26, 2024
1 parent 2a88774 commit d2a2843
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/flutter_hooks_lint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 1.0.2

- fixed a bug where Unsupported operation: Cannot extract a file path from a package URI occurred when running dart run custom_lint.
- fixed a bug where `Unsupported operation: Cannot extract a file path from a package URI` occurred when running `dart run custom_lint`.

## 1.0.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class HooksMethodVisitor extends RecursiveAstVisitor<void> {
} else if (methodName.startsWith('use')) {
try {
final filePath = element.librarySource?.uri.toFilePath();
print(element.librarySource?.uri);
if (filePath != null) {
final collection = AnalysisContextCollection(
includedPaths: [filePath],
Expand All @@ -49,7 +50,7 @@ class HooksMethodVisitor extends RecursiveAstVisitor<void> {
onVisitMethodInvocation(node);
}
} catch (e) {
print(e);
print("$e");
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_hooks_lint/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_hooks_lint
description: A lint package providing guidelines for using flutter_hooks in your Flutter widget!
version: 1.0.2
version: 1.0.3
homepage: https://github.com/nikaera/flutter_hooks_lint
repository: https://github.com/nikaera/flutter_hooks_lint
documentation: https://github.com/nikaera/flutter_hooks_lint
Expand Down

0 comments on commit d2a2843

Please sign in to comment.