Skip to content

Format the output so it can be clicked #296

Description

@linonetwo

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.

Activity

  1. WeslyG commented on Jan 23, 2022

    @WeslyG

    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)}`
        },
      },
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions