标签: fsevents

Guard看不到文件更新

我正在使用此设置开发自定义引擎.

我用它创建了引擎

rails plugin new MyEngine --full
Run Code Online (Sandbox Code Playgroud)

然后我添加了rspec-railsguard-rspec作为开发依赖项

s.add_development_dependency "rspec-rails"
s.add_development_dependency "guard-rspec"
Run Code Online (Sandbox Code Playgroud)

在我的gemspec文件中.

当我同时运行rspecrake spec(有或没有bundle exec)我的规格运行正常.当我运行guard命令但它第一次运行所有规格然后它什么都不做.它不会检测整个应用程序中的任何文件更改.

Guardfile像往常一样生成guard init spec,这是它的内容

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'rspec', :version => 2 do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb')  { "spec/" }

  # Rails example
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^app/(.+)\.rb$})                           { |m| "spec/#{m[1]}_spec.rb" }
  watch(%r{^lib/(.+)\.rb$})                           { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch(%r{^app/controllers/(.+)_(controller)\.rb$})  { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] …
Run Code Online (Sandbox Code Playgroud)

rspec ruby-on-rails guard fsevents rails-engines

5
推荐指数
2
解决办法
5880
查看次数

无法使用Xcode 4.3安装autotest-fsevent gem

在更新到Xcode 4.3(删除旧版本的Xcode)后,我无法安装autotest-fsevent gem.通过首选项>下载>组件选项卡安装命令行工具.

osx 10.7.3,rvm 1.10.2,ruby 1.9.3-rc1,bundler 1.0.22

$ bundle

Installing autotest-fsevent (0.2.7) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /Users/doc/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby extconf.rb 
extconf.rb:36:in `<main>': Xcode not found - see README for assistance (RuntimeError)


Gem files will remain installed in /Users/doc/.rvm/gems/ruby-1.9.3-rc1@global/gems/autotest-fsevent-0.2.7 for inspection.
Results logged to /Users/doc/.rvm/gems/ruby-1.9.3-rc1@global/gems/autotest-fsevent-0.2.7/ext/fsevent/gem_make.out
An error occured while installing autotest-fsevent (0.2.7), and Bundler cannot continue.
Make sure that `gem install autotest-fsevent -v '0.2.7'` succeeds before bundling.
Run Code Online (Sandbox Code Playgroud)

README只是表示需要Xcode.

我似乎选择了正确的Xcode.app:

$ xcode-select -print-path
/Applications/Xcode.app/Contents/Developer
Run Code Online (Sandbox Code Playgroud)

其他人有这个问题吗?任何想法如何解决这个问题?

gem bundle autotest fsevents xcode4.3

4
推荐指数
1
解决办法
1680
查看次数

fsevents可选依赖项返回与系统不兼容

我按照这个文档安装了babel core 6.26.0 ,一切顺利,除了以下错误:

npm WARN optional Skipping failed optional dependency /babel-cli/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.4
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.4
Run Code Online (Sandbox Code Playgroud)

我想知道这只是噪音吗?或者,如果有人可能知道的解决方法?我已经看到了一些关于它的文档,但没有具体的.

fsevents babeljs

4
推荐指数
1
解决办法
7694
查看次数

平台“win32”与此模块不兼容(fsevents)

我正在尝试使用npx create-react-app first-react-app.

当它开始创建应用程序时,我每次都会收到以下警告。最后是创建一个应用程序。但原因是什么,我该如何永久解决这个问题?

这是所有日志:

yarn add v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.2.1: The platform "win32" is incompatible with this module.
info "fsevents@2.2.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.3: The platform "win32" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency …
Run Code Online (Sandbox Code Playgroud)

fsevents npm reactjs yarnpkg

4
推荐指数
2
解决办法
1万
查看次数

如何在cocoa中获取文件夹更改通知(文件夹观察者)

我是Cocoa Application开发的新手.我希望在修改给定目录下的任何文件时(文件夹观察者)通知我的应用程序.修改意味着删除,添加,文件内容被更改.我尝试使用FSEvents也使用NSWorkspace的通知中心或委托消息,如在UKKQueue中http://www.zathras.de/angelweb/sourcecode.htm#UKKQueue.我的应用程序在目录下的任何文件被修改时收到通知.但问题是它没有给出修改后的特定文件的名称或路径.它给出了目录的路径,但没有给出特定文件的路径.

不知道如何在特定文件中查看文件夹进行修改?

cocoa filesystemwatcher fsevents kqueue

3
推荐指数
2
解决办法
4760
查看次数

在项目上添加 vuetify 时出错

我已经创建了一个vue-cli项目。

我试图添加vuetify但我做不到

我跑了: npm install vuetify --save

终端出现错误:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.3 (node_modules/sane/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
Run Code Online (Sandbox Code Playgroud)

当我尝试导入vuetify 时main.js它说找不到模块。

有谁知道如何修复/安装它?

fsevents npm vuejs2 vuetify.js

3
推荐指数
1
解决办法
4249
查看次数

无法让rb-fsevent gem在OSX上运行

我正在使用Guard运行Test :: Unit,我正试图切换到RSpec.

我正在运行Mac OSX,似乎无法让rb-fsevent正常工作.当我启动Guard时,我收到一条消息"[Listen warning]:Listen将轮询更改.请访问https://github.com/guard/listen#polling-fallback了解更多信息."

我尝试了各种方法:

  • "gem install rb-fsevent"(根据railscast 275)
  • 将rb-fsevent添加到我的Gemfile中(见下文)
  • 指定rb-fsevent版本(例如0.9.1)
  • 重新启动Guard,Rails和整个系统

Gemfile(在Michael Hartl的Ruby on Rails教程中推荐):

    group :development, :test do
      gem "rspec-rails"
      gem "guard-rspec"
    end

    group :test do
      gem 'rb-fsevent'
    end
Run Code Online (Sandbox Code Playgroud)

编辑:

我还尝试将rb-fsevent包含在开发组中(在Railscast 264中推荐):

    group :development, :test do
      gem "rspec-rails"
      gem "guard-rspec"
      gem 'rb-fsevent'
    end
Run Code Online (Sandbox Code Playgroud)

但是我得到了同样的错误.一个线索可能是如果我在没有捆绑执行的情况下运行后卫,那么我得到"警卫在这里!看起来你的项目有一个Gemfile,但你guard在Bundler之外运行." bundle exec在教程中似乎没有必要.

关于可能出现什么问题的任何想法,或者我如何能够获得有关该问题的更多信息?

rspec ruby-on-rails listen guard fsevents

2
推荐指数
1
解决办法
2603
查看次数

检查Perl中Mac :: FSEvents中哪些文件已更改?

每当使用以下命令调用更改事件时,是否可以查看哪些文件已更改:https://metacpan.org/pod/Mac:: FSEvents

非常感谢!:)

macos perl fsevents

1
推荐指数
1
解决办法
1418
查看次数

什么是支持文件系统事件的OS X的最低版本?

我想使用FSEvents又名文件系统事件来监听对文件夹层次结构内容的更改.在我的测试中,文件系统事件做了很棒的工作.但是我找不到关于它是否适用于Tiger的信息.

谁知道?

macos fsevents

0
推荐指数
1
解决办法
164
查看次数