vkoves / carpe

Scheduling for the modern age - an UNMAINTAINED indigoBox project
http://carpe-uno.herokuapp.com
0 stars 0 forks source link

LSG Gem Routing Error on New Stylesheets #245

Closed rjaltman closed 6 years ago

rjaltman commented 6 years ago

The Living Style Guide has forbidden me from using Carpe. Specifically, somewhere as the LSG gem seems to compile the stylesheets it knew about, it is replacing some sort of character incorrectly (or so it seems?). Specifically, here's the error that it returns when trying to find "home.scss" (a stylesheet that most certainly exists, but perhaps is loaded alongside other stylesheets added in the branch tested):

Sprockets::FileNotFound at / couldn't find file '/mnt/c/IndigoBox Studios/carpe/app/assets/stylesheets/styleguide/{' Checked in these paths (you know the paths, here are the first couple relevant ones) /home/rjaltman/.rvm/gems/ruby-2.4.2/gems/livingstyleguide-2.0.2/stylesheets /mnt/c/IndigoBox Studios/carpe/app/assets/stylesheets /home/rjaltman/.rvm/gems/ruby-2.4.2/gems/actionview-5.1.4/lib/assets/compiled /home/rjaltman/.rvm/gems/ruby-2.4.2/gems/livingstyleguide-2.0.2/stylesheets /home/rjaltman/.rvm/gems/ruby-2.4.2/gems/teaspoon-mocha-2.3.3/lib/teaspoon/mocha/assets /home/rjaltman/.rvm/gems/ruby-2.4.2/gems/livingstyleguide-2.0.2/stylesheets

Notice the presence of that { at the end of the path, which seems a little suspicious as to how it is gathering this file. The actual line pointed to is line 2 of home.html.erb when this error generates, which is found in this snippet on the first line:

<% content_for :title do %> - Welcome<% end %>
<%= stylesheet_link_tag "home" %>
<div id="home-sl1">
        <h1>Scheduling for the modern age.</h1>
        <h2>Meet Carpe. It's a social, powerful planning tool for today's world.</h2>
        <div class="alphawarn">You can try out Carpe in our open Alpha.</div>

I am very unaware of what is going on when the LSG is pulling resources, but there might be some stray character or something getting overwritten by the gem as it parses through the stylesheets. This only seems to be an issue on branches where stylesheets were added or removed (groups-feature), though I seem to recall it on mobile-welcome as well (not certain, however).

@vkoves, I know you worked on the Living Style Guide extensively, so please save me from my naivete. Everyone else, you are invited to do the same as well!

vkoves commented 6 years ago

@rjaltman - has this been resolved?

Watercycle commented 6 years ago

It is now.

If you're getting this error, change your .lsg files' line endings from CLFR to LF. This issue has been moved to: https://github.com/livingstyleguide/livingstyleguide/issues/230