Skip to content

Cyclic symlinks are followed indefinitely until crashing #1728

@fzyzcjy

Description

@fzyzcjy

Hi thanks for the lib! When I use build_runner it has bugs as follows. It just follows .symlinks and .dart_tool folder infinitely, then filename is too long.

But IMHO, build_runner should not look at symlinks and dart_tool folders!

flutter pub get && flutter packages pub run build_runner watch --delete-conflicting-outputs 
Running "flutter pub get" in proj...                                3.0s
[INFO] Generating build script...
[INFO] Generating build script completed, took 377ms

[WARNING] Deleted previous snapshot due to missing asset graph.
[INFO] Creating build script snapshot......
[INFO] Creating build script snapshot... completed, took 9.4s

[INFO] There was output on stdout while compiling the build script snapshot, run with `--verbose` to see it (you will need to run a `clean` first to re-snapshot).

[INFO] Setting up file watchers...
[INFO] Setting up file watchers completed, took 12ms

[INFO] Waiting for all file watchers to be ready...
[SEVERE] Error from directory watcher for package:yplusplus

If you see this consistently then it is recommended that you enable the polling file watcher with --use-polling-watcher.


You have hit a bug in build_runner
Please file an issue with reproduction steps at https://github.com/dart-lang/build/issues


FileSystemException: Directory listing failed, path = '/Users/tom/QAPMain/Development/rzzsdxx_frontend/proj/ios/.symlinks/plugins/vision_utils/example/ios/.symlinks/plugins/vision_utils/.dart_tool/build/098d3ee73e6cc294616d3a2e2c3c81ad/error_cache/vision_utils/0/example/ios/.symlinks/plugins/vision_utils/.dart_tool/build/098d3ee73e6cc294616d3a2e2c3c81ad/error_cache/vision_utils/0/example/ios/.symlinks/plugins/vision_utils/.dart_tool/build/098d3ee73e6cc294616d3a2e2c3c81ad/error_cache/vision_utils/0/example/ios/.symlinks/plugins/vision_utils/.dart_tool/build/098d3ee73e6cc294616d3a2e2c3c81ad/error_cache/vision_utils/0/example/ios/.symlinks/plugins/vision_utils/.dart_tool/build/098d3ee73e6cc294616d3a2e2c3c81ad/error_cache/vision_utils/0/example/ios/.symlinks/plugins/vision_utils/.dart_tool/build/098d3ee73e6cc294616d3a2e2c3c81ad/error_cache/vision_utils/1/example/ios/.symlinks/plugins/vision_utils/.dart_tool/build/098d3ee73e6cc294616d3a2e2c3c81ad/error_cache/vision_utils/0/example/ios/.symlinks/plugins/vision_utils/example/ios/.symlinks/plugins/sentry_flutter/test/mo' (OS Error: File name too long, errno = 63)
Instance of '_StringStackTrace'

pub finished with exit code 1

i.e.

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions