flutter command fails with FileSystemException

2,041 views
Skip to first unread message

Shakeel Mahate

unread,
Feb 9, 2016, 2:46:44 PM2/9/16
to Flutter Dev
I did a git clone with the flutter.git repository and added ~/flutter/bin to PATH.

Running flutter help I get the following error message

Unhandled exception:

Load Error for "package:flutter_tools/executable.dart": Error loading file:///Users/shakeel/flutter/packages/flutter_tools/packages/flutter_tools/executable.dart:

  FileSystemException: Cannot open file, path = '/Users/shakeel/flutter/packages/flutter_tools/packages/flutter_tools/executable.dart' (OS Error: No such file or directory, errno = 2)

#0      _asyncLoadErrorCallback (dart:_builtin:155)

#1      _asyncLoadError (dart:_builtin:566)

#2      _handleLoaderReply (dart:_builtin:383)

#3      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)


It looks the path repeats packages/flutter_tools twice.


I was trying to get MASTER branch working.


So then I tried to clone with ALPHA branch and it fails with same error message


| => dart --version

Dart VM version: 1.14.1 (Wed Feb  3 11:49:51 2016) on "macos_x64"


| => pub --version

Pub 1.14.1


flutter version and flutter help also fails with the same exception


Here is the output of git clone command with master and with alpha branches


git clone https://github.com/flutter/flutter.git

Cloning into 'flutter'...

remote: Counting objects: 34112, done.

remote: Compressing objects: 100% (129/129), done.

remote: Total 34112 (delta 72), reused 0 (delta 0), pack-reused 33983

Receiving objects: 100% (34112/34112), 12.15 MiB | 6.63 MiB/s, done.

Resolving deltas: 100% (22429/22429), done.

Checking connectivity... done.



git clone https://github.com/flutter/flutter.git -b alpha

Cloning into 'flutter'...

remote: Counting objects: 34112, done.

remote: Compressing objects: 100% (129/129), done.

remote: Total 34112 (delta 72), reused 0 (delta 0), pack-reused 33983

Receiving objects: 100% (34112/34112), 12.15 MiB | 6.22 MiB/s, done.

Resolving deltas: 100% (22429/22429), done.

Checking connectivity... done.



Adam Barth

unread,
Feb 9, 2016, 3:58:46 PM2/9/16
to Shakeel Mahate, Flutter Dev
Hi, I've posted a patch that will hopefully resolve this issue:


Sorry for the trouble.

Adam


--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To post to this group, send email to flutt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/13eefff8-e490-4bc5-aafc-6dbe0d132aca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adam Barth

unread,
Feb 9, 2016, 4:06:14 PM2/9/16
to Shakeel Mahate, Flutter Dev
I've landed the patch and updated the alpha branch with the fix.

Shakeel Mahate

unread,
Feb 9, 2016, 5:47:33 PM2/9/16
to Flutter Dev
Thank you Adam, that fixed it for me
Reply all
Reply to author
Forward
0 new messages