PDT Helios - PHP 代码与 HTML 标签混合导致崩溃

发布于 2024-09-17 08:29:51 字数 466 浏览 2 评论 0原文

我正在使用 PDT Helios 开发 WordPress 主题,并且 IDE 一直挂起并显示错误消息:“语义突出显示作业”期间发生内部错误。

错误日志显示它在尝试解析某些 PHP 时进入无限循环。但对于我来说,这些只是简单的 PHP 代码。导致挂起的原因(删除这些 PHP 行可以防止挂起;保留它们将导致文档挂起)

我已在 pastebin。对于我的一生,我无法弄清楚是什么导致 PDT 挂起。其他主题文件根本不会挂起。

我尝试过:

  1. 禁用所有网络验证
  2. 删除并重新输入代码。它可以工作,直到我退出并重新进入 PDT,它才会再次挂起
  3. 将该文件复制到新项目(没有 WordPress)。它没有挂起,但对我没有帮助。

I am working on a WordPress theme, using PDT Helios, and keep having the IDE hanging with error message: An internal error occurred during: "Semantic Highlighting Job".

The error log reveals that it enters an infinite loop while attempting to parse some PHP. But for the life of me, those are just simple PHP code. What would be causing the hang (removing those lines of PHP prevents the hanging; leaving them in will cause the document to hang)

I have attached the PHP file in pastebin. For the life of me, I can't figure what is it that is causing PDT to hang. Other theme files doesn't hang at all.

I have tried:

  1. Disabling all web validation
  2. Deleting and re-entering the code. It works, till I exit and re-enter PDT and it will just hang again
  3. Copying that file to a new project (without WordPress). It doesn't hang, but it's not helpful to me.

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

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

发布评论

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

评论(1

人│生佛魔见 2024-09-24 08:29:55

又做了一些谷歌搜索。看起来这是一个错误。

错误报告

Did some more Googling. Looks like it's a bug.

Bug report

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