Webstorm deployment settings get lost everytime I open WebStorm

Webstorm deployment settings get lost everytime I open WebStorm. I have to reconfigure everytime I need to use it. 

The webServers.xml and deployment.xml has the right info but the WebStorm does not show any config.

 

Any ideas? I've already updated to the last version.

 

Thanks

9 comments
Comment actions Permalink

Are the settings project-specific (is Visible only for this project enabled)?

Please recreate the issue and provide your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files). Don't paste it here, put it on some file server and provide a link

0
Comment actions Permalink

Hi Elena.

 

Here goes the log file. I've recreated the issue today (12/25).
All server configuration is lost after restart.

https://drive.google.com/file/d/1sjtR8SC54YeoARFONj5FIt47jORGVEm_/view?usp=sharing

Without the "Visible only for this project " checkbox enabled, only the folder mapping and the Automatic Upload of files is lost.

 

Thanks,

 

Eduardo

0
Comment actions Permalink

Looks as if deployment.xml and webServers.xml  are not saved/read from
C:/Users/esaito/OneDrive/Sites/EscolhaBrasil/ebr-adm-webfront/.idea. However there are no errors in log that look related. Can you check these files content? Are they version controlled?

0
Comment actions Permalink

I think I found the issue.

I use Onedrive to save my files in the Cloud. When I delete everything and recreate the project, everything works fine at first. As soon as the folder is sync'd to the cloud, any restart of Webstorm make you lose access to .idea folder contents. I don't know why because my user has full control over the folder and even pausing the syncing process the configuration does not load.

My workaround is to use a local folder that is not part of Onedrive sync. It would be great if we could specify the location of the .idea folder, a location that could be different than the project contents folder.

For now I'll be using a local folder.

 

Thanks for your help Elena.

1
Comment actions Permalink

>It would be great if we could specify the location of the .idea folder, a location that could be different than the project contents folder.

 

You can create a new empty project in the preferred location, and then link your source folder to it by adding it as a content root in Settings | Directories, Add Content Root

2
Comment actions Permalink

That worked like a charm! It is a good workaround when using Onedrive or similar cloud storage.

Thanks Elena!

 

0
Comment actions Permalink

I had exactly the same problem - my project folder was backed up by OneDrive. Creating a dummy directory outside OneDrive and adding another Content Root worked around that problem, but now my project doesn't find git details. Is there a way to fix that with this setup?

0
Comment actions Permalink

@Erkki Lepre

There might be a setting in OneDrive that causes it (the initial issue / root cause). Basically, it allows to store those files in the cloud ONLY and download to local disk only on demand .. which does not go well with IDE that requires FAST access to project files .. and will simply treat such file as "does not exist".

Check this out, it may do the job so you do not have to use Additional Content Root thingy at all : https://stackoverflow.com/a/49711909/783119

2
Comment actions Permalink

Thank you! That helped! (I didn't even know, that OneDrive does this "save space" thingie by default.)

0

Please sign in to leave a comment.