Skip to content

Commit f72bce5

Browse files
committed
fix: Add troubleshooting for Windows filename too long error
1 parent ee86c0b commit f72bce5

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

src/content/install/upgrade.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,29 @@ the Dart [`pub outdated` documentation]({{site.dart-site}}/tools/pub/cmd/pub-out
167167
$ flutter pub outdated
168168
```
169169

170+
<a id="troubleshooting" aria-hidden="true"></a>
171+
172+
## Troubleshooting
173+
174+
### Windows: "Filename too long" error
175+
176+
When running `flutter upgrade` on Windows, you might encounter an error like:
177+
178+
```text
179+
error: unable to create file ...: Filename too long
180+
```
181+
182+
This occurs because the path to a file in the Flutter SDK exceeds the default
183+
maximum path length limit on Windows.
184+
185+
To resolve this issue, enable long paths support in Git:
186+
187+
```console
188+
$ git config --system core.longpaths true
189+
```
190+
191+
If the command fails with a permission error, try running your terminal as an administrator.
192+
170193
[Flutter SDK archive]: /install/archive
171194
[flutter-announce]: {{site.groups}}/forum/#!forum/flutter-announce
172195
[pubspec.yaml]: {{site.dart-site}}/tools/pub/pubspec

src/content/release/breaking-changes/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ They're sorted by release and listed in alphabetical order:
3737
### Not yet released to stable
3838

3939
* [Merged threads on Linux][]
40+
* [Stop generating `AssetManifest.json`][]
41+
* [`$FLUTTER_ROOT/version` replaced by `$FLUTTER_ROOT/bin/cache/flutter.version.json`][]
4042
* [`FontWeight` also controls the weight attribute of variable fonts][]
4143
* [Deprecate `containsSemantics` in favor of `isSemantics`][]
4244
* [Deprecate `findChildIndexCallback` in favor of `findItemIndexCallback` in `ListView` and `SliverList` separated constructors][]
@@ -81,7 +83,6 @@ They're sorted by release and listed in alphabetical order:
8183
* [Flutter now sets default `abiFilters` in Android builds][]
8284
* [Merged threads on macOS and Windows][]
8385
* [The `Visibility` widget is no longer focusable by default when `maintainState` is enabled][]
84-
* [`$FLUTTER_ROOT/version` replaced by `$FLUTTER_ROOT/bin/cache/flutter.version.json`][]
8586

8687
[Component theme normalization updates]: /release/breaking-changes/component-theme-normalization-updates
8788
[Deprecate `DropdownButtonFormField` `value` parameter in favor of `initialValue`]: /release/breaking-changes/deprecate-dropdownbuttonformfield-value
@@ -184,15 +185,13 @@ They're sorted by release and listed in alphabetical order:
184185
[Rename `MemoryAllocations` to `FlutterMemoryAllocations`]: /release/breaking-changes/flutter-memory-allocations
185186

186187
<a id="released-in-flutter-319" aria-hidden="true"></a>
187-
188188
### Released in Flutter 3.19
189189

190190
* [Deprecated API removed after v3.16][]
191191
* [Migrate RawKeyEvent/RawKeyboard system to KeyEvent/HardwareKeyboard system][]
192192
* [Deprecate imperative apply of Flutter's Gradle plugins][]
193193
* [Default multitouch scrolling][]
194194
* [Accessibility traversal order of tooltip changed][]
195-
* [Stop generating `AssetManifest.json`][]
196195

197196
[Deprecated API removed after v3.16]: /release/breaking-changes/3-16-deprecations
198197
[Migrate RawKeyEvent/RawKeyboard system to KeyEvent/HardwareKeyboard system]: /release/breaking-changes/key-event-migration

0 commit comments

Comments
 (0)