-
Notifications
You must be signed in to change notification settings - Fork 1.7k
win8.1 dart command-line: find: > bin [: No such file or directory #21770
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
Comments
Everton, can you let us know in which version this worked for you? You mention it working in previous Dart SDKs. It looks like the scripts cannot locate the 'find' utility. Can you run find from the command line? C:> find Johnni, you did a change to dart2js.bat recently but most of the other command-line tool wrappers haven't changed. cc @johnniwinther. |
The dart2js.bat in dart-sdk/bin/ hasn't changed (it runs the snapshot). The old sdk/bin/dart2js.bat was copied into sdk/bin/dart2js_sdk.bat from which dart-sdk/bin/dart2js.bat is generated. I cannot reproduce the problem on Windows 7. |
This comment was originally written by [email protected] Guys, I cannot reproduce this issue today on my Win8.1. |
This comment was originally written by [email protected] Have the same issue on Win 7. |
This comment was originally written by [email protected] I'm seeing this in Dart SDK version 1.8.3 and 1.9.0 in Windows 8.1 from Windows PowerShell. It works fine in CMD |
This comment was originally written by @aam It sounds like cygwin find.exe gets used instead of Windows system find.exe. Can you check your path environment variable("set path" in cmd shell, "gci env:" in powershell) - whether cygwin folder comes up before windows system path(comspec environment variable)? |
This comment was originally written by @seaneagan I am seeing this only when calling the executables from cygwin (I have 64 bit installed). $ where find $ where find.exe There are other issues running from cygwin as well, see issue #20822. |
This comment was originally written by [email protected] I have the same issue with Windows 7 32bit and Dart SDK from (cca) 1.2 to 1.8.3. I have Dart SDK installed (unzipped and added to %PATH% system variable) both for current user and globally. The problem appears only if I run e.g. dartanalyzer locally, globally this message disappears. |
Removed this from the 1.9 milestone. |
Added this to the 1.10 milestone. |
Hello guys. The source of the problem was "find" command whichcomes with git tools. To fix: I just set the path "c:\windows\system32" to appear before the "c:\git\bin" How to check : If console command "find --help" returns an error this means dos find is run |
One option could be to replace
with
If |
May I offer to use |
This bug just happened to me on Windows 10 from cmd. I had to use @sgjesse's fix. |
I can reproduce this odd behaviour in Windows 10 on the beta channel. > flutter format lib/main.dart > dart format lib/main.dart > where find |
From the comment in #21770 (comment) it sounds like this also applies to the new Tagging for Sept., cc @jwren |
I can confirm using |
@franklinyow Who needs to own this issue? It has a milestone for September 2020 but no owner. If we can't find a specific owner I would suggest dropping the September 2020 milestone. |
@bkonyi -- who did you mention this morning that has Windows experience? |
@zichangg has already verified that it does reproduce on a Windows 10 machine but it is not clear if it is a VM issue based on #21770 (comment) |
This has already been diagnosed and proposed solution(use
What needs to be done is that the rest of .bat files have to be changed to |
https://dart-review.googlesource.com/c/sdk/+/158484 with the fix |
This issue was originally filed by [email protected]
What steps will reproduce the problem?
Call one of these command-line tools from Windows 8.1:
pub
dartfmt
dartanalyzer
dart2js
Example:
C:\Users\esmarques>set DART_SDK=c:\dart\dart-sdk
C:\Users\esmarques>cd c:\tmp\devel\negentropia\wwwroot\dart
c:\tmp\devel\negentropia\wwwroot\dart>call c:\dart\dart-sdk\bin\pub get
find: > bin [: No such file or directory
Resolving dependencies...
Got dependencies!
What is the expected output?
Clean run, like previous Dart SDKs.
What do you see instead?
find: > bin [: No such file or directory
What version of the product are you using?
Build 42033
Dart Editor version 1.9.0.dev_00_00 (DEV)
Dart SDK version 1.9.0-dev.0.0
On what operating system?
64-bit Windows 8.1
The text was updated successfully, but these errors were encountered: