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

Fails to run on repos with Git's fsmonitor enabled #1440

Open
lishaduck opened this issue Feb 14, 2025 · 1 comment
Open

Fails to run on repos with Git's fsmonitor enabled #1440

lishaduck opened this issue Feb 14, 2025 · 1 comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@lishaduck
Copy link

lishaduck commented Feb 14, 2025

I have fsmonitor set in my dotfiles to speed up Git:
https://github.com/lishaduck/dotfiles/blob/5d6994160a6d410474c60b9e5d5848c86b80c57c/git/.gitconfig#L16

When I try to run dart run pana ., I get the following:

2025-02-14 14:22:09.566534 WARNING: Flutter SDK path was not specified, pana will use the default Dart SDK to run `dart analyze` on Flutter packages.
2025-02-14 14:22:09.575145 INFO: Running `dart --version`...
2025-02-14 14:22:09.703335 INFO: Running `flutter --no-version-check --version --machine`...
2025-02-14 14:22:09.932470 INFO: Running `git rev-parse --show-toplevel`...
2025-02-14 14:22:10.950056 SHOUT: Problem analyzing .
                                  FileSystemException: Cannot copy file to '/private/var/folders/gb/r30m03h93bg02c0b2g6qd4br0000gp/T/pana_1zY4KG/.git/fsmonitor--daemon.ipc', path = '/Users/<user>/Developer/legacy_checks/.git/fsmonitor--daemon.ipc' (OS Error: Operation not supported, errno = 45)
                                  #0      _checkForErrorResponse (dart:io/common.dart:58:9)
                                  #1      _File.copy.<anonymous closure> (dart:io/file_impl.dart:409:7)
                                  #2      _rootRunUnary (dart:async/zone.dart:1538:47)
                                  #3      _CustomZone.runUnary (dart:async/zone.dart:1429:19)
                                  <asynchronous suspension>
                                  #4      copyDir (package:pana/src/utils.dart:146:7)
                                  <asynchronous suspension>
                                  #5      PackageAnalyzer.inspectDir.<anonymous closure>.<anonymous closure> (package:pana/src/package_analyzer.dart:103:11)
                                  <asynchronous suspension>
                                  #6      withTempDir (package:pana/src/utils.dart:134:12)
                                  <asynchronous suspension>
                                  #7      main (file:///Users/<user>/.pub-cache/hosted/pub.dev/pana-0.22.18/bin/pana.dart:225:19)
                                  <asynchronous suspension>
@isoos isoos added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Feb 14, 2025
@isoos
Copy link
Collaborator

isoos commented Feb 14, 2025

@lishaduck: Thanks for reporting! This is the first time I see copying being blocked like that, we shall filter out that file (or maybe better skip the entire .git directory).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants