diff --git a/lib/runtime/console.js b/lib/runtime/console.js index e1cc4132..7aca81b8 100644 --- a/lib/runtime/console.js +++ b/lib/runtime/console.js @@ -248,6 +248,9 @@ function hasKeyboardModifier (event) { function handleLink (event, uri) { if (!hasKeyboardModifier(event)) return false + // To handle links to new stacktrace shortened paths introduced in Julia 1.6.0 + uri = uri.replace(/\B([/\\]?~[/\\])/,require('os').homedir().concat("/")) + if (client.isActive()) { fullpath(uri).then(([path, line]) => { ink.Opener.open(path, line - 1, {