简体   繁体   English

Textmate 2 Ruby on Rails 捆绑包:某些片段不再适用于 macOS Big Sur(所有已发布版本),例如 hm \tab

[英]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.

相关问题 Ruby on Rails 3 捆绑用于 textmate - Ruby on Rails 3 bundle for textmate 使代码片段如何在Textmate 2中用于Ruby On Rails? - How do make snippets work for Ruby On Rails in Textmate 2? Textmate的Ruby on Rails 3捆绑? - Textmate's Ruby on Rails 3 bundle? Ruby on Rails根据用户检索和显示数据,例如检索由一个用户创建的所有评论 - Ruby on Rails retrieve and display data according to user, e.g. retrieve all reviews created by one user 在 macOS Big Sur 11.2.3 上安装 ruby、rails 和 postgresql 时安装 xcode 的问题 - Issue with install xcode while installing ruby, rails and postgresql on macOS Big Sur 11.2.3 在Windows和Linux / OS X的Gemfile中指定不同的Ruby版本(例如1.9.3和2.1)吗? - Specify different Ruby versions (e.g. 1.9.3 vs 2.1) in Gemfile for Windows and Linux/OS X? 在 MacOS Big Sur 之后 Rails bootsnap `无法加载此类文件` 错误 - Rails bootsnap `cannot load such file` error after MacOS Big Sur 在Ruby on Rails中将预定义的类(例如String,Symbol)扩展放入正确的位置在哪里? - Where is the right place to put predefined class (e.g. String, Symbol) extensions in Ruby on Rails? 使用Rails验证,如何将一个短语列入白名单,例如“ Learn Ruby” - Using Rails validations, how do I whitelist a phrase, e.g., “Learn Ruby” Ruby on Rails显示半颗星以表示十进制,例如4.5 - Ruby on Rails display half a star for a decimal rating, e.g. 4.5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM