Dart-Code: `flutter pub get` triggered regularly when no changes made

Repro steps:

  1. Opened an existing project
  2. Enabled log capture
  3. Went to VS terminal and hit return a few times
  4. package infowindow appeared
  5. 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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 23 (13 by maintainers)

Most upvoted 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