Skip to content
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

Add support for Source Map Revision 3. #207

Merged
merged 1 commit into from Dec 18, 2013
Merged

Add support for Source Map Revision 3. #207

merged 1 commit into from Dec 18, 2013

Conversation

ghost
Copy link

@ghost ghost commented Dec 17, 2013

This pull request introduces source map generation.

The generated source map should follow the mapping behavior of the Sass Ruby implementation relatively well. I am looking for people who want to give it a test. Feedback is more than welcome.

@akhleung How should I proceed to get this change merged.

@akhleung
Copy link

Thanks, this is awesome! Lemme just grab lunch and wait for the Travis build to finish, then I'll look into merging this in.

@QuLogic
Copy link
Contributor

QuLogic commented Dec 17, 2013

Travis failed with autotools. You need to update Makefile.am with your new files as well.

The parser has been adjusted to keep track of the current position
(line and column) instead of the current line. The position to the start
of the token an AST node is generated from, is stored in the node. During
code generation we keep track of the current position in the target file.
For each node of interest we create a mapping between the position in the
source and target file. Finally, a source map following the Source Map
Revision 3 specification can be generated for the collected mappings.
@ghost
Copy link
Author

ghost commented Dec 17, 2013

I have pushed an update. Let's hope the build will succeed now.

@akhleung
Copy link

Thanks -- the build failure probably has nothing to do with your pull request; we've just been lax in keeping the Travis script up to date!

@QuLogic
Copy link
Contributor

QuLogic commented Dec 17, 2013

the build failure probably has nothing to do with your pull request; we've just been lax in keeping the Travis script up to date!

No, @svnieuw added new files to Makefile but not Makefile.am.

@akhleung
Copy link

Hmm, I thought Travis had already been choking on something else....

@QuLogic
Copy link
Contributor

QuLogic commented Dec 17, 2013

Hmm, I thought Travis had already been choking on something else....

True, there seems to be only about 50% passing, so it should probably be looked into at some point.

@akhleung
Copy link

Oh yeah, we're running the entire test suite (including the "to-do" tests), so that's expected to fail ... but I thought that Travis wasn't even able to compile for some other reason (like, we were passing the wrong flag to autotools or something).

@QuLogic
Copy link
Contributor

QuLogic commented Dec 18, 2013

Oh yeah, we're running the entire test suite (including the "to-do" tests), so that's expected to fail ...

But the "to-do" tests don't make up 50% of the tests, so something definitely needs to be checked there. (FYI, the TAP driver in PR #169 correctly understands TODO items.)

but I thought that Travis wasn't even able to compile for some other reason (like, we were passing the wrong flag to autotools or something).

Seems to be working fine so far.

akhleung pushed a commit that referenced this pull request Dec 18, 2013
Add support for Source Map Revision 3.
@akhleung akhleung merged commit 6bc11e4 into sass:master Dec 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants