On Nov 23, 9:38 pm, Chris Eppstein <
ch...@eppsteins.net> wrote:
> > Don't know if this would help others, but maybe when compass does an
> > initialization of a project, if it finds existing files, maybe it
> > could suggest replacement or update? I know that if compass at least
> > complained about an existing file, it would have led me to at least
> > investigate.
>
> It's the other way around. Rails tells compass to load and since the config
> file was there the command line was working fine... There's not really a way
> for software to detect this failure scenario.
I mean when you are adding compass to a project, say if you issue
"compass -f blueprint . --rails" and compass finds existing
compass.rb, compass.config.
BTW, I did use the --update option as well, and obviously it did not
update the compass.rb file.
In my case, I think I issued the above command and forgot the
<project_path> (or some other misgiving), so it created some of the
empty config files and crapped out. When I corrected my mistake,
existing compass.rb and compass.config files existed but were empty. I
easily spotted the compass.config, deleted it, and reran the command.
I didn't spot compass.rb.
If compass would have warned me about existing files, it could asked
to skip/replace or at a minimum warned me that it was skipped. Same as
script/generate typically does. Could be handy for those updating
existing projects that may require new config files.
Just a thought.