Bug 19791 – Bad cross-file detection

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P3
Component
visuald
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-04-07T07:51:37Z
Last change time
2020-01-24T01:37:17Z
Assigned to
No Owner
Creator
Srxy Wang

Comments

Comment #0 by x13989 — 2019-04-07T07:51:37Z
//A.d module A; public import std.stdio; public int varible; public static int staticvar; //B.d module B; import A; When I type in B.d, neither functions of stdio nor “varible” will appear in the auto-complete list, but however “staticvar” appears in the auto-complete list correctly. Also, if I open the colorize system, “varible” would not be colorized but “staticvar” could be colorized correctly. Please fix this and also add support for public imports.
Comment #1 by r.sagitario — 2019-06-03T07:32:11Z
For me, code completion works correctly AFAICT (maybe there are appropriate changes in https://github.com/dlang/visuald/releases/tag/v0.50.0-beta1, please try that). Semantic colorization works correctly for "varible", but symbols from the public import are still white. That is corrected once you modify the file or wait a bit before you open the file (so the background parsing of phobos is done). Does it work for you this way, too?