<p dir="auto"><strong>EDIT</strong> Probably duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="303488459" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/15293" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/15293/hovercard" href="https://github.com/flutter/flutter/issues/15293">#15293</a></p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Clone <a href="https://github.com/flutter/website">https://github.com/flutter/website</a></li>
<li>Run <code class="notranslate">./tool/travis.sh</code></li>
</ol>
<p dir="auto"><strong>Explanation:</strong> We're analyzing our sample code in CI. The files exist in file structures that aren't real flutter projects (<a href="https://github.com/flutter/website/tree/master/_includes/code">example</a>). This worked well until very recently but now all our builds fail.</p>
<p dir="auto">I can work around this but it would be great to have actual Flutter analysis run on these standalone files.</p>
<h2 dir="auto">Logs from running the above command</h2>
<p dir="auto">Flutter crash report; please file at <a href="https://github.com/flutter/flutter/issues">https://github.com/flutter/flutter/issues</a>.</p>
<h3 dir="auto">command</h3>
<p dir="auto">flutter analyze _includes/code/animation/animate1/main.dart</p>
<h3 dir="auto">exception</h3>
<p dir="auto">ProcessException: ProcessException: No such file or directory<br>
Command: /usr/bin/xcodebuild -project /Users/filiph/dev/flutter-website/ios/Runner.xcodeproj -target Runner -showBuildSettings</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0      _ProcessImpl._runAndWait (dart:io-patch/process_patch.dart:485)
#1      _runNonInteractiveProcessSync (dart:io-patch/process_patch.dart:631)
#2      Process.runSync (dart:io-patch/process_patch.dart:66)
#3      LocalProcessManager.runSync (package:process/src/interface/local_process_manager.dart:83)
#4      _runWithLoggingSync (package:flutter_tools/src/base/process.dart:318)
#5      runCheckedSync (package:flutter_tools/src/base/process.dart:277)
#6      XcodeProjectInterpreter.getBuildSettings (package:flutter_tools/src/ios/xcodeproj.dart:99)
#7      CocoaPods.setupPodfile (package:flutter_tools/src/ios/cocoapods.dart:114)
#8      injectPlugins (package:flutter_tools/src/plugins.dart:246)
#9      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:62)
#10     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:278)
&lt;asynchronous suspension&gt;
#11     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:228)
&lt;asynchronous suspension&gt;
#12     CommandRunner.runCommand (package:args/command_runner.dart:194)
&lt;asynchronous suspension&gt;
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:286)
&lt;asynchronous suspension&gt;
#14     CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109)
#15     new Future.sync (dart:async/future.dart:222)
#16     CommandRunner.run (package:args/command_runner.dart:109)
#17     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:166)
#18     run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:90)
&lt;asynchronous suspension&gt;
#19     AppContext._run (package:flutter_tools/src/base/context.dart:76)
&lt;asynchronous suspension&gt;
#20     AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66)
#21     _rootRun (dart:async/zone.dart:1126)
#22     _CustomZone.run (dart:async/zone.dart:1023)
#23     runZoned (dart:async/zone.dart:1501)
#24     AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#25     run (package:flutter_tools/runner.dart:61)
&lt;asynchronous suspension&gt;
#26     main (package:flutter_tools/executable.dart:48)
&lt;asynchronous suspension&gt;
#27     main (file:///Users/filiph/dev/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#28     _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#29     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)"><pre class="notranslate"><code class="notranslate">#0      _ProcessImpl._runAndWait (dart:io-patch/process_patch.dart:485)
#1      _runNonInteractiveProcessSync (dart:io-patch/process_patch.dart:631)
#2      Process.runSync (dart:io-patch/process_patch.dart:66)
#3      LocalProcessManager.runSync (package:process/src/interface/local_process_manager.dart:83)
#4      _runWithLoggingSync (package:flutter_tools/src/base/process.dart:318)
#5      runCheckedSync (package:flutter_tools/src/base/process.dart:277)
#6      XcodeProjectInterpreter.getBuildSettings (package:flutter_tools/src/ios/xcodeproj.dart:99)
#7      CocoaPods.setupPodfile (package:flutter_tools/src/ios/cocoapods.dart:114)
#8      injectPlugins (package:flutter_tools/src/plugins.dart:246)
#9      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:62)
#10     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:278)
&lt;asynchronous suspension&gt;
#11     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:228)
&lt;asynchronous suspension&gt;
#12     CommandRunner.runCommand (package:args/command_runner.dart:194)
&lt;asynchronous suspension&gt;
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:286)
&lt;asynchronous suspension&gt;
#14     CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109)
#15     new Future.sync (dart:async/future.dart:222)
#16     CommandRunner.run (package:args/command_runner.dart:109)
#17     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:166)
#18     run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:90)
&lt;asynchronous suspension&gt;
#19     AppContext._run (package:flutter_tools/src/base/context.dart:76)
&lt;asynchronous suspension&gt;
#20     AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66)
#21     _rootRun (dart:async/zone.dart:1126)
#22     _CustomZone.run (dart:async/zone.dart:1023)
#23     runZoned (dart:async/zone.dart:1501)
#24     AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#25     run (package:flutter_tools/runner.dart:61)
&lt;asynchronous suspension&gt;
#26     main (package:flutter_tools/executable.dart:48)
&lt;asynchronous suspension&gt;
#27     main (file:///Users/filiph/dev/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#28     _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#29     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)
</code></pre></div>
<h3 dir="auto">flutter doctor</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel master, v0.1.3-pre.19, on Mac OS X 10.13.3 17D102, locale en-US)
    • Flutter version 0.1.3-pre.19 at /Users/filiph/dev/flutter
    • Framework revision 2337ddef0b (2 days ago), 2018-03-06 22:03:42 -0800
    • Engine revision 24cf8ebd86
    • Dart version 2.0.0-dev.33.0.flutter-b5b8080b2c

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
    • Android SDK at /Users/filiph/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.4.0

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Community Edition (version 2017.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 20.0.3
    • Dart plugin version 173.4127.31

[✓] VS Code (version 1.20.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.9.2

[!] Connected devices
    ! No devices available

! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel master, v0.1.3-pre.19, on Mac OS X 10.13.3 17D102, locale en-US)
    • Flutter version 0.1.3-pre.19 at /Users/filiph/dev/flutter
    • Framework revision 2337ddef0b (2 days ago), 2018-03-06 22:03:42 -0800
    • Engine revision 24cf8ebd86
    • Dart version 2.0.0-dev.33.0.flutter-b5b8080b2c

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
    • Android SDK at /Users/filiph/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.4.0

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Community Edition (version 2017.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 20.0.3
    • Dart plugin version 173.4127.31

[✓] VS Code (version 1.20.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.9.2

[!] Connected devices
    ! No devices available

! Doctor found issues in 1 category.
</code></pre></div>
<p dir="auto">The flutter/website build is broken on Travis. It looks to be broken by something external (the change that triggered the build is a single character change in the website repo). The build clones the latest <code class="notranslate">flutter/flutter</code> <code class="notranslate">master</code> code and runs <code class="notranslate">flutter analyze</code> on some code.</p>
<p dir="auto">The last working build was after <a href="https://github.com/flutter/website/commit/b3a32da3e9e37ec5576147301f734aa0c5f67f57">this commit</a> (to website) and analyzed fine:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using Dart version:
Dart VM version: 2.0.0-dev.32.0.flutter-ee15c8eb68 (Thu Mar 1 22:39:39 2018 +0000) on &quot;linux_x64&quot;
Running &quot;flutter packages get&quot; in website...
Run flutter packages get on _includes/code/animation/animate1
Running &quot;flutter packages get&quot; in animate1...
Run flutter analyze on _includes/code/animation/animate1
Analyzing /home/travis/build/flutter/website/_includes/code/animation/animate1/main.dart...
No issues found!
Ran in 6.0s"><pre lang="text" class="notranslate"><code class="notranslate">Using Dart version:
Dart VM version: 2.0.0-dev.32.0.flutter-ee15c8eb68 (Thu Mar 1 22:39:39 2018 +0000) on "linux_x64"
Running "flutter packages get" in website...
Run flutter packages get on _includes/code/animation/animate1
Running "flutter packages get" in animate1...
Run flutter analyze on _includes/code/animation/animate1
Analyzing /home/travis/build/flutter/website/_includes/code/animation/animate1/main.dart...
No issues found!
Ran in 6.0s
</code></pre></div>
<p dir="auto">Then when <a href="https://github.com/flutter/website/commit/c81b7c2c5fc674f94c518153e2f2d8d9d86c1454">this commit</a> (to website) was pushed and flutter cloned for its build, it failed with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using Dart version:
Dart VM version: 2.0.0-dev.33.0.flutter-b5b8080b2c (Tue Mar 6 14:14:54 2018 +0000) on &quot;linux_x64&quot;
Running &quot;flutter packages get&quot; in website...
Run flutter packages get on _includes/code/animation/animate1
Running &quot;flutter packages get&quot; in animate1...
Run flutter analyze on _includes/code/animation/animate1
Analyzing /home/travis/build/flutter/website/_includes/code/animation/animate1/main.dart...
No dart files found at: /home/travis/build/flutter/website/_includes/code/animation/animate1/main.dart
(Ran in 0.3s)
The command &quot;./tool/travis.sh&quot; exited with 3."><pre lang="text" class="notranslate"><code class="notranslate">Using Dart version:
Dart VM version: 2.0.0-dev.33.0.flutter-b5b8080b2c (Tue Mar 6 14:14:54 2018 +0000) on "linux_x64"
Running "flutter packages get" in website...
Run flutter packages get on _includes/code/animation/animate1
Running "flutter packages get" in animate1...
Run flutter analyze on _includes/code/animation/animate1
Analyzing /home/travis/build/flutter/website/_includes/code/animation/animate1/main.dart...
No dart files found at: /home/travis/build/flutter/website/_includes/code/animation/animate1/main.dart
(Ran in 0.3s)
The command "./tool/travis.sh" exited with 3.
</code></pre></div>