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

[tool_crash] FileSystemException: Cannot open file, OS Error: Cannot find the specified file., errno = 2 #76479

Open
markbrutx opened this issue Feb 21, 2021 · 8 comments
Labels
c: crash Stack traces logged to the console P2 Important issues not at the top of the work list team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels. triaged-tool Triaged by Flutter Tool team

Comments

@markbrutx
Copy link

Command

flutter create --ios-language swift --android-language kotlin .

Steps to Reproduce

  1. ...
  2. ...
  3. ...

Logs

FileSystemException: Cannot open file, OS Error: Не удается найти указанный файл.
, errno = 2

#0      _File.throwIfError (dart:io/file_impl.dart:635:7)
#1      _File.openSync (dart:io/file_impl.dart:479:5)
#2      _File.readAsBytesSync (dart:io/file_impl.dart:539:18)
#3      _File.readAsStringSync (dart:io/file_impl.dart:584:18)
#4      ForwardingFile.readAsStringSync (package:file/src/forwarding/forwarding_file.dart:97:16)
#5      ForwardingFile.readAsStringSync (package:file/src/forwarding/forwarding_file.dart:97:16)
#6      CreateCommand._computeTemplateManifest (package:flutter_tools/src/commands/create.dart:296:37)
#7      CreateCommand.templateManifest (package:flutter_tools/src/commands/create.dart:282:58)
#8      CreateCommand._renderTemplate (package:flutter_tools/src/commands/create.dart:796:25)
#9      CreateCommand._generateApp (package:flutter_tools/src/commands/create.dart:671:29)
#10     CreateCommand.runCommand (package:flutter_tools/src/commands/create.dart:436:37)
#11     _rootRunUnary (dart:async/zone.dart:1198:47)
#12     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#13     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#14     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#15     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#16     Future._completeWithValue (dart:async/future_impl.dart:529:5)
#17     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
#18     _rootRun (dart:async/zone.dart:1190:13)
#19     _CustomZone.run (dart:async/zone.dart:1093:19)
#20     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#21     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
#22     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#23     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#24     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
[✓] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.18363.1316], locale ru-RU)
    • Flutter version 1.22.6 at C:\flutter
    • Framework revision 9b2d32b605 (4 weeks ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Mark\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin installed
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.53.2)
    • VS Code at C:\Users\Mark\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.19.0

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

Flutter Application Metadata

No pubspec in working directory.

@hamdikahloun
Copy link
Member

Hi @markbrutx
There's similar open issue in which you can follow-up for updates and any questions.
Thank you

@iapicca
Copy link
Contributor

iapicca commented Feb 22, 2021

There's similar open issue in which you can follow-up for updates and any questions.
Thank you

@hamdikahloun
the issue you mentioned is not (yet) workable as it refer to an obsolete flutter version while this issue points at the latest stable
I'd consider reopening

@hamdikahloun hamdikahloun reopened this Feb 22, 2021
@pedromassangocode pedromassangocode added the in triage Presently being triaged by the triage team label Feb 22, 2021
@pedromassangocode
Copy link

pedromassangocode commented Feb 22, 2021

Crash logs similar to #68958.

@pedromassangocode pedromassangocode added c: crash Stack traces logged to the console tool Affects the "flutter" command-line tool. See also t: labels. passed first triage and removed in triage Presently being triaged by the triage team labels Feb 22, 2021
@jmagman
Copy link
Member

jmagman commented Feb 23, 2021

There's similar open issue in which you can follow-up for updates and any questions.
Thank you

@hamdikahloun
the issue you mentioned is not (yet) workable as it refer to an obsolete flutter version while this issue points at the latest stable
I'd consider reopening

The important part isn't the Flutter version, it's that the stack traces are totally different. This is in CreateCommand._computeTemplateManifest

@jmagman jmagman added this to Awaiting triage in Tools - flutter create review via automation Feb 23, 2021
Tools - flutter create review automation moved this from Awaiting triage to Engineer reviewed Mar 3, 2021
@pedromassangocode
Copy link

@jmagman can this be closed?

@iapicca
Copy link
Contributor

iapicca commented Feb 4, 2022

dupe? #68958

@darshankawar
Copy link
Member

dupe? #68958

Doesn't look like it. The linked issue has stacktrace from web:

WebDevFS.update (package:flutter_tools/src/isolated/devfs_web.dart:833:57)
#6      _ResidentWebRunner._updateDevFS (package:flutter_tools/src/isolated/resident_web_runner.dart:736:54)
<asynchronous suspension>
#7      _ResidentWebRunner.run.<anonymous closure> (package:flutter_tools/src/isolated/resident_web_runner.dart:518:47)
<asynchronous suspension>
#8      _ResidentWebRunner.run.<anonymous closure> (package:flutter_tools/src/isolated/resident_web_runner.dart)

@darshankawar darshankawar changed the title [tool_crash] FileSystemException: Cannot open file, OS Error: Не удается найти указанный файл., errno = 2 [tool_crash] FileSystemException: Cannot open file, OS Error: Cannot find the specified file., errno = 2 Oct 12, 2022
@iapicca
Copy link
Contributor

iapicca commented Oct 12, 2022

dupe? #68958

Doesn't look like it. The linked issue has stacktrace from web:

WebDevFS.update (package:flutter_tools/src/isolated/devfs_web.dart:833:57)
#6      _ResidentWebRunner._updateDevFS (package:flutter_tools/src/isolated/resident_web_runner.dart:736:54)
<asynchronous suspension>
#7      _ResidentWebRunner.run.<anonymous closure> (package:flutter_tools/src/isolated/resident_web_runner.dart:518:47)
<asynchronous suspension>
#8      _ResidentWebRunner.run.<anonymous closure> (package:flutter_tools/src/isolated/resident_web_runner.dart)

@darshankawar
I didn't notice,
actually flutter web didn't even have stable support when the issue was open, so maybe isn't valid

[✓] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.18363.1316], locale ru-RU)
• Flutter version 1.22.6 at C:\flutter
• Framework revision 9b2d32b (4 weeks ago), 2021-01-22 14:36:39 -0800
• Engine revision 2f0af37152
• Dart version 2.10.5

maybe this is a closer match #65242

@christopherfujino christopherfujino added the triaged-tool Triaged by Flutter Tool team label Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: crash Stack traces logged to the console P2 Important issues not at the top of the work list team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels. triaged-tool Triaged by Flutter Tool team
Projects
Tools - flutter create review
  
Awaiting triage
Development

No branches or pull requests

8 participants