Skip to content

Hover information not working with UFCS #319

@exoticus

Description

@exoticus
writeln(format("Hello World %s", b));

This is the output produced by hovering the above non UFC line, it works and hover info shown for format and writeln as expected

2020-06-26T08:01:14.589 [trace] app.d:79:processRequest Calling provideHover
2020-06-26T08:01:14.596 [trace] dcd.d:180:__lambda5 Server: 2020-06-26T08:01:14.596 [info] main.d:291:runServer Getting doc comment
2020-06-26T08:01:14.596 [trace] dcd.d:180:__lambda5 Server: 2020-06-26T08:01:14.596 [info] main.d:302:runServer Request processed in 0 milliseconds

However in case of this, only hover info shows for writeln but not for format

writeln("Hello World %s".format(b));

with the following output

2020-06-26T08:04:36.808 [trace] app.d:79:processRequest Calling provideHover
2020-06-26T08:04:36.815 [trace] dcd.d:180:__lambda5 Server: 2020-06-26T08:04:36.815 [info] main.d:291:runServer Getting doc comment
2020-06-26T08:04:36.815 [trace] dcd.d:180:__lambda5 Server: 2020-06-26T08:04:36.815 [warning] util.d:225:getSymbolsByTokenChain Could not find declaration of "Hello World %s" from position 194
2020-06-26T08:04:36.815 [trace] dcd.d:180:__lambda5 Server: 2020-06-26T08:04:36.815 [warning] doc.d:53:getDoc Could not find symbol
2020-06-26T08:04:36.815 [trace] dcd.d:180:__lambda5 Server: 2020-06-26T08:04:36.815 [info] main.d:302:runServer Request processed in 0 milliseconds

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