Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format the output so it can be clicked #296

Open
linonetwo opened this issue Aug 7, 2021 · 1 comment
Open

Format the output so it can be clicked #296

linonetwo opened this issue Aug 7, 2021 · 1 comment

Comments

@linonetwo
Copy link

Currently the error message will be like:

    at BrowserWindow.<anonymous> (/Applications/TiddlyGit.app/Contents/Resources/app.asar/.webpack/main/webpack:/TiddlyGit/src/services/windows/index.ts:227:24)

In which the former part can be clicked

( /Applications/TiddlyGit.app/Contents/Resources/app.asar/.webpack/main/webpack )

but it is actually useless.

I hope we can click on the later part

(/TiddlyGit/src/services/windows/index.ts:227:24)

but it is start with project folder name /TiddlyGit , so when open the log file with VSCode ,it won't detect this as path.

Hope we can properly format the path, so later part can be click or copy to used for the file jump.

@WeslyG
Copy link

WeslyG commented Jan 23, 2022

I was able to do something like this. It doesn't work exactly as it should, but it will allow you to click on it.

webpack.dev.js

output: {
    devtoolModuleFilenameTemplate: info => {
      return `file:///${encodeURI(info.absoluteResourcePath)}`
    },
  },

linonetwo added a commit to tiddly-gittly/TidGi-Desktop that referenced this issue Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants