Skip to content

Error when trying to clear all postemptive spaces #580

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

Closed
user9713 opened this issue Jun 27, 2021 · 0 comments
Closed

Error when trying to clear all postemptive spaces #580

user9713 opened this issue Jun 27, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@user9713
Copy link

user9713 commented Jun 27, 2021

Describe the bug

Attempting to clear all postemptive spaces results in the error displayed in the screenshot

To Reproduce
Steps to reproduce the behavior:

  1. Enter a few newlines in your lua script on VSCode
  2. The ellipses should appear to indicate that there's a line with empty spaces
  3. Right click on the ellipses and select "Clear all postemptive spaces"

In the output console, the following message is displayed:

script\core\command\removeSpace.lua:26: attempt to call a nil value (field 'lineContent')
stack traceback:
	[C]: in function 'xpcall'
	script\proto\proto.lua:143: in function <script\proto\proto.lua:122>
[Error - 2:05:10 AM] Request workspace/executeCommand failed.
  Message: [02:05:11.816][error][#0]: script\core\command\removeSpace.lua:26: attempt to call a nil value (field 'lineContent')
stack traceback:
	[C]: in function 'xpcall'
	script\proto\proto.lua:143: in function <script\proto\proto.lua:122>

  Code: -32603 

Expected behavior
The empty spaces should be removed throughout all of the lua script

Screenshots
image

Environment (please complete the following information):

  • OS: Windows
  • Client: VSCode

Provide logs
service.log

@sumneko sumneko added the bug Something isn't working label Jun 28, 2021
@sumneko sumneko closed this as completed in 6772d37 Jul 1, 2021
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

No branches or pull requests

2 participants