question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong details and symbols returned by Completions

See original GitHub issue

Compiler version

3.0.0-RC2

Minimized code

For:

object A {
  java.nio.file.Files.readAttributes@@
}

when using:

Completion.completions(pos)

where pos is set at @@

Output

Completion(
  readAttributes,
  method readAttributes,
  List(method readAttributes, method readAttributes)
)

Expectation

Previously for 3.0.0-RC1 we were getting:

List(Completion(
  readAttributes,
 (x$0: java.nio.file.Path, x$1: String, x$2: java.nio.file.LinkOption*):  java.util.Map[String, Object],
 List(method readAttributes))
)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
smartercommented, Mar 30, 2021

but I haven’t received a final answer for.

Were you waiting for me to give an answer by the way? I didn’t reply to this thread because I saw @tgodzik was participating already, and also I stopped maintaining dotty.tools.dotc.interactive ever since we abandoned the Dotty Language Server, so please don’t rely on me for anything important!

0reactions
alexarchambaultcommented, Mar 30, 2021

I think Ammonite would benefit from this approach, am I right @alexarchambault?

I guess it should help there too, yes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing issues in your code as you type - Apple Developer
One of the symbols is in. To insert a suggested completion into your source code, select the item and press Return. You can...
Read more >
julia/REPLCompletions.jl at master · JuliaLang/julia - GitHub
# Determines the return type with the Compiler of a function call using the type information of the arguments. function get_type_call(expr::Expr, ...
Read more >
Code Completion With Special Characters
Hi, I'm using code completion in my plugin to create expressions which begin with ... such as "hello", should be returned as bad...
Read more >
java - What does a "Cannot find symbol" or "Cannot resolve ...
A "Cannot find symbol" error means that the compiler cannot do this. ... Perhaps you imported the wrong type; e.g. due to IDE...
Read more >
The "Cannot find symbol" Compilation Error - Baeldung
The “cannot find symbol” error comes up mainly when we try to use a variable that's not defined or declared in our program....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found