Make sure --dap mode only outputs dap things to stdout#291
Make sure --dap mode only outputs dap things to stdout#291matheusgomes28 wants to merge 7 commits intorokucommunity:masterfrom
Conversation
TwitchBronBron
left a comment
There was a problem hiding this comment.
Oops, sorry, didn't mean to click approve.
I haven't had time to test this locally yet, will try and take a look next week. I'm worried this will mess up all the logging in vscode.
In the mean time, can you try fixing the lint errors that showed up from the CI process?
eb53568 to
f43563f
Compare
@TwitchBronBron That's a fair concern. I did wonder ho the vscode extension is currently working rn. My guess is that it provides a different logging environment for the extensions? Either way, for the |
…into remove-dap-logging-from-stdout
…troying all transports)
|
Hey @matheusgomes28, could you give this PR another test locally? Your change was completely replacing all of the logger transports. However, we leverage those for other things like file system logging, funneling the logs back to the editor via the So instead, I only remove the I also refactored like 10-20 additional |
| import * as yargs from 'yargs'; | ||
| import { BrightScriptDebugSession } from './debugSession/BrightScriptDebugSession'; | ||
| import defaultLogger from '@rokucommunity/logger'; | ||
| import { logger, removeConsoleLogger } from './logging'; |
@TwitchBronBron unfortunately it did not work, here's the output from And this is my lazyvim config (nothing special was changed): return {
{
"mfussenegger/nvim-dap",
opts = function()
local dap = require("dap")
-- Register BrightScript adapter (using roku-debug via wrapper that suppresses stderr)
dap.adapters.brightscript = {
type = "executable",
command = "roku-debug",
args = { "--dap" },
}
end,
},
}I've basically pulled the current state of the repo, built and installed it with |
Redirect the logging to
stderrif in--dapmode. Seems to fix running it as anvim-dapplugin.