dart-lang / dart-lang/source_gen

When commenting out a `@GenerateNiceMocks` annotation with `//`, the `build_runner` still tries to process the annotation, causing unexpected errors.

Open
#756 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
494
Forks
115
Avg merge
12h 13m
Merged PRs (30d)
3

Description

// @GenerateNiceMocks([
// MockSpec(),
// ])

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the commented @GenerateNiceMocks annotation and trace how build_runner processes it. The fix is complete when commenting out the annotation with // no longer causes the annotation to be processed or produces unexpected errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.