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.

Inspect assets not exists in pubspec.yaml is not correct.

See original GitHub issue

It seems to inspect assets not found in pubspec.yaml is not correct. See image bellow:

1

Another, the suggestion to fix that problem is also wrong. 2

After select the suggestion, the tools will put // ignore: asset_does_not_exist in the pubspec.yaml. That comment is wrong format of yaml. It should be # ignore: asset_does_not_exist, I thought.

3

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dnfieldcommented, Jun 21, 2018

You can ignore it like this in analysis_options.yaml

This ignores it for now - in analysis_options.yaml

analyzer:
  errors:
    # allow for asset_does_not_exist
    unrecognized_error_code: ignore
    # ignore this in pubspec.yaml
    asset_does_not_exist: ignore
0reactions
devoncarewcommented, Jun 19, 2018

The analysis server fix for this has landed; it’ll be available in the next roll of the dart sdk into flutter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pubspec.yaml = the asset directory not exist what is wrong?
2 Answers 2 ... The asset folder should be at the same level as your pubspec.yaml. If the warning is still shown after...
Read more >
Using packages - Flutter documentation
If no package exists for your specific use case, you can write a custom package. Managing package dependencies and versions. To minimize the...
Read more >
no configuration found in flutter_launcher_icons.yaml or in ...
Same happening here, I'm using the exact same flutter_launch_icons.yaml as in this example, in the same directory as pubspec.yaml. Putting the config inside ......
Read more >
Fix Error Could Not Find A File Name "pubspec.yaml" In |Flutter
check our channel for more videos:#flutter #dart #mobileAppDev.
Read more >
2 Easy Steps to Fix Unable to Load Asset in Flutter (2022)
Spelling mistake in the image name · Wrong Image path provided (Image doesn't exist at specified location) · Wrong indentation for assets in ......
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