question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`flutter pub get` triggered regularly when no changes made

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
kay4ikcommented, Nov 10, 2021

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

0reactions
bsuttoncommented, Jan 5, 2022

I’ve not seen the behaviour in a while on windows or Linux.

On Thu, 6 Jan 2022, 1:57 am Danny Tuppeny, @.***> wrote:

Is anyone still seeing this? I did some more testing on Windows today with Git enabled (and manually running some git commands), but was still unable to trigger it.

— Reply to this email directly, view it on GitHub https://github.com/Dart-Code/Dart-Code/issues/2271#issuecomment-1005757688, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32OHF2X4BA7L3W5QW3QTUURL57ANCNFSM4K2QUX2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found