You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux docs_test is failing, closing the tree #147609
dartdoc:stderr: Could not make "/b/s/w/ir/x/w/.pub-cache/bin/snippets" executable (exit code 1):
dartdoc:stderr: chmod: cannot access '/b/s/w/ir/x/w/.pub-cache/bin/snippets': No such file or directory
dartdoc:stderr: error: tool execution failed: Tool "snippet" returned non-zero exit code (1) when run as "/usr/local/google/home/gspencer/code/flutter/bin/cache/dart-sdk/bin/dart pub global run snippets --output-directory=doc/snippets --type=snippet" from /tmp/dartdoc.E0hsd
dartdoc:stderr: Input to snippet was:
dartdoc:stderr:
dartdoc:stderr: Here are some examples of how to create [EdgeInsets] instances:
dartdoc:stderr:
dartdoc:stderr: Typical eight-pixel margin on all sides:
dartdoc:stderr:
dartdoc:stderr: ```dart
dartdoc:stderr: const EdgeInsets.all(8.0)
dartdoc:stderr: ```
dartdoc:stderr: Stderr output was:
dartdoc:stderr: Could not make "/usr/local/google/home/gspencer/.pub-cache/bin/snippets" executable (exit code 1):
dartdoc:stderr: chmod: cannot access '/usr/local/google/home/gspencer/.pub-cache/bin/snippets': No such file or directory
This seems to imply that dartdoc or dart pub run is trying to chmod the executable for snippets, but can't find it. However the file referenced does exist, and is already executable, and if I run it outside of dartdoc, it executes normally.
@sigurdm Is this something you submitted a fix for? This is now a P0 for us, since it's no longer just affecting local hosts, but also affects the build. Did your fix get reverted?
The Flutter Dartdoc script is running a group of dart pub global run snippets commands concurrently. I can reproduce the Cannot open file, path = '.../.pub-cache/bin/snippets' error by running 20 instances of a dart pub global run snippets command concurrently in a shell script.
Reacted by Jonas Finnemann Jensen and Sigurd Meldgaard
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
gspencergoog commentedon Apr 30, 2024
I am able to reproduce this locally.
Sample errors are:
This seems to imply that dartdoc or dart pub run is trying to chmod the executable for snippets, but can't find it. However the file referenced does exist, and is already executable, and if I run it outside of dartdoc, it executes normally.
Still scratching my head....
gspencergoog commentedon May 1, 2024
I've tried to bisect this, and even old revisions (from a few days ago, when it used to work) still fail on my Linux machine.
I've tried reverting to previous version of snippets and the previous version of dartdoc, neither of which fix the problem.
I've also nuked my .pub-cache to make sure it was clean.
gspencergoog commentedon May 1, 2024
Okay, it appears that this is a manifestation of #144408 which purports to be fixed, in this pr https://github.com/dart-lang/pub/pull/3285/files#diff-609b203653065d15282bde9c47cbf5c38885fa92957ce5b89adbf9be5db0b1c8R793 according to the comment in #144408 (comment)
@sigurdm Is this something you submitted a fix for? This is now a P0 for us, since it's no longer just affecting local hosts, but also affects the build. Did your fix get reverted?
jason-simmons commentedon May 1, 2024
I was able to get this to work on my local setup by reverting https://dart.googlesource.com/pub/+/ed20b45589766d6fd135e93460b9e8255ccba519
The Flutter Dartdoc script is running a group of
dart pub global run snippetscommands concurrently. I can reproduce theCannot open file, path = '.../.pub-cache/bin/snippets'error by running 20 instances of adart pub global run snippetscommand concurrently in a shell script.Move docs_test and docs_publish to bringup
Move docs_test and docs_publish to bringup (#147645)
sigurdm commentedon May 2, 2024
Sorry I did not get to the bottom of this today. Still unsure how that PR could cause that failure. Hopefully I'll get further here Monday.
Meanwhile I think avoiding global run when invoking the
snippetspackage perhaps as in #147690 is the way to go.Move snippets package back into flutter repo (#147690)
Fix document generation, eliminate template support from snippets too…
stuartmorgan-g commentedon May 7, 2024
@gspencergoog Should the test be brought back out of bringup now? It looks like it's been green since you landed your PR.
gspencergoog commentedon May 7, 2024
Yes, I was just waiting to see if it would be green.
Revert "Move docs_test and docs_publish to bringup (#147645)" (#147928)
Move snippets package back into flutter repo (flutter#147690)
Fix document generation, eliminate template support from snippets too…
github-actions commentedon May 21, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.