Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not being ignored by Guardfile #931

Open
kevinjcoleman opened this issue Apr 17, 2019 · 0 comments
Open

File not being ignored by Guardfile #931

kevinjcoleman opened this issue Apr 17, 2019 · 0 comments

Comments

@kevinjcoleman
Copy link

Hello!

I'm using a new sync tool, mutagen.io, to ensure that changes are synced from my host to my docker instance and I'm having an issue with a temporary file called .mutagen-temporary-unicode-test-\xC3\xA9ntry0 that the sync tool is creating which is causing my guard instance to blow up with this error.

E, [2019-04-16T19:18:16.580106 #9673] ERROR -- : run() in thread failed: invalid byte sequence in US-ASCII:\n /usr/local/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/pathname.rb:43:in `=~'
/usr/local/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/pathname.rb:43:in `chop_basename'
/usr/local/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/pathname.rb:360:in `plus'
/usr/local/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/pathname.rb:352:in `+'
/gems/ruby/2.5.0/gems/listen-3.1.5/lib/listen/adapter/linux.rb:47:in `_process_event'
/gems/ruby/2.5.0/gems/listen-3.1.5/lib/listen/adapter/base.rb:42:in `block (2 levels) in configure'

I've added ignore(/\.mutagen/) to my guardfile, but that doesn't appear to actually be ignoring it on the listener, you can see below that it is set correctly though. What am I doing wrong here? Thanks!

         @ignore_patterns=
          [/^(?:
      \.git
      | \.svn
      | \.hg
      | \.rbx

<page break> --- Press enter to continue ( q<enter> to break ) --- <page break>

      | \.bundle
      | bundle
      | vendor\/bundle
      | log
      | tmp
      |vendor\/ruby
    )(\/|$)/x,
           /(?:
      # Kate's tmp\/swp files
      \..*\d+\.new
      | \.kate-swp

      # Gedit tmp files
      | \.goutputstream-.{6}

      # Intellij files
      | ___jb_bak___
      | ___jb_old___

      # Vim swap files and write test
      | \.sw[px]
      | \.swpx
      | ^4913

      # Sed temporary files - but without actual words, like 'sedatives'
      | (?:^

<page break> --- Press enter to continue ( q<enter> to break ) --- <page break>

         sed

         (?:
          [a-zA-Z0-9]{0}[A-Z]{1}[a-zA-Z0-9]{5} |
          [a-zA-Z0-9]{1}[A-Z]{1}[a-zA-Z0-9]{4} |
          [a-zA-Z0-9]{2}[A-Z]{1}[a-zA-Z0-9]{3} |
          [a-zA-Z0-9]{3}[A-Z]{1}[a-zA-Z0-9]{2} |
          [a-zA-Z0-9]{4}[A-Z]{1}[a-zA-Z0-9]{1} |
          [a-zA-Z0-9]{5}[A-Z]{1}[a-zA-Z0-9]{0}
         )
        )

      # other files
      | \.DS_Store
      | \.tmp
      | ~
    )$/x,
           /\.mutagen/],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant