D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19791 - Bad cross-file detection
Summary: Bad cross-file detection
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: visuald (show other issues)
Version: D2
Hardware: All All
: P3 enhancement
Assignee: No Owner
URL: http://dlang.org/
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-07 07:51 UTC by Srxy Wang
Modified: 2020-01-24 01:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Srxy Wang 2019-04-07 07:51:37 UTC
//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 Rainer Schuetze 2019-06-03 07:32:11 UTC
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?