Skip to content
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

Enable auto-completion of error fields #9107

Closed
locker opened this issue Sep 7, 2023 · 0 comments · Fixed by #9768
Closed

Enable auto-completion of error fields #9107

locker opened this issue Sep 7, 2023 · 0 comments · Fixed by #9768
Assignees
Labels
app feature A new functionality

Comments

@locker
Copy link
Member

locker commented Sep 7, 2023

Link to the design document

To make an error object easier to use, we’ll implement the __autocomplete method. The method will enable auto-completion of the error object fields in the console. We’ll enable auto-completion for both built-in and payload fields.

@locker locker added feature A new functionality app labels Sep 7, 2023
@CuriousGeorgiy CuriousGeorgiy self-assigned this Feb 12, 2024
CuriousGeorgiy added a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 4, 2024
Cdata objects cannot have an `__autocomplete` metamethod (it's our custom
metamethod). To work this around, we should also lookup the
`__autocomplete` method using an object's `__index` metamethod.

Part of tarantool#9107

NO_CHANGELOG=<not a reported bug>
NO_DOC=<bugfix>
CuriousGeorgiy added a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 4, 2024
Let's add an `__autocomplete` method to enable error autocompletion and
make the error object easier to use. It will suggest error object fields
(including payload fields) and methods.

Closes tarantool#9107

NO_DOC=<not a documentable feature>
CuriousGeorgiy added a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 4, 2024
Cdata objects cannot have an `__autocomplete` metamethod (it's our custom
metamethod). To work this around, we should also lookup the
`__autocomplete` method using an object's `__index` metamethod.

Part of tarantool#9107

NO_CHANGELOG=<not a reported bug>
NO_DOC=<bugfix>
CuriousGeorgiy added a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 4, 2024
Let's add an `__autocomplete` method to enable error autocompletion and
make the error object easier to use. It will suggest error object fields
(including payload fields) and methods.

Closes tarantool#9107

NO_DOC=<not a documentable feature>
CuriousGeorgiy added a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 4, 2024
Let's add an `__autocomplete` method to enable error autocompletion and
make the error object easier to use. It will suggest error object fields
(including payload fields) and methods.

Closes tarantool#9107

NO_DOC=<not a documentable feature>
CuriousGeorgiy added a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 4, 2024
Let's add an `__autocomplete` method to enable error autocompletion and
make the error object easier to use. It will suggest error object fields
(including own and inherited payload fields) and methods.

Closes tarantool#9107

NO_DOC=<not a documentable feature>
CuriousGeorgiy added a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 5, 2024
Cdata objects cannot have an `__autocomplete` metamethod (it's our custom
metamethod). To work this around, we should also lookup the
`__autocomplete` method using an object's `__index` metamethod.

Part of tarantool#9107

NO_CHANGELOG=<not a reported bug>
NO_DOC=<bugfix>
CuriousGeorgiy added a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 5, 2024
Let's add an `__autocomplete` method to enable error autocompletion and
make the error object easier to use. It will suggest error object fields
(including own and inherited payload fields) and methods.

Closes tarantool#9107

NO_DOC=<not a documentable feature>
CuriousGeorgiy added a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 5, 2024
Let's add an `__autocomplete` method to enable error autocompletion and
make the error object easier to use. It will suggest error object fields
(including own and inherited payload fields) and methods.

Closes tarantool#9107

NO_DOC=<not a documentable feature>
CuriousGeorgiy added a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 13, 2024
Cdata objects cannot have an `__autocomplete` metamethod (it's our custom
metamethod). To work this around, we should also lookup the
`__autocomplete` method using an object's `__index` metamethod.

Part of tarantool#9107

NO_CHANGELOG=<not a reported bug>
NO_DOC=<bugfix>
CuriousGeorgiy added a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 13, 2024
Let's add an `__autocomplete` method to enable error autocompletion and
make the error object easier to use. It will suggest error object fields
(including own and inherited payload fields) and methods.

Closes tarantool#9107

NO_DOC=<not a documentable feature>
sergepetrenko pushed a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 13, 2024
Cdata objects cannot have an `__autocomplete` metamethod (it's our custom
metamethod). To work this around, we should also lookup the
`__autocomplete` method using an object's `__index` metamethod.

Part of tarantool#9107

NO_CHANGELOG=<not a reported bug>
NO_DOC=<bugfix>
sergepetrenko pushed a commit to CuriousGeorgiy/tarantool that referenced this issue Mar 13, 2024
Let's add an `__autocomplete` method to enable error autocompletion and
make the error object easier to use. It will suggest error object fields
(including own and inherited payload fields) and methods.

Closes tarantool#9107

NO_DOC=<not a documentable feature>
sergepetrenko pushed a commit that referenced this issue Mar 14, 2024
Cdata objects cannot have an `__autocomplete` metamethod (it's our custom
metamethod). To work this around, we should also lookup the
`__autocomplete` method using an object's `__index` metamethod.

Part of #9107

NO_CHANGELOG=<not a reported bug>
NO_DOC=<bugfix>
sergepetrenko pushed a commit that referenced this issue Mar 14, 2024
Let's add an `__autocomplete` method to enable error autocompletion and
make the error object easier to use. It will suggest error object fields
(including own and inherited payload fields) and methods.

Closes #9107

NO_DOC=<not a documentable feature>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app feature A new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants