Deployment: Excluded path 'out of project' warning for directory not out of project.
I'm trying to exclude the node_modules directory for FTP deployment but PhpStorm says the localpath excluded path is 'out of project' when it clearly isn't. See the image. How do I exclude a local directory?
请先登录再写评论。
It seems that this message appears because the folder is also marked as excluded at Preferences | Directories.
https://youtrack.jetbrains.com/issue/WI-47032
When you add it this way ignoring the message, does the folder actually get deployed on upload?
Same problem here. I mapped an env directory as excluded path in the deployment configuration and in the Project structure configuration. Still, it gets deployed when performing the upload. Any workaround for this?
EDIT: found the workaround to add the directory names to the 'Exclude items by name' field in the deployment option.
I have exactly the same problem with node_modules. I excluded it on both the local machine and remote server but still gets uploaded. Any solution?
Did you try a workaround with adding the directory name to "Build, Execution, Deployment | Deployment | Options > Exclude items by name" as mentioned above?
Dear Vasiliy Yur
I tested adding both "node_modules" and "node_modules/*.*" and none of the work.
Thanks for trying.
Sorry but I am unable to reproduce the issue on my side, the directory exclusion works fine for me in both cases ("Exclude By name" and "Excluded Paths").
Just wild guessing but is there any chance that you have a symlink to the "node_modules" somewhere in your project?
I had the same issue with node_modules. I excluded the directory before right click -> mark as -> excluded.
By marking it as excluded, pycharm thought node_modules was 'out of project' because it was marked excluded somewhere else.
I solved this with right click -> mark as -> cancel marking.
Then pycharm saw that it was 'in project' so it could now add it to 'path exclusions'
I see this is still not resolved. I've the issue actually. I've no excluded files or folders and even moved .gitignore and the gitignored folder to be sure they don't cause the issue but I still get "That my local Path */* is out of project".
Please advice.
Thank you!
Could you please attach a screenshot of it + a screenshot of how your project looks like in a Project Tool bar?
Thanks. Your entire project has "excluded" highlighting. That's probably because of corrupt/missing config files in .idea folder. Please backup that folder & delete it while IDE is closed. Then reopen the project & configure the deployment server again - that should help.
Alright, that fixed it, thank you, Dmitry!
You're welcome
Hi Dmitri, I have tried the steps you mentioned (close IDE, delete .idea, re-enter the deployment configuration), and have the same issue:
Boggs Shannon, thank you for making the Project tool window visible on the screenshot too. It seems that your dist folder is indeed excluded in Settings | Directories, so the notification is valid, excluded directories are considered to be out of the project.
Thanks Eugene, this is not clear to me. I marked the directories as "not excluded" in directory structure shown on the left, using the right-click context menu there. But, see in the "settings" window, they are still shown as "Excluded" - but I don't see a way to mark them as "not excluded" using Settings|Directories?
And, I really don't want anything under C:\dist included in searches (the purpose of "Excluded Folders, if I understand correctly), I just want them for builds and deployment - am I misunderstanding this?
In this case, you can ignore the message - it's purely informational, and deployment will work just as if the folder was a part of the project.
Deployment isn't working, is the problem. However, I will post my issue in a fresh post, as I using Webstorm2022.1.