-
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
Unexpected Type_Error/Method unknown on project startup #11325
Comments
Turns out that |
Update: looks like the last argument in The reason why instrumented appears to re-use the result is, at it seems, that we index by the context's instrumented node which seems to be the actual application. |
One more info: Pinging @JaroslavTulach, as he wrote that logic initially. Not yet sure, why on refresh it somehow manages to not report type failures.
|
Thanks a lot for the detailed investigation. Yes, we have to improve the search logic. That means the issue goes towards me (unless you want to have some Truffle fun). |
Don't take all the fun to yourself. I can tackle it. |
Hubert Plociniczak reports a new STANDUP for the provided date (2024-10-14): Progress: Turned out #11272 is caused by the same issue #11251 after all.To not duplicate the effort moved on to #11325. A hidden type error is wrapped in a Panic which later causes the method not found issue on startup. Unsure yet where the type error is coming from. It should be finished by 2024-10-16. Next Day: Next day I will be working on the #11325 task. Continue investigating the issue |
Hubert Plociniczak reports a new STANDUP for yesterday (2024-10-15): Progress: UnresolvedConstructor in autoscoping leads to us building Application node for function argument. That new Application node inherits ID from its parent Application. In fact all such newly created nodes (if there are more autoscoping arguments) inherit ID from the same Application node. This clashes with caching and causes the underlying bug. It should be finished by 2024-10-16. Next Day: Next day I will be working on the #11325 task. Figure out a unit test and fix the issue. |
The reason why initially we get the type error and later it disappears is because of... ID maps. Initially, I would claim that even the first type error should not be happen/be displayed to the user as it causes confusion. |
No, the error shall not be happening regardless of UUIDs. Does the error happen in CLI?
What is the stacktrace when the path is being discovered? By whom? Who needs it? |
No, because there are no UUIDs.
That's something I was hoping you will have the answer since you added that search-via-parent path. I'm guessing you wanted to cache the results? No UUID no caching. |
You can add UUID and used them even from CLI. Demo is in Instrumentor_Spec.enso.
I can take over and debug the problem. Then I am sure I will see the stacktrace. Or you just paste it here to remind me where is the code we are talking about! |
Hubert Plociniczak reports a new STANDUP for the provided date (2024-10-16): Progress: Struggled to write a unit test that identifies the problem exactly. In the end, also discovered why type error may dissapear - GUI sends IdMap and then the search path, that infers UUID for autoscoping arguments, works. It should be finished by 2024-10-16. Next Day: Next day I will be working on the #11325 task. Finish PR with a fix for the corner case. |
Hubert Plociniczak reports a new STANDUP for yesterday (2024-10-17): Progress: Created a fix that also correctly handles other unit tests. Still investigating if more such corner cases can happen. It should be finished by 2024-10-18. Next Day: Next day I will be working on the #11325 task. More testing is needed. Address PR review. |
Encountering regularly in a project a missing method Panic such as:
Surprisingly, when we refresh the project, it disappears. Similarly, if (IR) caches for the project are there, the project will also continue to load without hiccups.
The text was updated successfully, but these errors were encountered: