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

console: multiline input fails in some cases #4082

Open
Totktonada opened this issue Mar 27, 2019 · 2 comments
Open

console: multiline input fails in some cases #4082

Totktonada opened this issue Mar 27, 2019 · 2 comments
Labels
bug Something isn't working lua

Comments

@Totktonada
Copy link
Member

Tarantool 2.1.1-416-gbe7d940f5.

There are cases where loadstring + syntax error checks fails to provide a multiline input:

tarantool> function(
---
- error: '[string "function("]:1: ''<name>'' expected near ''('''
...

tarantool> function()
---
- error: '[string "function()"]:1: ''<name>'' expected near ''('''
...

However:

tarantool> return function(
         > ) end
---
- 'function: 0x40bb1770'
...

tarantool> return function()
         > end
---
- 'function: 0x40bb22c0'
...

It seems we need to check for ''<name>'' expected near ''(''' too, but don't sure.

See also b27871a.

@Totktonada
Copy link
Member Author

One more:

localhost:3311> y = function x()
---
- error: '[string "y = function x()"]:1: ''('' expected near ''x'''
...

@kyukhin kyukhin added the bug Something isn't working label Apr 8, 2019
@kyukhin kyukhin added this to the 2.1.3 milestone May 28, 2019
@kyukhin kyukhin modified the milestones: 2.1.3, 2.2.0 Jun 24, 2019
@Totktonada
Copy link
Member Author

More:

tarantool> function() return
---
- error: '[string "function() return"]:1: ''<name>'' expected near ''('''
...

@kyukhin kyukhin modified the milestones: 2.2.0, 2.3.0 Jul 9, 2019
@kostja kostja modified the milestones: 2.3.1, wishlist Aug 6, 2019
@Totktonada Totktonada changed the title Multiline input fails in some cases console: multiline input fails in some cases Jul 9, 2020
@kyukhin kyukhin removed this from the wishlist milestone Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lua
Projects
None yet
Development

No branches or pull requests

3 participants