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

Autocomplete not working, can’t resolve modules #492

Open
0zl opened this issue Dec 28, 2024 · 0 comments
Open

Autocomplete not working, can’t resolve modules #492

0zl opened this issue Dec 28, 2024 · 0 comments

Comments

@0zl
Copy link

0zl commented Dec 28, 2024

I just installed the DMD Compiler to start learning and writing some simple D applications. I followed the instructions, but I’m having trouble getting autocomplete to work in VS Code.

From the code-d editor output, it looks like the extension might be having issues resolving the module/standard library (maybe).

Reproduce

  1. Initialize a Dub project using either the code-d command or dub init.
  2. Write some basic code:
import std.stdio;

void main()
{
    writeln("Hello, World!");
    writeln("This is a D program.");
}

Editor Output

[warning] C:\Users\runneradmin\AppData\Local\dub\packages\dsymbol\0.11.3\dsymbol\src\dsymbol\conversion\first.d:384:visit Could not locate object.d or object.di
[warning] C:\Users\runneradmin\AppData\Local\dub\packages\dsymbol\0.11.3\dsymbol\src\dsymbol\conversion\first.d:481:visit Could not resolve location of module 'std\stdio'

Additional Information

  • OS: Windows 10
  • DMD Installation: Installed via Scoop (scoop install dmd)
  • DMD Version: DMD64 D Compiler v2.109.1
  • Editor: Visual Studio Code

I noticed the user in the error path is runneradmin, which is different from my Windows username. Not sure if that’s expected or if it’s related to the issue.

I’m new to D, so apologies if I’m missing something obvious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant