Skip to content

Pub error #4457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MalikAreeb opened this issue Dec 3, 2024 · 1 comment
Closed

Pub error #4457

MalikAreeb opened this issue Dec 3, 2024 · 1 comment
Labels
closed-duplicate Closed in favor of an existing report

Comments

@MalikAreeb
Copy link

Environment

  • Dart version (run dart --version):
  • OS kind and version (e.g. "Windows 10, version 1809" or "macOS 12.4"):
  • Are you using the Chinese community mirror or a corporate firewall?

Problem

name: sing_with_me
description: "A new Flutter project."
publish_to: 'none'

version: 1.0.0+1

environment:
  sdk: '>=3.4.4 <4.0.0'

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.6
  flutter_launcher_icons: ^0.14.1
  get_it: ^8.0.0
  provider: ^6.1.2
  http: ^1.2.1
  shared_preferences: ^2.0.5
  top_snackbar_flutter: ^3.1.0
  lottie: ^3.1.2
  google_fonts: ^6.2.1
  pin_code_fields: ^8.0.1
  gap: ^3.0.1
  carousel_slider: ^5.0.0
  uni_links5: ^0.5.4
  url_launcher: ^6.3.1

dev_dependencies:
  flutter_test:
    sdk: flutter
#  flutter_lints: ^3.0.0

flutter:
  uses-material-design: true

  assets:
    - assets/
    - assets/images/

  fonts:
    - family: Roboto
      fonts:
        - asset: assets/fonts/Roboto/Roboto-Thin.ttf
          weight: 100
        - asset: assets/fonts/Roboto/Roboto-Light.ttf
          weight: 300
        - asset: assets/fonts/Roboto/Roboto-Regular.ttf
          weight: 400
        - asset: assets/fonts/Roboto/Roboto-Medium.ttf
          weight: 500
        - asset: assets/fonts/Roboto/Roboto-Bold.ttf
          weight: 700
        - asset: assets/fonts/Roboto/Roboto-Black.ttf
          weight: 900
        - asset: assets/fonts/Roboto/Roboto-Italic.ttf
          style: italic


Expected behavior

Actual behavior

--trace output

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 ===========================
/Volumes/Work/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:

    /Users/areebmalik/.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.
@Jannik-dev Jannik-dev mentioned this issue Dec 3, 2024
@jonasfj
Copy link
Member

jonasfj commented Dec 5, 2024

This is probably a duplicate of #4422 (comment)

@jonasfj jonasfj closed this as completed Dec 5, 2024
@jonasfj jonasfj added the closed-duplicate Closed in favor of an existing report label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

2 participants