PDT Helios - PHP 代码与 HTML 标签混合导致崩溃
我正在使用 PDT Helios 开发 WordPress 主题,并且 IDE 一直挂起并显示错误消息:“语义突出显示作业”期间发生内部错误。
错误日志显示它在尝试解析某些 PHP 时进入无限循环。但对于我来说,这些只是简单的 PHP 代码。导致挂起的原因(删除这些 PHP 行可以防止挂起;保留它们将导致文档挂起)
我已在 pastebin。对于我的一生,我无法弄清楚是什么导致 PDT 挂起。其他主题文件根本不会挂起。
我尝试过:
- 禁用所有网络验证
- 删除并重新输入代码。它可以工作,直到我退出并重新进入 PDT,它才会再次挂起
- 将该文件复制到新项目(没有 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:
- Disabling all web validation
- Deleting and re-entering the code. It works, till I exit and re-enter PDT and it will just hang again
- Copying that file to a new project (without WordPress). It doesn't hang, but it's not helpful to me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
又做了一些谷歌搜索。看起来这是一个错误。
错误报告
Did some more Googling. Looks like it's a bug.
Bug report