Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Fix coffeescript source maps on Windows - #9122

Merged
maxbrunsfeld merged 1 commit into
atom:masterfrom
ForNeVeR:coffee-source-maps
Oct 12, 2015
Merged

maxbrunsfeld merged 1 commit into
atom:masterfrom
ForNeVeR:coffee-source-maps

Conversation

@ForNeVeR

Copy link
Copy Markdown
Contributor

I've done some research of current code and PR #3062 and have found that we not only should convert the slashes in the path, but also prepend file:/// to it.

After that source maps started to work on Windows for me. Please note that the similar code has been added to compile-cache module but I'm not sure whether we should/want to generalize and reuse this (because it doesn't prepend file:/// there and seems to be working fine).

This patch will fix issue #9116.

The file paths on Windows should be URLs with proper slashes and starting with file:///
@ForNeVeR ForNeVeR changed the title Fix coffeescript source maps Fix coffeescript source maps on Windows Oct 12, 2015
@maxbrunsfeld

Copy link
Copy Markdown
Contributor

Thanks so much for figuring this out!

maxbrunsfeld pushed a commit that referenced this pull request Oct 12, 2015
Fix coffeescript source maps on Windows
@maxbrunsfeld
maxbrunsfeld merged commit 0b6a695 into atom:master Oct 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants