-
Notifications
You must be signed in to change notification settings - Fork 323
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
Dropdown for Table.join right is wrong #5055
Comments
Please let us know how to determine what ends up in |
To determine what ends up in enso$ git diff engine/runtime/src/main/scala/org/enso/compiler/context/SuggestionBuilder.scala
diff --git a/engine/runtime/src/main/scala/org/enso/compiler/context/SuggestionBuilder.scala b/engine/runtime/src/main/scala/org/enso/compiler/context/SuggestionBuilder.scala
index b2161b2d3..23d9789da 100644
--- a/engine/runtime/src/main/scala/org/enso/compiler/context/SuggestionBuilder.scala
+++ b/engine/runtime/src/main/scala/org/enso/compiler/context/SuggestionBuilder.scala
@@ -106,6 +106,9 @@ final class SuggestionBuilder[A: IndexedSource](
_
) if !m.isStaticWrapperForInstanceMethod =>
val typeSignature = ir.getMetadata(TypeSignatures)
+ if (methodName.toString().contains("join")) {
+ System.out.println("Found method " + methodName)
+ }
val (selfTypeOpt, isStatic) = typePtr match {
case Some(typePtr) =>
val selfType = typePtr
@@ -200,6 +203,9 @@ final class SuggestionBuilder[A: IndexedSource](
}
val builder: TreeBuilder = Vector.newBuilder
+ if (module.toString().endsWith("Table")) {
+ System.err.println("Processing " + module)
+ }
builder += Tree.Node(
buildModule(
module, and stop when one is processing Doing that one finds out there is Value java_table which is seen as: BindingsMap$Type
name = "Table"
members = [ BindingsMap$Cons name="Value" arity = 1 allFieldsDefaulted=false ] e.g. offering Ideas @jdunkerley, @Frizi & co.? |
@jdunkerley Here are is a clue from Dmitry that I once got on debugging suggestions: If you want to observe the database, the easiest way is to create a file-based one instead of in-memory enso/engine/language-server/src/main/scala/org/enso/languageserver/boot/MainModule.scala Line 117 in c4c35c9
val sqlDatabase = SqlDatabase(languageServerConfig.directories.suggestionsDatabaseFile) and then use CLI $ sqlite3 /path/to/suggestions.db
|
@jdunkerley proposes to ignore |
Jaroslav Tulach reports a new STANDUP for yesterday (2023-02-23): Progress: - PR with design for
Next Day: Focus on serialization of suggestion cache. |
Jaroslav Tulach reports a new STANDUP for yesterday (2023-02-24): Progress: - discussion about
Next Day: Vacation on Monday. |
Jaroslav Tulach reports a new STANDUP for yesterday (2023-02-25): Progress: -
Next Day: Vacation on Monday.
|
Jaroslav Tulach reports a new STANDUP for yesterday (2023-02-28): Progress: -
Next Day: Cache invalidations & request timeout |
This task is automatically imported from the old Task Issue Board and it was originally created by jaroslavtulach.
Original issue is here.
Discovered during book clubing.
There is a drop down for
Table.join
right
argument! And it offersTable.Value
.Table.Value
is just a function which needs a parameter ofjava_table
, so it makes no sense to offer it astag_value
.Comments:
(jaroslavtulach - Feb 2, 2023)
The text was updated successfully, but these errors were encountered: