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

Importing causes possibly undefined symbol on sub element #865

Open
marcelotaube-weka opened this issue May 11, 2023 · 0 comments
Open

Importing causes possibly undefined symbol on sub element #865

marcelotaube-weka opened this issue May 11, 2023 · 0 comments
Labels

Comments

@marcelotaube-weka
Copy link

marcelotaube-weka commented May 11, 2023

First I would like to kudos the team, my previous ticket #846 was fixed and i even downloaded the new version and double checked is now working properly. That encourages me a lot to report other problems in the indexing area and hope this plugin becomes even better.

Desktop (please provide environment info):

  • OS: MacOs Ventura 13.2.1 (M1 pro apple chip)
  • IDE: IntelliJ IDEA 2023.1.1 (Community Edition)
  • Plugin Version 1.30.1

D compiler and tools (please provide version numbers):

  • dmd: DMD64 D Compiler v2.102.1
  • dub: DUB version 1.31.1, built on Feb 15 2023 (installed with brew)
  • dcd: v0.15.2
  • dscanner: v0.14.0

Describe the problem
I'm getting a "Possibly undefined symbol" warning when using importing a struct from a different module and accessing a substruct. This is even if the project compiles and go to definition for the external struct works properly.

Please provide full details to reproduce the problem
Add a file main.d:

module main;
import std.stdio;
import mylib: A;

void main() {
    A.B var;
    writeln("Finished.");
}

Then a second file mylib.d:

module mylib;
struct A {
    struct B {

    }
}
Screenshot 2023-05-11 at 14 24 15
@marcelotaube-weka marcelotaube-weka changed the title Specific imports causes possibly undefined symbol Importing causes possibly undefined symbol on sub element May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant