-
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
Debugger doesn't show atom fields when there are multiple constructors #10675
Comments
It is annoying to see the fields of sibling Atoms in the debugger. The simplest fix is to not list them in
|
@JaroslavTulach Because Atom.isMemberReadable only returns true for constructor fields. Debugger does not avoid members that are invocable - it normally displays them as functions.
That seems like a historical inheritance. I have no idea. We should rethink the interop protocol for Atom. Let's consider the following snippet:
My proposition is:
For convenience, we can introduce a special internal member of atom called, say, |
Pavel Marek reports a new STANDUP for today (2024-10-06): Progress: - Changing and testing the polyglot interop contract for Atom to support the debugging properly. It should be finished by 2024-10-09. |
Pavel Marek reports a new STANDUP for today (2024-10-07): Progress: - Helping with aws-wrapper project in #10714 and fixing AWS_Tests
|
Pavel Marek reports a new STANDUP for today (2024-10-08): Progress: - Helping to fix more module-related issues in #10714.
|
|
Pavel Marek reports a new STANDUP for today (2024-10-14): Progress: - Helping Hubert with modularization issues - #11323
|
From the
InteropLibrary
perspective, anAtom
lists all field for all constructors as members. But it should list just fields for the constructor that was used to construct that atom.The
Atom
members are, e.g., displayed as fields in the chrome inspector debugger. For the following atom:we would like to see only
f1
andf2
fields, not any other.An example of wrongly listed fields in the debugger:
All field accessors for all constructors are registered in AtomConstuctor.collectFieldAccessors.
Tasks
Related to:
The text was updated successfully, but these errors were encountered: