Basic Sourcemap support #1293

Closed
chriseppstein opened this Issue May 22, 2013 · 18 comments

Comments

Projects
None yet
Owner

chriseppstein commented May 22, 2013

I'd like to ship basic sourcemap support in 0.13 for application stylesheets and then follow up with more extensive support for extensions's stylesheets in a future release.

This issue will track what basic support means and will block the 0.13 release.

See also: #1108 for ideas around full sourcemap support

Hello, I managed my compass/sass/sourcemaps to work with the following settings:

Installed:
https://gemnasium.com/gems/compass-sourcemaps/versions/0.12.4.sourcemaps.a4836f1

Working with:

  • compass 0.12.4.sourcemaps (clavery-sourcemaps)
  • sass 3.3.0.alpha.134 (Bleeding Edge)

Hope this helps.

Owner

chriseppstein commented Jun 12, 2013

@ggodoyoliveira is there a fork here on github that I can use to read the diffs and see what you did?

It doesn`t seem to work anymore. Now back again to error "ERROR: Cannot load compass."

For now I'll not be working with compass, only sass to generate sourcemaps (sass --sourcemap --watch sass/main.scss:css/main.css)

robwierzbowski referenced this issue in gruntjs/grunt-contrib-compass Jun 24, 2013

Closed

Sourcemaps #23

+1

er1z commented Sep 16, 2013

I'm a bit confused which ticket should we regard into this issue.

Of course, +1.

I actually managed to work with sourcemaps okay using @ggodoyoliveira settings it's been some months already:

image

  • gem install sass --pre
  • gem install compass --pre
  • gem install compass-sourcemaps --pre
  • Using compass-generic-config

What I couldn't make it work at all was the sprite generation only regarding #public_url, as I said on my comment @ #1339

But yeah, basic support is okay with compass-sourcemaps using compass' watch. The error "ERROR: Cannot load compass." just happens when invoking compass from sass as sass --compass --watch stylesheet.scss:stylesheet.css

benjy commented Nov 21, 2013

+1 for this.

Bump.

+1 for this

tjtate commented Dec 3, 2013

+3.14159265358979323846264338327950288419716939937510.... :)

luyujun commented Dec 9, 2013

+1 for this

Owner

chriseppstein commented Dec 11, 2013

It's in compass 1.0.0.alpha.16. Just released. File bugs if you find them!

@chriseppstein Does the sourcemap calls changed?

Having the options below on config.rb does not generate the .map files, using Sass 3.3.0.rc.2 (Maptastic Maple) + Compass 1.0.0.alpha.16.

enable_sourcemaps = true
sass_options = {:sourcemap => true }

I was using like that with compass-sourcemaps gem.

mgol commented Dec 11, 2013

@RaphaelDDL From changelog:

* Compass now supports Sass sourcemaps. Pass the `--sourcemap` option to
  the compile or watch commands or set `sourcemap = true` in your
  compass configuration.

@mzgol I might be blind but I did a search on the repo for 'changelog' before asking that, and the most up-to-date was compass / doc-src / content / CHANGELOG.markdown which is 0.12.2

Could you share where this one you mentioned is?

Anyways, thank you very much =)
👍

Edit:
I confirm the sourcemaps are working. Just when using sprites that still bugs. I'll open an issue then.

mgol commented Dec 11, 2013

@RaphaelDDL It's here: https://github.com/chriseppstein/compass/blob/master/compass-style.org/content/CHANGELOG.markdown#100alpha16-12052013

I was just monitoring the repo & found this in a diff on a commit.

EDIT: if you saw 0.12.2 it's because you didn't switch from the stable branch to master before looking.

EDIT: it's easier to find it here: http://beta.compass-style.org/CHANGELOG/

@mzgol I changed. But seems github's upper search changes it back to the current 'default' one prior to searching. Thank you again for the urls, will bookmark them =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment