Skip to content
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

Too many broken links are generated or link validation bug? #3943

Open
isoos opened this issue Dec 12, 2024 · 0 comments
Open

Too many broken links are generated or link validation bug? #3943

isoos opened this issue Dec 12, 2024 · 0 comments
Labels
P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@isoos
Copy link
Contributor

isoos commented Dec 12, 2024

I think there may be a bug in the link validation when the library has dots, because otherwise the package output seems to be good:

To reproduce:

flutter pub global activate dartdoc 8.3.0
flutter pub pub unpack forui:0.7.0
cd ./forui-0.7.0/
flutter pub get
flutter pub global run dartdoc .

The output:

[...]

Validating links...
  warning: dartdoc generated a broken link to: forui.assets
    linked to from package-forui: file:///home/isoos/x/forui-0.7.0
  warning: dartdoc generated a broken link to: src_widgets_calendar_shared_header/FCalendarPickerType.html
    to element header.FCalendarPickerType.day: (file:///home/isoos/x/forui-0.7.0/lib/src/widgets/calendar/shared/header.dart:12:3)
    linked to from calendar.FCalendar: (file:///home/isoos/x/forui-0.7.0/lib/src/widgets/calendar/calendar.dart:25:7)
  warning: dartdoc generated a broken link to: src_widgets_slider_slider_controller/FSliderInteraction.html
    to element slider_controller.FSliderInteraction.slide: (file:///home/isoos/x/forui-0.7.0/lib/src/widgets/slider/slider_controller.dart:11:3)
    linked to from slider_controller.FContinuousSliderController: (file:///home/isoos/x/forui-0.7.0/lib/src/widgets/slider/slider_controller.dart:140:7)
  warning: dartdoc generated a broken link to: src_widgets_label/FLabelState.html
    to element label.FLabelState.enabled: (file:///home/isoos/x/forui-0.7.0/lib/src/widgets/label.dart:14:3)
    linked to from label.FLabel.state: (file:///home/isoos/x/forui-0.7.0/lib/src/widgets/label.dart:68:21)
  warning: dartdoc generated a broken link to: src_widgets_tile_tile/FTileDivider.html
    to element tile.FTileDivider.full: (file:///home/isoos/x/forui-0.7.0/lib/src/widgets/tile/tile.dart:13:3)
    linked to from popover_menu.FPopoverMenu: (file:///home/isoos/x/forui-0.7.0/lib/src/widgets/popover_menu.dart:13:7)
  warning: dartdoc generated a broken link to: src_widgets_resizable_divider/FResizableDivider.html
    to element divider.FResizableDivider.none: (file:///home/isoos/x/forui-0.7.0/lib/src/widgets/resizable/divider.dart:260:3)
    linked to from resizable.FResizable: (file:///home/isoos/x/forui-0.7.0/lib/src/widgets/resizable/resizable.dart:22:7)
  warning: dartdoc generated a broken link to: src_foundation_rendering/Layout.html
    to element rendering.Layout.ltr: (file:///home/isoos/x/forui-0.7.0/lib/src/foundation/rendering.dart:8:3)
    linked to from slider_mark.FSliderMarkStyle.labelOffset: (file:///home/isoos/x/forui-0.7.0/lib/src/widgets/slider/slider_mark.dart:102:16)
  warning: dartdoc generated a broken link to: forui.assets
  warning: dartdoc generated a broken link to: forui.foundation
    linked to from package-forui: file:///home/isoos/x/forui-0.7.0
  warning: dartdoc generated a broken link to: forui.localizations
    linked to from package-forui: file:///home/isoos/x/forui-0.7.0
  warning: dartdoc generated a broken link to: forui.theme
    linked to from package-forui: file:///home/isoos/x/forui-0.7.0

[...]

  warning: dartdoc generated a broken link to: forui.widgets.select_tile (from index.json)
  warning: dartdoc generated a broken link to: forui.widgets.slider (from index.json)
  warning: dartdoc generated a broken link to: forui.widgets.switch_ (from index.json)
  warning: dartdoc generated a broken link to: forui.widgets.tabs (from index.json)
  warning: dartdoc generated a broken link to: forui.widgets.text_field (from index.json)
  warning: dartdoc generated a broken link to: forui.widgets.tile (from index.json)
  warning: dartdoc generated a broken link to: forui.widgets.tooltip (from index.json)
Found 1613 warnings and 0 errors.
@bwilkerson bwilkerson added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) P2 A bug or feature request we're likely to work on labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants