如何使 Raku Grammar Preview 摆脱“收集结果”的困扰?无需重新启动?

发布于 2025-01-15 18:03:40 字数 194 浏览 2 评论 0原文

我正在使用 Comma IDE 中的 Raku Grammar 功能。非常酷。我可以通过无限的尝试和错误来编码,这是我最擅长的。

然而,它经常卡住(可能每 5 到 10 分钟一次)。这可能是我的错误代码的结果。

不管怎样,有没有一种方法可以在不重新启动 IDE 的情况下重置它?我尝试过改变我的语法。有时这有效,但通常无效。

谢谢。

I'm playing with the Raku Grammar feature in the Comma IDE. It's pretty cool. I can code by limitless trial and error which is what I do best.

However, it's frequently getting stuck (maybe once every 5 to 10 minutes). It's probably a result of my bad code.

Regardless, is there a way to reset it without having to restart the IDE? I've tried changing my grammar. Sometimes that works but often it does not.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怪我鬧 2025-01-22 18:03:40

我找到了一个稍微更好的方法来尝试防止预览器卡住:

  1. 在同一文件中创建另一个语法,其中仅包含 token TOP { .+ }

  2. 如果遇到困难,请切换到其他语法。这会将 Comma 的注意力从真正的语法上转移开。

  3. 请注意对代码的任何更改,以尝试解决实际语法中的问题。

  4. 切换回真正的语法。通常,它会再次开始工作。

此外,语法检查器可以生成多个 rakudo 僵尸进程。一定要杀死它们,否则它们会很快耗尽你的 CPU 和内存。

I found a slightly better way to try to keep the previewer from getting stuck:

  1. create another grammar in the same file with just token TOP { .+ } in it.

  2. If it gets stuck, switch to the othe grammar. This will divert Comma's attention away from the real grammar.

  3. Mkae any changes to the code to try to fix the problem in the real grammar.

  4. Switch back to real grammar. Often, it will start working again.

Also, the grammar checker can spawn several rakudo zombie processes. Be sure to kill those or they will eat up your CPU and memory very quickly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文