Comments (4)
I am able to reproduce this locally.
Sample errors are:
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.
Still scratching my head....
from flutter.
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.
from flutter.
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?
from flutter.
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 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.
from flutter.
Related Issues (20)
- Execution failed for task ':app:minifyDevReleaseWithR8' HOT 4
- Stale data on bots is interfering with the GN step HOT 7
- linux-45 lost external connection phone device. HOT 1
- The `flutter update-packages --force-upgrade` command fails and it can't find `_macros` package HOT 1
- Inconsistent Height Rendering for Korean Letters in Text Widgets HOT 2
- Crash on Google Sign-In on iOS HOT 1
- Flutter for web crashes on older machines, iPhone, iPads HOT 8
- [Impeller] Commands with no vertex buffer but non-zero vertex counts are incorrectly dropped.
- `showSemanticsDebugger` to `true` is not working on Android or web HOT 2
- [et] no-op builds when a target is specified take ~10 to 15 seconds instead of < 0.1 seconds with Ninja directly. HOT 3
- [et] Allow specifying job counts on RBE jobs. HOT 1
- win-1 marked as dead. HOT 1
- mac-29 lost external connection phone device. HOT 1
- [Impeller] create explicit skia variants for benchmarks HOT 1
- [iOS] App crashes on start with following error "/Runner.app/Frameworks/shared_preferences_foundation.framework/shared_preferences_foundation (built for iOS 17.0 which is newer than running OS)" HOT 3
- flutter-devicelab-mac-3 is quarantined `Not enough free disk space on /. 204739.1mib < 204800.0mib` HOT 6
- [Flutter 3.19.6][iOS] autocorrect highlight stuck on screen HOT 1
- linux-16, 19, 22 & 51 are dead. HOT 1
- linux-52 is dead. HOT 1
- mac-26 lost external connection phone device. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.