Skip to content

Commit

Permalink
fix: fix issue #304
Browse files Browse the repository at this point in the history
  • Loading branch information
magnus-madsen committed Sep 9, 2023
1 parent bb6706e commit f0d4a57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/src/engine/flix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,13 @@ export async function start(input: StartEngineInput) {
args.push('--explain')
}

//
// WARNING: WE MUST CONNECT TO 127.0.0.1 AND NOT LOCALHOST.
//
// SEE https://github.com/microsoft/vscode/issues/192545
//
const instance = (flixInstance = spawn('java', args))
const webSocketUrl = `ws://localhost:${port}`
const webSocketUrl = `ws://127.0.0.1:${port}`

// forward flix to own stdout & stderr
instance.stdout.pipe(process.stdout)
Expand Down

0 comments on commit f0d4a57

Please sign in to comment.