Skip to content

dart doc prints a warnings #3779

Closed
@mit-mit

Description

@mit-mit

When running dart doc with a recent dev channel build (3.5.0-191), I get the warning The '--resources-dir' option is deprecated, and will soon be removed.

Full output:

mit-macbookpro8:~ mit$ dart --version
Dart SDK version: 3.5.0-191.0.dev (dev) (Fri May 24 13:02:57 2024 -0700) on "macos_arm64"

mit-macbookpro8:tmp mit$ dart create -t package mypkg
Creating mypkg using template package...

...

mit-macbookpro8:tmp mit$ cd mypkg

mit-macbookpro8:mypkg mit$ dart doc
Documenting mypkg...
Discovering libraries...
[---------------------------------------------------------------------------------------------------------] (100.00%)

Linking elements...
[---------------------------------------------------------------------------------------------------------] (100.00%)

Precaching local docs for 136909 elements...
[---------------------------------------------------------------------------------------------------------] (100.00%)

Initialized dartdoc with 48 libraries
  warning: deprecated dartdoc usage: The '--resources-dir' option is deprecated, and will soon be removed.
    from package-mypkg: file:///Users/mit/tmp/mypkg
Generating docs for library mypkg.dart from package:mypkg/mypkg.dart...
Found 1 warning and 0 errors.
Documented 1 public library in 9.4 seconds
Success! Docs generated into /Users/mit/tmp/mypkg/doc/api

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failurestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions