[英]Textmate 2 Ruby on Rails bundle: Some snippets no longer work on macOS Big Sur (all released versions), e.g. hm \tab
On a fresh install of Big Sur (updated all the way to 11.3.1) with a Rails 6 project I noticed that some snippets will not autocomplete (eg hm → tab).在使用 Rails 6 项目全新安装 Big Sur(一直更新到 11.3.1)时,我注意到一些片段不会自动完成(例如 hm → tab)。 This happened also on all previous releases of Big Sur.
这也发生在 Big Sur 的所有先前版本中。 Catalina with a Rails 6 project on the same machine has no issue at all.
Catalina 与 Rails 6 项目在同一台机器上完全没有问题。
When I boot into Big Sur (11.2.1 / 11.3.1) in a Rails 6 project or any file with type set to "Ruby on Rails" and the "Ruby on Rails" bundle installed, no snippet with scope meta.rails.model will tab-complete.当我在 Rails 6 项目中启动 Big Sur (11.2.1 / 11.3.1) 或任何类型设置为“Ruby on Rails”并安装“Ruby on Rails”捆绑包的文件时,没有 scope meta.rails 的片段。 model 将制表符完成。 I can run them from the bundle menu, however.
但是,我可以从捆绑菜单中运行它们。
The issue presents itself the same as this question How do make snippets work for Ruby On Rails in Textmate 2?这个问题本身与这个问题相同。 如何使片段适用于 Textmate 2 中的 Ruby On Rails? , which is fairly old and to which there seems to be no resolution.
,这是相当古老的,似乎没有解决方案。
I found these instructions on coderwall https://coderwall.com/p/b6j9mw/fix-textmate-code-completion-for-rails-4-models , however they did nothing for me.我在 coderwall https://coderwall.com/p/b6j9mw/fix-textmate-code-completion-for-rails-4-models上找到了这些说明,但是它们对我没有任何帮助。 I quit and restarted textmate, uninstalled, reinstalled, cleaned out the library, however, nothing seems to work.
我退出并重新启动 textmate,卸载,重新安装,清理了库,但是,似乎没有任何效果。
Anybody ever solved something like this?有人解决过这样的问题吗?
I got a tip on #textmates IRC channel.我在#textmates IRC 频道上得到了提示。
Pressing control-shift-P in the file that is misbehaving shows you information about the current scope.在行为异常的文件中按 control-shift-P 会显示有关当前 scope 的信息。 After that I re-set the language to ruby-on-rails (it had changed to ruby, maybe by pressing the keys above, maybe independently).
之后,我将语言重新设置为 ruby-on-rails(它已更改为 ruby,可能是通过按上面的键,可能是独立的)。
Now it works.现在它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.