-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
I am trying to debug a busted unit test, which runs fine from the command-line using busted .
When I run in the debugger, it fails to load the busted module local busted = require("busted"):
paul@Pauls-MacBook LrDominantColor.lrdevplugin % /usr/bin/env 'LUA_CPATH=/usr/local/lib/lua/5.4/?.so;/usr/local/lib/
lua/5.4/loadall.so;./?.so;/Users/paul/.luarocks/lib/lua/5.4/?.so' 'LUA_PATH=/usr/local/lib/luarocks/rocks-5.4/?/?.lua
;/usr/local/Cellar/luarocks/3.12.0/share/lua/5.4/?.lua;/usr/local/share/lua/5.4/?.lua;/usr/local/share/lua/5.4/?/init
.lua;/usr/local/lib/lua/5.4/?.lua;/usr/local/lib/lua/5.4/?/init.lua;./?.lua;./?/init.lua;/Users/paul/.luarocks/share/
lua/5.4/?.lua;/Users/paul/.luarocks/share/lua/5.4/?/init.lua;;' /Users/paul/.vscode/extensions/actboy168.lua-debug-2.
0.12-darwin-x64/runtime/darwin-x64/lua54/lua -e dofile\"/Users/paul/.vscode/extensions/actboy168.lua-debug-2.0.12-dar
win-x64/script/launch.lua\"\ DBG\"68128\" /Users/paul/src/personal/lr-dominant-color/LrDominantColor.lrdevplugin/Calc
ulateColor_spec.lua
/Users/paul/.vscode/extensions/actboy168.lua-debug-2.0.12-darwin-x64/runtime/darwin-x64/lua54/lua: ...olor/LrDominantColor.lrdevplugin/CalculateColor_spec.lua:5: module 'busted' not found:
no field package.preload['busted']
no file '/Users/paul/src/personal/lr-dominant-color/busted.lua'
no file '/Users/paul/src/personal/lr-dominant-color/busted.lua'
no file '/Users/paul/src/personal/lr-dominant-color/busted.so'
no file '/Users/paul/src/personal/lr-dominant-color/busted.so'
stack traceback:
[C]: in function 'require'
...olor/LrDominantColor.lrdevplugin/CalculateColor_spec.lua:5: in main chunk
[C]: in ?
This is my launch configuration:
{
"name": "Busted Test",
"type": "lua",
"request": "launch",
"program": "${workspaceFolder}/LrDominantColor.lrdevplugin/CalculateColor_spec.lua",
"args": [],
"cwd": "${workspaceFolder}/LrDominantColor.lrdevplugin",
"env": {
"LUA_PATH": "/usr/local/lib/luarocks/rocks-5.4/?/?.lua;/usr/local/Cellar/luarocks/3.12.0/share/lua/5.4/?.lua;/usr/local/share/lua/5.4/?.lua;/usr/local/share/lua/5.4/?/init.lua;/usr/local/lib/lua/5.4/?.lua;/usr/local/lib/lua/5.4/?/init.lua;./?.lua;./?/init.lua;/Users/paul/.luarocks/share/lua/5.4/?.lua;/Users/paul/.luarocks/share/lua/5.4/?/init.lua;;",
"LUA_CPATH": "/usr/local/lib/lua/5.4/?.so;/usr/local/lib/lua/5.4/loadall.so;./?.so;/Users/paul/.luarocks/lib/lua/5.4/?.so"
},
},I have installed busted using luarocks on macOS. Any suggestions would be greatly appreciated.
Metadata
Metadata
Assignees
Labels
No labels