Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions Scripts/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ exports.resolveRdbgPath = async function() {
})

process.onDidExit((status) => {
if (status == 1) reject(err)
if (status == 1) {
console.error("An error occured while determining `rdbg` path.")
reject(err)
}

str = str.trim()
if (str.length == 0 || str == "rdbg not found") {
Expand All @@ -39,7 +42,7 @@ exports.resolveRubyDebugSocketPath = async function() {
cwd: nova.workspace.path,
args: ["rdbg", "--util=list-socks"],
stdio: ["ignore", "pipe", "pipe"],
shell: true
shell: false
})

let str = ""
Expand All @@ -54,7 +57,10 @@ exports.resolveRubyDebugSocketPath = async function() {
})

process.onDidExit((status) => {
if (status == 1) reject(err)
if (status == 1) {
console.error("An error occured while determining open rdbg sockets.")
reject(err)
}

str = str.trim()
if (str.length == 0) {
Expand Down Expand Up @@ -92,7 +98,10 @@ exports.generateRubyDebugSocketPath = async function() {
})

process.onDidExit((status) => {
if (status == 1) reject(err)
if (status == 1) {
console.error("An error occured whyle generating rdbg socket.")
reject(err)
}

str = str.trim()
if (str.length == 0) {
Expand Down