php storm hangs when starting because it is trying to access a network project that no longer exists

PHP storm 2016.2 on  Mac Siera

I am unable to start PHP storm sometimes because the program automatically tries to go to the last known project which for me on some occasions is harboured on a network drive which has an ip address that changes from time to time. 

 

Do I need to uninstall PHP storm and reinstall it to fix this problem? 

PHP storm devs ... please put in some sort of a timeout function here to ask the user if they want to continue waiting for a project to load after 30 seconds.

 

 

0

Hi there,

>Do I need to uninstall PHP storm and reinstall it to fix this problem?

Just disable "Reopen last project on startup" option in "Settings/Preferences | Appearance & Behavior | System Settings"

 

>PHP storm devs ... please put in some sort of a timeout function here to ask the user if they want to continue waiting for a project to load after 30 seconds.

Not a JB dev .. .but working with project files directly over network is officially not recommended way. IDE architecture requires fast access to source file .. which network connection often fails to provide (latency is usually bigger than HDD or SSD) so you may see random short freezes/delays even on basic code completion. If your network is fast -- great, but you are doing it on your own "risk". Recommended is to have a local copy and setup automatic deployment (copy files to another location) on Save.

0
Avatar
Permanently deleted user

Hey Andriy,

I am unable to get to the system settings because PHP Storm freezes on startup..... I suspect I am going to have to uninstall and re-install unless an informed individual can point me to the file on my Mac that stores the last known project saved settings so I can delete it if possible. 

When PHP storm starts up and freezes I only have access to a limited menu which does not offer the full settings menu.(Image attached).


 I agree with you about not loading files over the network but that's just how the company works although this will change soon as I understand it. None the less, this should be quite an easy fix to include and there really should be some sort of test to see if the files have loaded successfully imho.

While searching for a solution for my problem, I have noticed quite a few posts about PHP Storm that are network related and a simple check would help to address this.

0

"PhpStorm | Preferences" on Mac is what you get under "File | Settings" on Linux/Windows

So .. can you access Preferences?

Does "Help | Find Action..." work for you? (Ctrl+Shift+A or Meta+Shift+A on Mac -- accessible even from Welcome screen). You can switch on/off individual options there as well.

P.S. It's also possible to change it by editing config file directly .. but I would need to go through my config files looking for right file/option first.

0
Avatar
Permanently deleted user

1) No I cannot access preferences ...nothing in that menu screenshot I attached works except Hide PHPStorm

2) Help | Find action does not work - I get the beep alert sound that happens when a command is not recognised

 

0
Avatar
Permanently deleted user

I found a solution in terminal.

mount 

Find the network drive that is no longer accessible and then:

sudo umount -f /path/to/your/remove/server

 

0

Great,

As I understand you can disable reopening of last project through Preferences now?.. so you no longer will get into the same situation again.

1
Avatar
Permanently deleted user

Yes I have done that now... thanks for your help.

0

I also would like to see some kind of timeout function here! As I work on some projects having asset dependencies (larger than 500MB to 1 GB) I sometimes have no other choice than working with a self-coded script doing a mix of sshfs and overlayfs providing read-only "remote" access. Having all these on my local drive for say some 15-30 min support tickets would trash my whole hard-drive with junk that I need only rarely or some files I only need to make the cms-system work fine until I work on the "problem" in that project!

I sometimes have to open multiple projects as there may occure some support tasks, so it then it really sucks that the "Reopening files" dialog stucks my whole project workspace!

I have to xkill (on linux) the whole PHP Storm IDE with all projects open, try to find which remote fs "may" stuck the whole thing, try restarting (and may be xkill again ...) until I was able to reopen. Never the less afterwards I must remount the whole (*)hit to make everything work again!

This is driving me crazy and costs a lot of time (and money)!!!

It would be awesome being able to skip reopening / re-indexing for mounts that may be busy or unresponsive! It would also be awesome to expand the dialog to see which directories keep the process busy (may be with kind of timeout bar skipping after timeout reached).

Thanks @...

0

GKN

https://youtrack.jetbrains.com/issue/IDEA-101218 -- this one is about situation when you use "Open" / File Chooser dialogue. Check that and related tickets, you may find one that is more suitable for your case (check IDEA project tracker for that).

P.S. IDE should have an area in the bottom status bar where it says "Indexing etc" -- try cancelling/pausing the task there.

Sadly no better suggestions from me as I do not have this kind of issues (not using such network mounts or alike; all local, Windows and relatively small projects/no huge dependencies).

P.P.S. If you will not get better suggestions here, consider using "Submit a Request" button at the top to contact the Support Team (they may give a better ticket to watch / proper solution or workaround).

1

Thanks for the hint Andriy Bazanov I'm trying with IDE option 'directory.access.checker.enabled=false' if this stops this behaviour.

Just for notice being mentioned. Not the whole project is on network, only sub-directories containing assets like images, pdf, video etc. I still hope the flag mentioned in the ticket #IDEA-101218 will help.

0

请先登录再写评论。