Code Monkey home page Code Monkey logo

Comments (6)

Strum355 avatar Strum355 commented on May 18, 2024

This doesnt seem to be working for me on latest commit.

from kotlin-language-server.

fwcd avatar fwcd commented on May 18, 2024

@Strum355 Could you please paste the output log?

from kotlin-language-server.

Strum355 avatar Strum355 commented on May 18, 2024
[INFO]      async0      main    Hovering at file:///home/noah/Kotlin/main.kt 5:8
[INFO]      async0      main    Re-parsing main.kt 5:5-6:26
[INFO]      async0      main    Compiling var x = something(10)
[INFO]      async0      main    Finished in 27 ms
fun something(x: Int): String {
    return "test ${x}"
}

fun main(args: Array<String>) {
    var x = something(10)
    println(x)
}

Hovering over x in the println call gives the correct hover, however hovering over x in the previous line gives nothing. Unfortunately this is all the log says. Is there a more verbose log i should enable?

from kotlin-language-server.

fwcd avatar fwcd commented on May 18, 2024

@Strum355 Ok, I will look into this soon. Sometimes the LS fails to infer a type, but should show an [ERROR] type upon hover nevertheless.

from kotlin-language-server.

fwcd avatar fwcd commented on May 18, 2024

@Strum355 I can't reproduce the issue.

image

The language server does not throw a stack trace either according to your log, so I suppose you are still somehow running an older version. Did you try building the the repo yourself or are you using the version on the VSCode marketplace?

from kotlin-language-server.

Strum355 avatar Strum355 commented on May 18, 2024

Ah yea it works from master, marketplace one must be an older one then. I dont remember if i was running from master in Extension Development mode or not at the time that I noticed it wasnt working. My bad ^^

from kotlin-language-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.