Commit cc5612e
Fix: False Positive "include_file_not_found"
See #59888 for an explanation of
the bug this commit fixes. Incidentally, the bug prevents a
"recursive_include_file" error from being reported when a file includes
itself with a quoted "include" field value. This fix happens to also
correct that so it is no longer the case.
Introduce code to handle quotations delimiting an "include" field value.
The code removes the quotes before the URI resolution is attempted. This
will prevent quotations from being interpreted as a part of the URI to
resolve. Also, add tests to verify these code changes fix the bug.
[email protected], [email protected], [email protected]
Bug: #59888
Change-Id: Idc921652bf356889142c6e38b0cdec5e66825d36
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/405180
Auto-Submit: Rohit Saily <[email protected]>
Commit-Queue: Keerti Parthasarathy <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
Reviewed-by: Keerti Parthasarathy <[email protected]>1 parent 5ec1002 commit cc5612e
File tree
2 files changed
+63
-1
lines changed- pkg/analyzer
- lib/src/task
- test/src/diagnostics/analysis_options
2 files changed
+63
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
97 | 105 | | |
98 | 106 | | |
99 | 107 | | |
| |||
Lines changed: 55 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
19 | 58 | | |
20 | 59 | | |
21 | 60 | | |
| |||
29 | 68 | | |
30 | 69 | | |
31 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
32 | 86 | | |
0 commit comments