You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue occur when all extensions are disabled?: Yes/No
Yes
VS Code Version: 1.91.0
OS Version: Win 11
Steps to Reproduce:
write and application that logs error stack trace to a file
execute that application in a different workspace
open the log file in that different workspae
try and click on it
get the "Unable to open file:js:1000:16" error
sample stack trace with failing links:
`
10:04:00.241 debug: TypeError: Cannot read properties of undefined (reading 'id')
at Asset.setFolderPath (file:///C:/Git/sfmc-devtools/lib/metadataTypes/Asset.js:994:35)
at Asset.postRetrieveTasks (file:///C:/Git/sfmc-devtools/lib/metadataTypes/Asset.js:572:14)
`
workaround:
option 1: remove the line number and column and things start working immediately
option 2: drag & drop the log file from your "different workspace" over to the vscode window for the application you built and the links start working immediately
sample stack trace with working links for option 1:
`
10:04:00.241 debug: TypeError: Cannot read properties of undefined (reading 'id')
at Asset.setFolderPath (file:///C:/Git/sfmc-devtools/lib/metadataTypes/Asset.js)
at Asset.postRetrieveTasks (file:///C:/Git/sfmc-devtools/lib/metadataTypes/Asset.js)
`
The text was updated successfully, but these errors were encountered:
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.91.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
JoernBerkefeld
changed the title
Vscode cannot open files from nodejs stack trace with linenumber
Vscode cannot open files from nodejs stack trace with line number
Jul 15, 2024
the same links work when printed to output / terminal tab but not when clicked on in a .log file
JoernBerkefeld
changed the title
Vscode cannot open files from nodejs stack trace with line number
Vscode cannot open files from nodejs stack trace with line number if outside of project folder
Jul 16, 2024
Does this issue occur when all extensions are disabled?: Yes/No
Yes
Steps to Reproduce:
sample stack trace with failing links:
`
10:04:00.241 debug: TypeError: Cannot read properties of undefined (reading 'id')
at Asset.setFolderPath (file:///C:/Git/sfmc-devtools/lib/metadataTypes/Asset.js:994:35)
at Asset.postRetrieveTasks (file:///C:/Git/sfmc-devtools/lib/metadataTypes/Asset.js:572:14)
`
workaround:
option 1: remove the line number and column and things start working immediately
option 2: drag & drop the log file from your "different workspace" over to the vscode window for the application you built and the links start working immediately
sample stack trace with working links for option 1:
`
10:04:00.241 debug: TypeError: Cannot read properties of undefined (reading 'id')
at Asset.setFolderPath (file:///C:/Git/sfmc-devtools/lib/metadataTypes/Asset.js)
at Asset.postRetrieveTasks (file:///C:/Git/sfmc-devtools/lib/metadataTypes/Asset.js)
`
The text was updated successfully, but these errors were encountered: