

#Phpstorm project remote directory code#
PhpStorm uses libraries only to enhance coding assistance (that is, code completion, syntax highlighting, navigation, and documentation lookup). See Configuring node_modules library for details.Įxternal Libraries for storing downloaded TypeScript definition files or libraries referenced via CDN links as well as Node.js Core nodules or any custom third-party libraries. Node_modules for keeping Node.js packages listed in the dependencies object of your project package.json. PhpStorm reserves two predefined auto-generated library folders: In the scope of a project, its libraries by default are write-protected. Functions and methods of these files are added to PhpStorm's internal knowledge in addition to the functions and methods that PhpStorm retrieves from the project code that you edit. So the issue only raises when the top folder is not declared to phpstorm as a working directory.In context of the language and the IDE, a library is a file or a set of files. Since then, the issue does not show anymore. ideas folders and created a new project anew, this time declaring the top folder as main root and specifying various subfolders to be ignored or not. git was used for secondary commits, even when displayed as "unregistered root". And the top folder was NOT declared at all to phpStorm. other subfolders phpStorm should never deal withĪt first, i declared the various subfolder to phpStorm, adding each sub-folder as a directory.

several subfolders, some of them having a dedicated. htdocs/ site root folder with production host. git folder of the top folder is discovered by phpstormĢ) when the project IS the topfolder, this issue doesnt happen anymore To answer your question the situation is as follow : The top folder git is the one provided by the webhoster, which i dont use for detailed versionning but for rare global tags.ĪMOF 2 news, one not so good specialy in this issue's context, one good.ġ) even when renamed.

git is not listed anywhere.Īfter PhpStorm has commited to the subfolder's Git repo(s), it keeps detecting the top folder Git repo and wants to commit to itįYI : the subfolder's gits follow the specific projects i'm working on. Just in case, I also unchecked "Execute branch operation on all roots" in "Settings > Version control > Git", but it has no effect on this issue.īeside, in "Settings | Directories", only subfolders are listed. git repo as a versionned file, but to ignore it as a repo. Anyway the issue is not to not commit that. All I can do is add it to the active Directory list, which i dont want of course.īTW In "Settings > Version control > Ignored files", there is no way i can set the top ".git" to be ignored : it's not even listed there, even with "List hiden files" option. Or is there a way to remind which is the destination repo : The "Settings | Version control" detects and lists the faulty root repo in the second list as "Unregistered root", so shouldnt it NOT interfere ? While it's in this "unregistered root" list, I can neither delete nor edit it. Am I requested to commit and push blindly without knowing whereto ? Moreover an issue is : there is no git info displayed in the commit or push window - or i couldnt see any. So question is : how can I tell PhpStorm to not manage upper folder GIT at all ? I would like to have the same behaviour with PhpStorm and so as to enable this, top folder's GIT is not included in any of the directories that are included in the PhpStorm project. On the command line, all I do in subfolder's subtree goes to subfolder's GIT and when i go upper, than commits and pushes go to upper folder's GIT.

When i have pushed (to subfolder's git, by chance), then the changelist is still there, but at least i can doubleclick on a file and edit it. When changes have been commited (to subfolder's GIT by chance), PhpStorm still proposes to commit them to top folder's GIT, which i do not want.Īs long as they have not been pushed to subfolder's git, doubleclicking on a file in the changemost produces an error "fatal: Not a valid object name" followed by an unknown revision number and the filename, and i cannot edit the file anymore. PhpStorm commits to the subfolder's GITs and when this is done it requests to commit to the upfolder's GIT ! The top folder is NOT included in any of the projects directories because I dont want the IDE to deal with the upper folder's GIT at all.īut this is not the case. I want PhpStorm to only deal with the subfolder's files and with the subfolder's Git repo. git repo at the root of the bigger folder, and My PhpStorm project is made of several subfolders of a bigger folder.
