-
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
Send info about function values to the IDE #6957
Comments
The #6939 is already doing what you are proposing: Lines 328 to 330 in c9999b1
|
Kind of, but not exactly:
Each
Will the code currently proposed in #6939 deliver |
One more example that illustrates the problem with function value vs. the last executed function: The program "hides" the |
A follow-up to the call when we were discussing the case when the function is read from the variable main =
x1_1 = T.func1
x1_2 = x1_1
x1 = x1_2 1 2
x1
type T
A
func1 x y = x + y
Tracking PR with a test case #6986 |
Summary of the discussion with @Frizi and @JaroslavTulach IDE needs additional information to display the placeholders for the arguments of partially applied functions.
|
Dmitry Bushev reports a new STANDUP for yesterday (2023-06-26): Progress: Started working on the issue. Updated the API types. Updated the language server part up to the runtime connector. Started working on the engine It should be finished by 2023-06-29. Next Day: Next day I will be working on the #6957 task. Continue working on the task |
Dmitry Bushev reports a new STANDUP for today (2023-06-27): Progress: Continue working on the issue. Updated the polyglot-api types. Created a test reproducing the scenario. with returned function. Started updating the instrumentation to obtain the method call information from the returned function value. It should be finished by 2023-06-29. Next Day: Next day I will be working on the #6957 task. Continue working on the task |
Dmitry Bushev reports a new STANDUP for yesterday (2023-06-28): Progress: Continue working on the issue. Added logic to extract the function schema from the return function. Found an issue with a type constructor. Started looking for a workaround It should be finished by 2023-06-29. Next Day: Next day I will be working on the #6957 task. Continue working on the task |
Dmitry Bushev reports a new STANDUP for today (2023-06-29): Progress: Continue working on the issue. Started creating the function schema only for the return value. Updated the runtime tests. Updated the language server logic. Updated the docs. Tested in the IDE It should be finished by 2023-06-29. Next Day: Next day I will be working on the #6957 task. Continue working on the task |
close #6957 Extend `ExpressionUpdate` message and send a function schema if the returned value is a function.
Based on language server API discussion, analysis while working on bug 6903 and request for changes in #6939 I am proposing following path forward:
ProgramExecutionSupport.scala needs to do following when composing
sendExpressionUpdate
:value.getType
isStandard.Builtins.Main.Function
MethodPointer
to the function definition(value.value : runtime.Function).getSchema()
to obtainhasPreApplied
array and send it to the IDE somehowThis fixes problems with partially applied constructors and functions and lets the IDE know what arguments have already been applied sooner when
Function
value arrives. The IDE however needs to process this additional information somehow.The text was updated successfully, but these errors were encountered: