Skip to content

Commit 8636bbf

Browse files
committed
Increase Lua's debug path size.
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 28ac93d commit 8636bbf

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)