Skip to content

Issue with LSP4IJ - Could not locate object.d or object.di #410

@andre2007

Description

@andre2007

Hi,

I am using CLion and language server plugin LSP4IJ with latest beta of serve-d (serve-d standalone v0.8.0-beta.18)

I configured the plugin like this:

Server:

Image

Mappings:

Image

Configuration:

Image

For a hello world sample application I get this logs:

serve-d standalone v0.8.0-beta.18
Included features: "d", "workspaces"
Built: Fri Oct 18 17:07:32 2024
with compiler LDC v2.109 on win64 x86_64
dub, dfmt and dscanner are bundled within (compiled in)
[progress] [00000.264] [configLoad] 0 / 1: file:///C:/Users/Developer/Desktop/sample1
[progress] [00000.265] [globalStartup]: Initializing serve-d...
2025-10-12T15:51:54.356 [info] source\served\extension.d:533:rootsForProject Root Suggestions: [RootSuggestion("C:\\Users\\Developer\\Desktop\\sample1", true)]
2025-10-12T15:51:54.356 [info] source\served\extension.d:564:doStartup registering instance for root RootSuggestion("C:\\Users\\Developer\\Desktop\\sample1", true)
[progress] [00000.312] [workspaceStartup] 0 / 1: file:///C%3A/Users/Developer/Desktop/sample1
2025-10-12T15:51:54.357 [info] source\served\extension.d:759:delayedProjectActivation Initializing instance for root RootSuggestion("C:\\Users\\Developer\\Desktop\\sample1", true)
[progress] [00000.312] [completionStartup] 0 / 1: file:///C%3A/Users/Developer/Desktop/sample1
[progress] [00000.312] [dubReload] 0 / 1: file:///C:/Users/Developer/Desktop/sample1
2025-10-12T15:51:54.373 [info] source\served\extension.d:892:delayedProjectActivation Root RootSuggestion("C:\\Users\\Developer\\Desktop\\sample1", true) initialized in 16 ms, 357 μs, and 5 hnsecs
[progress] [00000.329] [dubReload] 1 / 1: file:///C:/Users/Developer/Desktop/sample1
[progress] [00000.329] [importReload] 0 / 1: file:///C:/Users/Developer/Desktop/sample1
2025-10-12T15:51:58.480 [info] source\served\extension.d:997:startDCDServer Imports for C:\Users\Developer\Desktop\sample1: ["C:\\Users\\Developer\\Desktop\\sample1\\source\\"]
[progress] [00004.435] [importReload] 1 / 1: file:///C:/Users/Developer/Desktop/sample1
[progress] [00004.454] [configFinish] 1 / 1: 
2025-10-12T15:51:59.075 [warning] C:\Users\runneradmin\AppData\Local\dub\packages\dcd\0.16.0-beta.2\dcd\dsymbol\src\dsymbol\conversion\first.d:377:visit Could not locate object.d or object.di
2025-10-12T15:51:59.075 [warning] C:\Users\runneradmin\AppData\Local\dub\packages\dcd\0.16.0-beta.2\dcd\dsymbol\src\dsymbol\conversion\first.d:474:visit Could not resolve location of module 'std\stdio'

Please note the issue about the missing location of object.d and std\stdio.
Interestingly while clicking with CTRL + left mouse click on import std.stdio the source code file of stdio.d is opened.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions