Skip to content

File .gitignore causes an error #618

@serg3295

Description

@serg3295

Additional context
The problem has appeared since version 2.3.2

To Reproduce
Steps to reproduce the behavior:

  1. Create empty file a.lua
  2. Create .gitignore with content
./vscode
/*
!a.lua
  1. Open VS Code
  2. Open a.lua
  3. See error

err45

Provide logs

Log path: file:///home/serg/.vscode/extensions/sumneko.lua-2.3.2/server/log/file_home_serg_s.log
script/provider/provider.lua:766: attempt to get length of a nil value
stack traceback:
	[C]: in function 'xpcall'
	script/proto/proto.lua:143: in function <script/proto/proto.lua:122>
[Error - 9:09:40 PM] Request textDocument/semanticTokens/range failed.
  Message: [21:09:40.346][error][#0]: script/provider/provider.lua:766: attempt to get length of a nil value
stack traceback:
	[C]: in function 'xpcall'
	script/proto/proto.lua:143: in function <script/proto/proto.lua:122>

  Code: -32603 

Environment:

  • OS: linux mint
  • Is WSL remote?
  • Client: VSCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions