Skip to content

Conditional imports not checked #4525

@mosuem

Description

@mosuem

Describe the bug
When importing libraries, there is a check if this library actually exists dart(uri_does_not_exist). This is not called on conditional imports, such as

import 'something.dart' if(dart.library.js) import 'somethingelse.dart'

To Reproduce
Write

import 'something.dart' if(dart.library.js) import 'somethingelse.dart'

where 'something.dart' exists, but 'somethingelse.dart' doesn't.

Expected behavior
Should trigger on both.

Screenshots
image

Please complete the following information:

  • Operating System and version: Linux
  • VS Code version: 1.76.2
  • Dart extension version: v3.63.20230502
  • Dart/Flutter SDK version: Dart SDK version: 3.1.0-39.0.dev (dev) (Mon Apr 24 18:53:55 2023 -0700) on "linux_x64"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions