Skip to content

Commit 9ca6f92

Browse files
authored
Increase Lua's debug path size. (#2298)
When Lua reports a stack traceback, it prints the path to the files. But by default, right now, it's limited to 60 characters, which gets super annoying when trying to work on the codebase, as paths are ellipsized if they are bigger, which prevents from Ctrl-clicking on them to go to the right location in the IDE/editor. This increases the limit to double the default size, which so far has worked fine for me. Before: ``` stack traceback: .../premake/modules/gmake/tests/cpp/test_make_pch.lua:66: ``` After: ``` stack traceback: /home/joao/dev/tools/premake/modules/gmake/tests/cpp/test_make_pch.lua:66: ```
1 parent 1a80408 commit 9ca6f92

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

contrib/lua/src/luaconf.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -782,9 +782,10 @@
782782
** without modifying the main part of the file.
783783
*/
784784

785-
786-
787-
785+
#ifdef LUA_IDSIZE
786+
#undef LUA_IDSIZE
787+
#endif
788+
#define LUA_IDSIZE 120
788789

789790
#endif
790791

0 commit comments

Comments
 (0)