Giter VIP home page Giter VIP logo

Comments (6)

ttilley avatar ttilley commented on September 2, 2024

freaking seriously? >_<

export FWDEBUG="true"
gem install rb-fsevent

and then you should get a dramatically over-verbose level of debugging info from the binary that gets compiled. I'll need to look into this more deeply tomorrow.

from fssm.

ttilley avatar ttilley commented on September 2, 2024

I'm not kidding about the level of verbosity btw, but that'll hopefully let you determine whether the problem is in rb-fsevent, FSSM, or later on in the chain. You should be seeing output to the effect of:

append_path called for: /Users/ttilley/src/rb-fsevent/spec/fixtures/custom 'path
  resolved path to: /Users/ttilley/src/rb-fsevent/spec/fixtures/custom 'path

config.sinceWhen    18446744073709551615
config.latency      0.300000
config.flags        00000000
config.paths
  /Users/ttilley/src/rb-fsevent/spec/fixtures/custom 'path

FSEventStreamRef @ 0x100108590:
   allocator = 0x7fff7006eee0
   callback = 0x100001522
   context = {0, 0x0, 0x0, 0x0, 0x0}
   numPathsToWatch = 1
   pathsToWatch = 0x7fff7006eee0
        pathsToWatch[0] = '/Users/ttilley/src/rb-fsevent/spec/fixtures/custom 'path'
   latestEventId = -1
   latency = 300000 (microseconds)
   flags = 0x00000000
   runLoop = 0x0
   runLoopMode = 0x0


FSEventStreamCallback fired!
  numEvents: 1
  event path: /Users/ttilley/src/rb-fsevent/spec/fixtures/custom 'path/
  event flags: 00000000
  event ID: 114922439

from fssm.

ttilley avatar ttilley commented on September 2, 2024

a good example of a funky issue i've seen before is /tmp/ on mac... technically, /tmp is a symlink to /private/tmp, so performing path resolution should give you that as the result. However, the MacOS internal path normalization API additionally takes any paths with /private/ at the start and chops that off. Some things use the kind of realpath behavior you'd normally expect, and others use the strange strange MacOS version of reality. The debugging output should make this kind of problem clear, as you're shown the path that was passed in, what my mostly-sane normalization resolved that to before calling fsevents, and what path was returned by fsevents after an event was fired under that path.

from fssm.

ttilley avatar ttilley commented on September 2, 2024

i was going to attempt to use compass's own documentation to test compass, but you have some funky assumptions about how git works hard coded. you're expecting to read directly from .git/refs/heads/master like it's going to be there as a file in all cases when this isn't true.

[13:12:14][compass](master)$ git branch -r
  chriseppstein/css3-v2
  chriseppstein/css3pie
  chriseppstein/lemonade
  chriseppstein/master
  chriseppstein/stable
  origin/HEAD -> origin/stable
  origin/css3-v2
  origin/css3pie
  origin/lemonade
  origin/master
  origin/stable
[13:12:21][compass](master)$ ls .git/refs/remotes/chriseppstein/
[13:12:25][compass](master)$ ls .git/refs/remotes/origin/
HEAD
[13:12:29][compass](master)$ ls .git/refs/heads/
[13:12:36][compass](master)$ 

if you want the git hash of the current branch, you should probably ask git for it:

[13:14:59][compass](master)$ git rev-parse HEAD
9cafbc642c8d223a929d6c849bf557f4be3b09c7

Though, it might just be that I'm using a funky reference format and a funky git release that you haven't hit this:

[13:16:14][compass](master)$ git --version
git version 1.7.5.rc3.233.g94081.dirty

from fssm.

ttilley avatar ttilley commented on September 2, 2024

fixed in 0.2.7. holy crap was that one a brain fart. also, further proof that 99.9% of FSSM users are only using it via compass.

from fssm.

chriseppstein avatar chriseppstein commented on September 2, 2024

I've verified that this fixes the issue on compass. Thanks for the quick turn around.

from fssm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.