Incorrect error locations reported in the stacktrace

Description

The following code produces an incorrect stacktrace:

The problem is actually on the 8th line. As a matter of fact - there's nothing at location 6:31.
This is a pretty serious problem as many tools parse stacktraces for error locations.
Here's a related discussion in cider's issue tracker.

Patch: clj-1568.patch
Screened by: Alex Miller

Environment

None

Activity

Show:
Alex Miller
January 12, 2015, 2:07 PM

Whenever people feel this is ready for screening, just switch the Approval from Incomplete to Vetted.

Nicola Mometto
January 12, 2015, 2:39 PM

Updated patch removing the changes to Compiler.compile as they seem to be useless, by Daniel's tests

Daniel Solano Gómez
January 14, 2015, 4:26 PM

I have cleaned up my test code a bit and put together a combined patch that includes both the fix and the tests.

Bozhidar Batsov
January 14, 2015, 5:12 PM

Great! Looking forward to seeing this merged.

Bozhidar Batsov
February 20, 2015, 1:50 PM

Seems we can finally merge this!

Assignee

Unassigned

Reporter

Bozhidar Batsov

Labels

Approval

Ok

Patch

Code and Test

Fix versions

Affects versions

Priority

Major
Configure