-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Bug: stack trace line numbers are incorrect #5129
Comments
Please provide a reproducible example. |
I'm sorry, I thought this is a known problem. I write a ton of projects in coffeescript and it's the same story every time. config = (require 'cson').requireFile('./config.cson')
class Foo
error: ->
throw new Error('bad thing')
(new Foo).error()
|
Can you find an example that doesn’t involve another library? |
I'm honestly not sure. Pretty much all code involves some libraries so is this really necessary? I might keep looking but it might take some time, Maybe tomorrow I'll find some |
If I change the first line of your example to coffee ./test.coffee
Error: bad thing
at Foo.error (~/Sites/coffeescript/test.coffee:5:11)
at Object.<anonymous> (~/Sites/coffeescript/test.coffee:7:11)
at Object.<anonymous> (~/Sites/coffeescript/test.coffee:1:1) So clearly not every import causes this. If you can produce a minimal test case, with either no library involved or a very minimal (like “hello world”) library that doesn’t have any complexity, I’ll reopen the ticket. |
I've too seen wrong locations in stack traces but can't come up with a concrete example at the moment. |
Maybe having this issue closed isn't such a good idea after all? Either I'm living in a bubble; I am the only coffeescript coder in the world; or everyone else is affected by this as well so keeping this issue open could lead to some external help. |
Expected Behavior
When running code with
coffee
line numbers in stack traces should be correctCurrent Behavior
They're not
Context
This goes pretty far in history of CoffeeScript. I don't think they were ever correct in 2+
The text was updated successfully, but these errors were encountered: