我正在使用此设置开发自定义引擎.
我用它创建了引擎
rails plugin new MyEngine --full
Run Code Online (Sandbox Code Playgroud)
然后我添加了rspec-rails和guard-rspec作为开发依赖项
s.add_development_dependency "rspec-rails"
s.add_development_dependency "guard-rspec"
Run Code Online (Sandbox Code Playgroud)
在我的gemspec文件中.
当我同时运行rspec和rake 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) 在更新到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)
其他人有这个问题吗?任何想法如何解决这个问题?
我按照这个文档安装了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)
我想知道这只是噪音吗?或者,如果有人可能知道的解决方法?我已经看到了一些关于它的文档,但没有具体的.
我正在尝试使用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) 我是Cocoa Application开发的新手.我希望在修改给定目录下的任何文件时(文件夹观察者)通知我的应用程序.修改意味着删除,添加,文件内容被更改.我尝试使用FSEvents也使用NSWorkspace的通知中心或委托消息,如在UKKQueue中http://www.zathras.de/angelweb/sourcecode.htm#UKKQueue.我的应用程序在目录下的任何文件被修改时收到通知.但问题是它没有给出修改后的特定文件的名称或路径.它给出了目录的路径,但没有给出特定文件的路径.
不知道如何在特定文件中查看文件夹进行修改?
我已经创建了一个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它说找不到模块。
有谁知道如何修复/安装它?
我正在使用Guard运行Test :: Unit,我正试图切换到RSpec.
我正在运行Mac OSX,似乎无法让rb-fsevent正常工作.当我启动Guard时,我收到一条消息"[Listen warning]:Listen将轮询更改.请访问https://github.com/guard/listen#polling-fallback了解更多信息."
我尝试了各种方法:
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在教程中似乎没有必要.
关于可能出现什么问题的任何想法,或者我如何能够获得有关该问题的更多信息?
每当使用以下命令调用更改事件时,是否可以查看哪些文件已更改:https://metacpan.org/pod/Mac:: FSEvents?
非常感谢!:)
我想使用FSEvents又名文件系统事件来监听对文件夹层次结构内容的更改.在我的测试中,文件系统事件做了很棒的工作.但是我找不到关于它是否适用于Tiger的信息.
谁知道?