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

Bug: could not format with verify or bad without #747

Closed
d-enk opened this issue Aug 31, 2023 · 0 comments · Fixed by #754
Closed

Bug: could not format with verify or bad without #747

d-enk opened this issue Aug 31, 2023 · 0 comments · Fixed by #754
Labels
bug Something isn't working

Comments

@d-enk
Copy link

d-enk commented Aug 31, 2023

[email protected]

from

local obj = {}

obj.func = function()
  return obj
end

obj. --
func(). --
func(). --
func()

after stylua --verify -

error: could not format file test.lua: INTERNAL ERROR: Output AST generated a syntax error. Please report this at https://github.com/johnnymorganz/stylua/issues
error occurred while creating ast: unexpected token ``. (starting from line 8, character 1 and ending on line 8, character 1)
additional information: expected nam

after stylua -

local obj = {}

obj.func = function()
	return obj
end

obj. --func(). --func(). --func()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants