dart-lang / pub

The pub command line tool
https://dart.dev/tools/pub/cmd
BSD 3-Clause "New" or "Revised" License
1.05k stars 230 forks source link

Null check operator used on a null value in ._getAdvisories.readAdvisoriesFromCache #4422

Open NivashiniD opened 2 weeks ago

NivashiniD commented 2 weeks ago

D:\fluttersdk\flutter\bin\flutter.bat --no-color pub get Resolving dependencies... Downloading packages... Null check operator used on a null value package:pub/src/source/hosted.dart 778:33 HostedSource._getAdvisories.readAdvisoriesFromCache ===== asynchronous gap =========================== package:pub/src/source/hosted.dart 796:12 HostedSource._getAdvisories ===== asynchronous gap =========================== package:pub/src/source/hosted.dart 1084:24 HostedSource.getAdvisoriesForPackageVersion ===== asynchronous gap =========================== package:pub/src/solver/report.dart 416:26 SolveReport._reportPackage ===== asynchronous gap =========================== package:pub/src/solver/report.dart 220:18 SolveReport._reportChanges ===== asynchronous gap =========================== package:pub/src/solver/report.dart 75:21 SolveReport.show ===== asynchronous gap =========================== package:pub/src/entrypoint.dart 580:5 Entrypoint.acquireDependencies ===== asynchronous gap =========================== package:pub/src/command/get.dart 76:5 GetCommand.runProtected ===== asynchronous gap =========================== package:pub/src/command.dart 196:7 PubCommand.run ===== asynchronous gap =========================== package:args/command_runner.dart 212:13 CommandRunner.runCommand ===== asynchronous gap =========================== package:dartdev/dartdev.dart 236:18 DartdevRunner.runCommand ===== asynchronous gap =========================== package:dartdev/dartdev.dart 47:16 runDartdev ===== asynchronous gap =========================== C:\b\s\w\ir\x\w\sdk\pkg\dartdev\bin\dartdev.dart 13:5 main This is an unexpected error. The full log and other details are collected in:

C:\Users\dell\AppData\Local\Pub\Cache\log\pub_log.txt

Consider creating an issue on https://github.com/dart-lang/pub/issues/new and attaching the relevant parts of that log file. Process finished with exit code 1

jonasfj commented 2 weeks ago

quick note: Please use code fences when posting logs, for large log files please use a gist.

Also please note that the logs you posted reference C:\Users\dell\AppData\Local\Pub\Cache\log\pub_log.txt, which you could share as a gist.

sigurdm commented 2 weeks ago

This has a fix in https://github.com/dart-lang/pub/pull/4337/files

What version of dart are you using?

Run flutter --version

NivashiniD commented 2 weeks ago

3.5.3

On Thu, Nov 7, 2024, 14:56 Sigurd Meldgaard @.***> wrote:

This has a fix in https://github.com/dart-lang/pub/pull/4337/files

What version of dart are you using?

— Reply to this email directly, view it on GitHub https://github.com/dart-lang/pub/issues/4422#issuecomment-2461726631, or unsubscribe https://github.com/notifications/unsubscribe-auth/BMOAT3IJ3CLY7GHWRDIGKT3Z7MW45AVCNFSM6AAAAABRKKQB7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRRG4ZDMNRTGE . You are receiving this because you authored the thread.Message ID: @.***>

sigurdm commented 2 weeks ago

Hmm - seems the fix will be included only in th 3.6.0 release.

You could try out the beta branch.

NivashiniD commented 2 weeks ago

Ok I ll try thank you

On Thu, Nov 7, 2024, 15:50 Sigurd Meldgaard @.***> wrote:

Hmm - seems the fix will be included only in th 3.6.0 release.

You could try out the beta branch.

— Reply to this email directly, view it on GitHub https://github.com/dart-lang/pub/issues/4422#issuecomment-2461846541, or unsubscribe https://github.com/notifications/unsubscribe-auth/BMOAT3MN65ZEAKC5GNQS5LDZ7M5FHAVCNFSM6AAAAABRKKQB7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRRHA2DMNJUGE . You are receiving this because you authored the thread.Message ID: @.***>

maulikchak commented 5 days ago

try flutter upgrade it's work for me (Upgrading Flutter to 3.24.5 from 3.24.2)