billymoon / Stylus

Stylus Package for Sublime Text 2 / 3
Other
129 stars 31 forks source link

Integrating Stylus Build System with Nib in Sublime Text #47

Closed jtstrohl closed 9 years ago

jtstrohl commented 9 years ago

Hi. I am trying to use Nib with Stylus in Sublime Text, so I have added @import 'nib' to my .styl file.

I can compile with Nib from the command line, using the -u argument, like so:

> stylus -u Nib MyStyle.styl

But I'd like to be able to build from within Sublime Text using the Build System. When I do, it fails with error

failed to locate @import file nib.styl

I imagine this is because it's not specifying the -u argument.

How can I integrate the Stylus Build System with Nib in Sublime Text?

Thanks in advance.

frog42 commented 9 years ago

I'm using NVM, so the default paths you set it to check for nib didn't work. I also use Jeet, so it'd be nice if there were a user setting where we could specify a search path for multiple items to be used during compiling and their respective paths.

It would actually work fine if you just had it default to search the same /bin/ designated in the user preference settings, since these things all tend to be in the same location.

Thanks for your work on this, before using Nib and Jeet, I had zero problems and really love compiling straight from Sublime Text.

billymoon commented 9 years ago

@frog42 looks like you already have all the details of the problem clearly defined - any chance you could implement the fix to and send a pull request?

Glad you like the package.

frog42 commented 9 years ago

@billymoon I appreciate your confidence in my abilities, but I'm afraid I'm still quite a noob in git (and many other things). I have a temporary workaround just watching files, but if I manage to find some free time I might see if I can figure it out.