xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.05k stars 787 forks source link

xmake check command return unwanted header in syntax error message #3553

Closed MaxwellGengYF closed 1 year ago

MaxwellGengYF commented 1 year ago

Xmake Version

2.7.7

Operating System Version and Architecture

Any OS

Describe Bug

xmake check return syntax error with header @programdir/core/base/interpreter.lua:1679: this should be avoid so that message can be recognized.

Expected Behavior

Remove this header from message.

Project Configuration

No response

Additional Information and Error Logs

No response

waruqi commented 1 year ago

related pr: https://github.com/xmake-io/xmake-vscode/pull/177

it will ignore this error in sub-directory xmake.lua

error: @programdir/core/base/interpreter.lua:1680: ./test/xmake.lua:13: attempt to index a nil val
ue (global 'a')
stack traceback:
    [./test/xmake.lua:13]: in main chunk
waruqi commented 1 year ago

I have fixed on dev. xmake update -s dev