Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/53.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 谁负责在Rails中生成.idea文件?_Ruby On Rails_Ruby_Ruby On Rails 3_Plugins_Code Generation - Fatal编程技术网

Ruby on rails 谁负责在Rails中生成.idea文件?

Ruby on rails 谁负责在Rails中生成.idea文件?,ruby-on-rails,ruby,ruby-on-rails-3,plugins,code-generation,Ruby On Rails,Ruby,Ruby On Rails 3,Plugins,Code Generation,当我查看Rails应用程序文件夹时,我可以找到一个.idea文件夹,其中包括: .发电机 拉凯塔克斯先生 还有更多。。。例如,当我打开.generators时,我会看到以下内容: <?xml version="1.0" encoding="UTF-8"?> <Settings><!--This file was automatically generated by Ruby plugin. You are allowed to: 1. Reorder gene

当我查看Rails应用程序文件夹时,我可以找到一个.idea文件夹,其中包括:

  • .发电机
  • 拉凯塔克斯先生
还有更多。。。例如,当我打开.generators时,我会看到以下内容:

<?xml version="1.0" encoding="UTF-8"?>
<Settings><!--This file was automatically generated by Ruby plugin.
You are allowed to: 
1. Reorder generators
2. Remove generators
3. Add installed generators
To add new installed generators automatically delete this file and reload the project.
--><GeneratorsGroup><Generator name="active_record:migration" /><Generator name="active_record:model" /><Generator name="active_record:observer" /><Generator name="active_record:session_migration" /><Generator name="controller" /><Generator name="erb:controller" /><Generator name="erb:mailer" /><Generator name="erb:scaffold" /><Generator name="generator" /><Generator name="helper" /><Generator name="integration_test" /><Generator name="mailer" /><Generator name="metal" /><Generator name="migration" /><Generator name="model" /><Generator name="model_subclass" /><Generator name="observer" /><Generator name="performance_test" /><Generator name="plugin" /><Generator name="resource" /><Generator name="scaffold" /><Generator name="scaffold_controller" /><Generator name="session_migration" /><Generator name="stylesheets" /><Generator name="test_unit:controller" /><Generator name="test_unit:helper" /><Generator name="test_unit:integration" /><Generator name="test_unit:mailer" /><Generator name="test_unit:model" /><Generator name="test_unit:observer" /><Generator name="test_unit:performance" /><Generator name="test_unit:plugin" /><Generator name="test_unit:scaffold" /></GeneratorsGroup></Settings>

如您所见:“此文件由Ruby插件自动生成。

那么谁负责生成这些文件呢

我该怎么称呼它呢


IDE需要处理它吗?

如果应用程序使用Jet Brains'或Jet Brains Intellij IDE至少打开一次,则会创建此文件夹和文件

与项目有关的所有用户配置都保存在此目录中


如果删除此.idea文件夹并打开其中的项目,这些文件将使用新的默认Rubymine配置再次生成。

这是对gitters的
~/.gitignore
的有用补充:

# ignore JetBrains IDE stuff
.idea
.generators

我猜它可能来自RubyMine,它基于Jet Brains的IntelliJ思想。还有其他方法生成这些文件吗?还是只写剧本?RubyMine从何处获取参数?@Danpe,您不需要生成这些文件这是不必要的,除非您使用RubyMine或任何其他jetbrains产品作为IDE,并且IDE将自行管理其配置的所有内容,不用太担心:)我真的想做一个脚本来解析这些文件,所以我很担心它们:我不知道你在干什么,但这是idea的官方git报告,它是所有jetbrains IDE的基础。我在哪里可以找到生成.idea文件的代码?很可能要用rake-D什么的。。。