coffeescript icon indicating copy to clipboard operation
coffeescript copied to clipboard

WIP: Output JS-compatible line numbers

Open helixbass opened this issue 4 years ago • 5 comments

@GeoffreyBooth re-opening against master

See original PR: #5264

helixbass avatar Dec 30 '19 20:12 helixbass

Hey, are you still working on this? coffeescript really needs line numbers in stack traces fixed

thisredone avatar May 07 '20 17:05 thisredone

This should only affect line numbers in files which use irregular linebreak characters, so not sure if it's likely to address your issue

Can you give an example though where it's currently incorrect?

helixbass avatar May 07 '20 22:05 helixbass

There's something here: #5129 It's sort of strange. I guess maybe no one but me is using the coffee binary but I honestly don't remember the last time I've worked on a project (and I work on a lot of projects of all sizes on both Linux and Windows) that had correct stack traces.

thisredone avatar May 07 '20 22:05 thisredone

I don't doubt there's an issue, but to fix it we need a minimal reproducible case. If you could provide as small an example as possible where the line numbers are wrong, either for stack traces or source maps, that would give us what we need to fix the bug.

GeoffreyBooth avatar May 07 '20 22:05 GeoffreyBooth

Just to confirm on my side, line numbers are incorrect with .coffee.md extensions, it has been the case for ages.

wdavidw avatar Aug 30 '21 21:08 wdavidw