These are chat archives for jescalan/roots

24th
Nov 2014
Matt Rossi
@mordecai174
Nov 24 2014 20:43
hey @jenius
thanks for the help, i filed an issue with stylus, sam had me run it directly from terminal and i got the error
appreciate the help
Jeff Escalante
@jescalan
Nov 24 2014 20:59
sure, so you can reproduce with raw stylus
without roots?
Matt Rossi
@mordecai174
Nov 24 2014 21:03
well on code pen it worked
not sure which version of stylus they are using
it’s not working for lighten(mojo-green, 2%) for instance either
but the hex works
so i had a variable, spacing-block = 20px
set a top margin to spacing-block * 2
i get the error in terminal and the roots friendly error on screen, a manual refresh and i see the 40px for the margin
Matt Rossi
@mordecai174
Nov 24 2014 21:23
spacing-block works if i only set the margin to that
and
if i declare the variable in that file, it works
with the * 2

Jeff Escalante
@jescalan
Nov 24 2014 21:49
hey matt, sorry i had to run for a little bit
Matt Rossi
@mordecai174
Nov 24 2014 21:49
not a problem
Jeff Escalante
@jescalan
Nov 24 2014 21:50
so the main question here is whether it's a stylus regression
can you install stylus globally and run it with that?
Matt Rossi
@mordecai174
Nov 24 2014 21:50
i was talking with sam, is it possible that the variable is not present when stylus does the math operations?
Jeff Escalante
@jescalan
Nov 24 2014 21:50
npm i stylus -g
Matt Rossi
@mordecai174
Nov 24 2014 21:51
when i run it from ./node_modules/.bin/stylus filename….
it doesnt work
Jeff Escalante
@jescalan
Nov 24 2014 21:51
ok
so if you drop the stylus version back and reinstall
can you get it to work?
Matt Rossi
@mordecai174
Nov 24 2014 21:51
i tried that
not the previous version
Jeff Escalante
@jescalan
Nov 24 2014 21:51
keep going
Matt Rossi
@mordecai174
Nov 24 2014 21:51
i went back a ways, ill try a way back version
k 1 min
Jeff Escalante
@jescalan
Nov 24 2014 21:52
if you pinpoint the version and make a minimal reproduction example, that's what they will need in the issue
also are you doing this with an absolute minimal reproduction case?
Matt Rossi
@mordecai174
Nov 24 2014 21:54
im just doing this from the roots project
is that what you mean?
Jeff Escalante
@jescalan
Nov 24 2014 21:54
no
i mean make a new roots project with only the lines of stylus causing the problem
and do it from there
Matt Rossi
@mordecai174
Nov 24 2014 21:54
k
Jeff Escalante
@jescalan
Nov 24 2014 21:55
this will allow you to determine if it's something somewhere else in your code, or a bug in stylus
Matt Rossi
@mordecai174
Nov 24 2014 22:04
ok, that worked
i did a new roots project
maybe how the files are imported?
Matt Rossi
@mordecai174
Nov 24 2014 22:10
i have the css broken into partials
imported by an index.styl for each section of the site
Jeff Escalante
@jescalan
Nov 24 2014 22:11
yeah so the next step is to start narrowing that down
start cutting out files
and see if you can poinpoint which file is causing the issue
once you do, start commenting out chunks of that file
to narrow down the specific section
Matt Rossi
@mordecai174
Nov 24 2014 22:12
ok
Jeff Escalante
@jescalan
Nov 24 2014 22:12
good ol debugging