1

我已经安装了最新版本的 autotag-vim 插件。静态编译的标签在我的项目中有效。每当我对文件进行更改并保存时,tags文件都不会更新。

我有一个名为 home_controller.rb 的文件,如下所示

class HomeController < ApplicationController
  def index
    foo  # CTRL+] jumps to implementation
  end

private

  def foo
  end
end

如果我修改文件以添加新功能并保存标签导航不适用于新功能。

class HomeController < ApplicationController

  def index
    foo
    bar  # CTRL+] does not jump to implementation after save
  end

private

  def foo
  end

  def bar
  end

end

我通过调用启用了调试缓冲区:call AutoTagDebug(),我注意到标记正在按预期发生。但该tags文件没有得到更新。

source = "C:\Users\user1\My Projects\test1\app\controllers\home_controller.rb"
drive = "C:", file = "\Users\user1\My Projects\test1\app\controllers"
tagsFile "C:\Users\user1\My Projects\test1\app\controllers\tags"
drive = "C:", file = "\Users\user1\My Projects\test1\app"
tagsFile "C:\Users\user1\My Projects\test1\app\tags"
drive = "C:", file = "\Users\user1\My Projects\test1"
tagsFile "C:\Users\user1\My Projects\test1\tags"
Stripping tags for test1/app/controllers/home_controller.rb from tags file C:\Users\user1\My Projects\test1\tags
4

0 回答 0