Aptana Studio 3 MAC 操作系统在滚动 JavaScript 文件时间歇性冻结
我正在多个文件中编写一个包含大量 JavaScript 的页面。
间歇性地,Aptana 会决定特定文件中的某些点是无人区:每当我尝试在屏幕上滚动该部分时,Aptana 就会挂起 - 我无法再向上/向下滚动、切换选项卡、键入等。但是它确实如此请允许我使用 CMD-Q 并杀死它。
总的来说,我喜欢 Aptana,但最近这种情况开始更频繁地出现,并且它正在成为一个障碍。
我什至不知道如何开始调试这个,因为我无法一致地重现它。
我通常会打开 8-12 个文件,并且大多数情况下它都可以工作,直到其中一个文件中的一些内容以某种方式翻转,然后该文件变得“损坏” - 我无法查看整个文件。通常“坏点”位于靠近结尾的地方,因此我可以在该点上方滚动 - 但如果我尝试将“坏点”放在屏幕上,它就会挂起。
这是Mac OS,Snow Leopard,做JS开发,新的MBP。
我仍然可以访问菜单,并尝试过“关闭”、“全部关闭”等。菜单有响应,但主 UI 区域没有响应。
我之前的解决方法是在 vi 中打开文件,进行更改,保存,然后重新打开 Aptana。我的理论是 CR/LF 字符交换了字符集或其他东西,重新保存它可能有助于解决问题。这不再解决问题,所以情况似乎变得更糟。
还尝试关闭工作区中的所有文件并关闭,然后仅重新打开该文件,但没有成功。
感谢您的任何想法!
:
对于其他偶然发现此问题的人的最终更新 要修复,请转到首选项 ->阿普塔纳工作室 ->编辑-> JavaScript,并确保“最初折叠这些元素:注释”已关闭。这给我带来了问题。 (禁用所有内容的初始折叠可能是一个好主意,并且可能适用于比 JS 更多的语言。)
(对“已解决”感到抱歉,Harpo - 仍然是 SON00b。认为这是有礼貌的事情。)
Am writing a page with lots of javascript, in multiple files.
Intermittently, Aptana will decide that some point in a particular file is no-man's-land: whenever I try to scroll that section onscreen, Aptana hangs - I can no longer scroll up/down, switch tabs, type, etc. However it DOES allow me to CMD-Q and kill it.
I like Aptana in general, but this has started cropping up more frequently lately, and it's becoming a blocker.
I'm not even sure how to begin debugging this one, as I can't reproduce it consistently.
I usually have 8-12 files open, and it works most of the time, until a bit gets flipped somehow in one of the files, and then that file becomes 'broken' - I can't view the whole thing. Usually the 'bad bit' is somewhere nearer the end, so I can scroll around above that point - but if I try to put the 'bad bit' onscreen, it hangs.
This is Mac OS, Snow Leopard, doing JS development, new MBP.
I can still access the menus, and have tried Close, Close All, etc. The menus respond, but the main UI area does not.
My previous workaround is to open the file in vi, make a change, save it, and re-open Aptana. My theory was that a CR/LF character switched charsets or something, and that re-saving it might help smooth things over. That is no longer fixing it, so it seems to be getting worse.
Also tried closing all files in the workspace and shutting down, then reopening only that one, no luck.
Thanks for any thoughts!
A
Final update for anyone else who stumbles onto this:
To fix, go to Preferences -> Aptana Studio -> Editors -> Javascript, and make sure "Initially fold these elements: Comments" is turned OFF. That was causing the problem for me. (Probably a good idea to disable initial folding on everything, and might apply to more languages than JS.)
(Sorry for the "solved", Harpo - still a SON00b. Thought it was the courteous thing to do.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能会遇到此问题:http://jira.appcelerator.org/browse/APSTUD-第3992章如果是这样,应该会在下一个测试版中提供修复。
It's possible you might be encountering this issue: http://jira.appcelerator.org/browse/APSTUD-3992. If so, there is a fix in that should be available in the next beta.