GithubHelp home page GithubHelp logo

Comments (5)

evanw avatar evanw commented on June 3, 2024

Yes, that is annoying. It seems to depend on whether the code originated from the page or from the console. To be specific, this CoffeeScript code reproduces your issue:

(require '../source-map-support').install()

window.foo = ->
  try
    throw new Error 'foo'
  catch e
    console.log e.stack

foo()

However, calling foo() from the dev console generates a link that looks exactly the same but that takes you to the sources tab instead of initiating a download. Using the web inspector on itself shows that the download link has target="_blank" but the sources tab link doesn't. It looks like it has to do with isExternal in WebInspector.linkifyURLAsNode. You should log a bug with Chrome DevTools to have this fixed.

from node-source-map-support.

olegbl avatar olegbl commented on June 3, 2024

Thanks for the prompt response!
I logged a Chromium bug for this issue at https://code.google.com/p/chromium/issues/detail?id=273113

from node-source-map-support.

olegbl avatar olegbl commented on June 3, 2024

It looks like this is fixed with the latest Chrome build (or perhaps a few versions ago) despite the Chromium bug still being open.

from node-source-map-support.

evanw avatar evanw commented on June 3, 2024

Weird. It still doesn't seem fixed for me, even on Canary (Version 37.0.2008.2 from today). For me it's actually worse than a new tab. I'm using the "servedir" node package to serve the files, which triggers a download of the *.coffee file.

from node-source-map-support.

olegbl avatar olegbl commented on June 3, 2024

Hm, well, I did change the sourcemaps to include the original files within the sourcemaps themselves (the sourcesContent field) - so maybe that's what caused the "fix" for me. Not sure.

from node-source-map-support.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.