Source maps are broken in the debugger on Windows #9116
Description
-
Install the latest Atom on Windows.
-
Install any coffeescript package (for example, color-picker).
-
Open the debugger (Ctrl-Alt-I by default).
-
Try to open any coffeescript file in the debugger. It will show the JS code instead of coffee (problem 1, see screenshot).
-
Try to set the breakpoint; it will not show the breakpoint and show the empty file instead (problem 2, see screenshot).

-
Try to find the corresponding sources in the tree, it will show this (problem 3):

(that's weird because it places full path
C:\Users\USERNAME\etc\etc\*.coffeeinside of aC:\Users\USERNAME, but it should show only file name such asfile.coffeewithout path there as shown in the next tree leaf)
There is a //# sourceMappingURL comment in the JS code shown on the first screenshot. I've decoded it from base64 and the relevant part seems to be the following:
"sources": [
"C:\\Users\\USERNAME\\.atom\\packages\\color-picker\\lib\\ColorPicker-view.coffee"
],
I am not sure but it seems that the code contributed in #3062 is no longer working. It seems that that contributed code is still there:
Line 97 in d941071
| filePath = '/' + path.resolve(filePath).replace(/\\/g, '/') |

Activity
ForNeVeR commentedon Oct 12, 2015
It seems that maybe that hack should be also applied to the
compilefunction of thecoffee-scriptmodule:atom/src/coffee-script.js
Line 21 in fb2a45d
izuzak commentedon Oct 13, 2015
Closing since #9122 was merged.
lock commentedon Jan 20, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!