简体   繁体   English

当项目中有符号链接时,PhpStorm 6崩溃并耗尽内存?

[英]PhpStorm 6 crashing and going out of memory when there is symlink in project?

My installation pf PhpStorm keeps crashing when I open a directory that has a symlink to another directory in the project. 当我打开一个与项目中另一个目录具有符号链接的目录时,我的安装pf PhpStorm继续崩溃。 For example, my project has dir1, dir2 and dir3 . 例如,我的项目具有dir1, dir2 and dir3 In dir3 I have a symlink o dir2 . dir3我有一个符号链接o dir2 When I try to expand dir3 PhpStorm keeps going out of memory and eventually crashing. 当我尝试扩展dir3 PhpStorm会耗尽内存并最终崩溃。 I increased to 1 GB and still it crashes. 我增加到1 GB,但仍然崩溃。 I know it is not a memory issue but tired increasing it anyway. 我知道这不是内存问题,但无论如何都会累。 I am on a Mac Mountain lion. 我在Mac山狮上。 Has anybody experienced this before? 有人经历过吗? If so what are my options? 如果是这样,我有什么选择?

I'm using version 7. I have also found that WebStorm indexes symlinks recursively, which is bad if they ever point to their parents - indexing just goes on forever until out of memory. 我使用的是版本7。我还发现WebStorm会以递归方式索引符号链接,如果它们指向其父级,这是很不好的-索引会一直持续直到内存不足。

One manual fix for this is to exclude any folders that are pointing to parents: 一种手动修复方法是排除指向父母的所有文件夹:

在此处输入图片说明

However, this is inefficient, as WebStorm should be smart enough to do it by itself, and an oversight can easily lead to crashing and running out of memory. 但是,这是低效的,因为WebStorm应该足够聪明才能单独执行此操作,并且疏忽很容易导致崩溃和内存不足。 This comes up a lot when using frameworks with auto-build features such as Meteor . 当使用具有自动构建功能的框架(例如Meteor)时,这会出现很多。

Ultimately, this should be reported as a bug. 最终,应将其报告为错误。 This is just a workaround. 这只是一个解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM