[tool_crash] FileSystemException: Cannot create link, OS Error: Incorrect function., errno = 1

This issue has been created since 2022-11-23.

Command

flutter pub get

Steps to Reproduce

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

Logs

FileSystemException: Cannot create link, OS Error: Incorrect function.
, errno = 1

#0      _Link.throwIfError (dart:io/link.dart:263:7)
#1      _Link.createSync (dart:io/link.dart:184:5)
#2      ForwardingLink.createSync (package:file/src/forwarding/forwarding_link.dart:20:16)
#3      ForwardingLink.createSync (package:file/src/forwarding/forwarding_link.dart:20:16)
#4      _createPlatformPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:1057:12)
#5      createPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:987:5)
#6      refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1089:5)
<asynchronous suspension>
#7      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:350:5)
<asynchronous suspension>
#8      PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:175:5)
<asynchronous suspension>
#9      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1209:27)
<asynchronous suspension>
#10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#15     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
[✓] Flutter (Channel stable, 3.3.8, on Microsoft Windows [Version 10.0.22621.819], locale en-GB)
    • Flutter version 3.3.8 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (2 weeks ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\mfhkt\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✗] Visual Studio - develop for Windows
    ✗ Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[✓] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.73.1)
    • VS Code at C:\Users\mfhkt\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.52.0

[✓] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22621.819]
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 107.0.1418.56

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

Flutter Application Metadata

Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 6928314

Plugins

cloud_firestore_web-3.0.4
firebase_auth-4.1.1
firebase_auth_web-5.1.1
firebase_core-2.1.1
firebase_core_web-2.0.1
path_provider-2.0.11
path_provider_android-2.0.22
path_provider_ios-2.0.11
path_provider_linux-2.1.7
path_provider_macos-2.0.6
path_provider_windows-2.1.3

danagbemava-nc wrote this answer on 2022-11-23

Closing this as a duplicate of #66224

More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2022-12-10
Star Count 147243
Watcher Count 3561
Fork Count 23950
Issue Count 11325

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Take compileSdkVersion from root project 0 2021-09-21 2022-07-03
ProgressBarAndroid Component does not announce "disabled" 0 2021-02-20 2022-07-15
Nul Byte Error when using FFI 2 2022-04-28 2022-10-14
Dimensions of decompressed fractal 3 2021-06-11 2022-10-26
Logo - Greek alphabet off-by-some 2 2021-08-09 2022-11-30
Best practices for processing Lamda Phage unmethylated control data with Bismark? 4 2020-07-20 2022-07-31
Jennifer i18n conflict with amber 1.5 3 2022-07-24 2022-12-04
LicheePi Zero - ION_ALLOC_ERROR after increasing CMA_AREAS and CMA_SIZE_MBYTES 9 2020-11-19 2022-11-22
chifra cmd - When porting to Go is done, store addresses and hashes as binary 1 2022-11-24 2022-12-03
clamp() with relative units for application in font-sizing 0 2022-08-24 2022-12-09
Support for reversed ranges 1 2020-11-06 2022-11-06
./build/tests/registration/registration test failed (socket bind(2) [127.0.0.10]:7777 failed (48:Address already in use)) 6 2022-09-23 2022-11-14
State value to set for "hm-rpc.1.NBO0022371.1.ERROR_SMOKE_CHAMBER" has value "0" greater than max "-1" 3 2021-08-08 2022-12-07
Consultation about Low Latency HLS player 2 2022-06-10 2022-10-06
Does this project support the depth that is ".png" format? 0 2022-03-10 2022-12-08
Incorrect rejection of erased irrefutable patterns 6 2022-05-29 2022-10-27
Hard libjsoncpp.so.24 dependency? 1 2021-11-04 2022-11-01
Spring-loaded folders 3 2021-04-01 2022-10-26
Selection rectangle wrong if second line is longer than first line 0 2021-03-31 2022-10-07
How to add middleware options with customValidators to express-validator for using them in schema? 1 2021-06-01 2022-10-25
Invalid compilation target `aie` 8 2021-09-08 2022-11-23
mermaid syntax in code blocks 3 2017-03-04 2022-12-03
Auto-downloading using `writeFile` no response on Chrome iOS 1 2021-12-10 2022-11-23
[UX Review] Some fine-tuning of Authorization settings page 0 2022-01-29 2022-09-06
ability to influence how entries in `vulpea-find` are sorted 5 2021-11-15 2022-10-13
CONTRIBUTING.rst: Recommend local testing offline? 6 2022-01-20 2022-11-18
19 - Asset Browser - Status icon for Source control. 0 2022-10-27 2022-10-29
Feature req: service/wrapper exposing results in arrow format over http 3 2021-12-14 2022-10-27
【寻求帮助】这个源码的是免费版的吗?付费版的怎么买?增加了哪些功能? 13 2022-02-24 2022-11-29
Lots of fiber tests are failing on x86 (32-bits) 8.2.0beta3 7 2022-08-17 2022-09-17
PHP CLI with Symfony causing Program received signal SIGSEGV, Segmentation fault 4 2022-08-17 2022-11-12
Bridging "quality" depends on number of perimeters 1 2022-09-05 2022-11-23
TestServiceExportedInOneCluster flake 3 2021-09-14 2022-10-20
Bug: Ellipses sub menu does not collapse 4 2022-01-07 2022-10-05
On install of @date-io/date-fns - Error: Cannot read property 'length' of undefined lineCounter, JSPackager 1 2022-04-21 2022-09-11
Obscure error in transformer-typescript-types when building a React package 0 2022-04-20 2022-10-15
[bug] Got unexpected undefined error with latest PostCSS transformer 0 2022-04-20 2022-10-24
Youtube search without API key 0 2021-10-12 2022-11-13
gf-interpolation-linear 0 2022-10-14 2022-10-09
How to detect when an item is moved because of another item. 6 2022-02-02 2022-11-30
frappe.safe_eval attribute check too coarse 0 2022-11-22 2022-12-01
Server error during the ordering process. Skus are interpreted as floats 4 2022-01-12 2022-10-19
Metrics and health endpoints should return `Cache-Control: no-store, no-cache, must-revalidate` 0 2022-05-19 2022-11-27
DependsOn not respected when resource is in DELETE_FAILED state 1 2021-05-04 2022-11-11
[HLSL 2021] Ternary error with non scalar 4 2021-11-08 2022-10-12
Gas metering does not handle branches and external calls 3 2019-06-24 2022-11-23
feature request: Parse latest digest of CacheOptionsEntry in gateway client solve 0 2022-07-21 2022-11-13
Battery consumption high 13 2021-12-22 2022-11-29
How to handle HTTP/2 GOAWAY ? 4 2022-10-04 2022-12-03
[Bug Report][3.0.0-beta.1] <v-text-field>Does Not Look As It Should 7 2022-05-14 2022-11-23