`flutter pub get` triggered regularly when no changes made
See original GitHub issueRepro steps:
- Opened an existing project
- Enabled log capture
- Went to VS terminal and hit return a few times
- package infowindow appeared
- Stopped log capture
At no time did I touch pubspec.yaml
(it’s not even loaded in the code editor window).
!! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!
Dart Code extension: 3.8.1
Flutter extension: 3.8.1 (not activated)
VS Code: 1.42.1
Platform: mac
Workspace type: Flutter
Multi-root?: false
Dart SDK:
Loc: /Users/timsneath/flutter/bin/cache/dart-sdk
Ver: 2.8.0-edge.707ecda05e14e760801b97ec454bb17a3efcebec
Flutter SDK:
Loc: /Users/timsneath/flutter
Ver: 1.15.4-pre.124
HTTP_PROXY: undefined
NO_PROXY: undefined
Mon Feb 24 2020 [11:59:00 GMT-0800 (Pacific Standard Time)] Log file started
[11:59:05 AM] [General] [Info] Pubspec /Users/timsneath/git/me/flutter_device_preview/device_preview/pubspec.yaml was modified
[11:59:06 AM] [General] [Info] Found 0 folders requiring "pub get":
[11:59:06 AM] [CommandProcesses] [Info] (PROC 90089) Spawned /Users/timsneath/flutter/bin/flutter packages get in /Users/timsneath/git/me/flutter_device_preview/device_preview
[11:59:06 AM] [CommandProcesses] [Info] (PROC 90089) Logging data for process...
[11:59:06 AM] [CommandProcesses] [Info] (PROC 90089) Running "flutter pub get" in device_preview...
[11:59:07 AM] [CommandProcesses] [Info] (PROC 90089) 0.4s
[11:59:07 AM] [CommandProcesses] [Info] (PROC 90089)
[11:59:07 AM] [CommandProcesses] [Info] (PROC 90089) Running "flutter pub get" in example...
[11:59:07 AM] [Analyzer] [Info] <== {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
[11:59:07 AM] [Analyzer] [Info] <== {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
[11:59:07 AM] [CommandProcesses] [Info] (PROC 90089)
[11:59:07 AM] [CommandProcesses] [Info] (PROC 90089) ! pedantic 1.9.0
[11:59:07 AM] [CommandProcesses] [Info] (PROC 90089) Running "flutter pub get" in example...
[11:59:07 AM] [CommandProcesses] [Info] (PROC 90089) 0.5s
[11:59:07 AM] [Analyzer] [Info] <== {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
[11:59:07 AM] [Analyzer] [Info] <== {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
[11:59:08 AM] [CommandProcesses] [Info] (PROC 90089) exited (0, null)
[11:59:08 AM] [CommandProcesses] [Info] (PROC 90089) closed (0, null)
[11:59:17 AM] [General] [Info] Pubspec /Users/timsneath/git/me/flutter_device_preview/device_preview/pubspec.yaml was modified
[11:59:18 AM] [General] [Info] Found 0 folders requiring "pub get":
[11:59:18 AM] [CommandProcesses] [Info] (PROC 90292) Spawned /Users/timsneath/flutter/bin/flutter packages get in /Users/timsneath/git/me/flutter_device_preview/device_preview
[11:59:18 AM] [CommandProcesses] [Info] (PROC 90292) Logging data for process...
[11:59:18 AM] [CommandProcesses] [Info] (PROC 90292) Running "flutter pub get" in device_preview...
[11:59:19 AM] [CommandProcesses] [Info] (PROC 90292) 0.4s
[11:59:19 AM] [CommandProcesses] [Info] (PROC 90292)
[11:59:19 AM] [CommandProcesses] [Info] (PROC 90292) Running "flutter pub get" in example...
[11:59:19 AM] [Analyzer] [Info] <== {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
[11:59:19 AM] [Analyzer] [Info] <== {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
[11:59:19 AM] [CommandProcesses] [Info] (PROC 90292)
[11:59:19 AM] [CommandProcesses] [Info] (PROC 90292) ! pedantic 1.9.0
[11:59:19 AM] [CommandProcesses] [Info] (PROC 90292) Running "flutter pub get" in example...
[11:59:19 AM] [CommandProcesses] [Info] (PROC 90292) 0.5s
[11:59:19 AM] [Analyzer] [Info] <== {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
[11:59:19 AM] [Analyzer] [Info] <== {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
[11:59:20 AM] [CommandProcesses] [Info] (PROC 90292) exited (0, null)
[11:59:20 AM] [CommandProcesses] [Info] (PROC 90292) closed (0, null)
Mon Feb 24 2020 [11:59:30 GMT-0800 (Pacific Standard Time)] Log file ended
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:23 (13 by maintainers)
Top Results From Across the Web
flutter pub get is stucking - Stack Overflow
Quick fixes before explanation: Restart your router! Works for me several times. Make sure your network is not behind a proxy; Make sure...
Read more >All about the Pub command line tool for Flutter and Dart
Whenever you run flutter pub get or flutter pub upgrade , Pub caches the dependencies of your project in a central location, called...
Read more >Hot reload - Flutter documentation
Even when a hot reload operation appears successful and generates no exceptions, some code changes might not be visible in the refreshed UI....
Read more >The pubspec file - Dart
A Flutter SDK constraint is satisfied only if pub is running in the context of the flutter executable, and the Flutter SDK's version...
Read more >pocketbase | Dart Package - Pub.dev
dart pub add pocketbase:^0.5.0 # or with Flutter: flutter pub add pocketbase:^0.5.0 ... that gets triggered on each auth store change // methods...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found out that every time a git fetch is happening, the pub get command is triggered!
My Solution: go to vs code settings search git.autofetch and set it to false
I’ve not seen the behaviour in a while on windows or Linux.
On Thu, 6 Jan 2022, 1:57 am Danny Tuppeny, @.***> wrote: