PhpStorm set all files / folders to brown background and weird structure - phpstorm

So I just noticed that my PhpStorm has set a background color to my project and also the structure is weird. All best explained by some screenshots.
This is how it is looking now, I cannot even see my App folder etc here:
After I click on Project in the top and then select Project Files, I can see my structure again like normal:
My question is, what does this mean and how can I set it "back to normal"? As for me, "normal" means the following:
I can see all my files in Project and also there is no brown background color.
What I have done so far, as suggested from Google searches, is:
Close the project, remove it from recent projects and opening it again in PhpStorm.
Removing the .idea folder and opening my project again.
Reload All From Disk.
Invalidate Caches.
P.S. This is a new Laravel project, with only some minor changes and all files added to git, and also just did one last commit. Nothing "fixes" this.

This "yellowish" background means that the IDE treats those files/folders as excluded or not part of the project (i.e. outside of the project). This can be caused by some broken/out-of-sync project config file (for whatever reason, e.g. when making a project and there is incomplete .idea folder already / merge conflict etc).
Deleting .idea subfolder while IDE is closed and then reopening the project is enough to fix it (use "Open" and point to the project root folder and PhpStorm will make a new project from existing files).
Related forum thread/tickets:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/4404912351506/comments/4404921897746
https://youtrack.jetbrains.com/issue/IDEA-271728
https://youtrack.jetbrains.com/issue/IDEA-296960

Related

WebStorm/PhpStorm: files missing from project view

I'm working in PhpStorm 2017.3 but this probably applies to many IDEA IDEs. A while back (on an earlier version) I made a change to project settings that hid .spec.ts files from the project view. I'd like to undo it but I can't figure out what it was.
Here are files in a folder as they appear in the IDE:
Here is the same folder in my OS file explorer. Notice all the spec.ts files:
I thought maybe the setting had to do with Scopes after reading LazyOne's answer here. However I have no scope defined in this project:
I also thought that perhaps I had added these files to the list of excluded files in Settings > Directories but turns out this list has a couple of irrelevant directories but no specific file:
What did I do to hide these files and how can I undo it?
The setting in question had to do with Settings > Editor > File Types pane. See the Ignore files and folders section of this doc page
I had added *.spec.ts to my list, causing the IDE to pretend those files don't exist at all.

Files not under caret on new computer

I opened my project on another computer, and the files where I'd been using a file watcher were expanded, like before they used to be nested like home.scss is now after I run the watcher once on that file.
Is there a way to automatically make all the files be nested?
Because when adding new files and folder with git, it would be quite troublesome to go into each and every file in order to make them become nested.
Like I have some minified JavaScript files that used to be nested, but now is expanded for some reason.
Hope you understand. Thank you.
Edit: Nested***
Is there a way to automatically make all the files go under a caret like that?
Unfortunately not. Such nesting information (to "go under a caret" as you are saying) is taken from "Output path to refresh" field of the corresponding File Watcher.
You have to run file watcher for such files at least once in order to see files nested like you have it on your another computer.
Here is how you can run File Watchers manually without the need to modify those files (so no extra history will appear in your git (or whatever VCS you may be using there)).
https://stackoverflow.com/a/20012655/783119
P.S.
In PhpStorm 2016.3 (the next version that will be released in 1.5-2 months or so) such nesting will be done automatically (the most common combinations) so there will be no need to have File Watchers for providing such info.
If you wish -- you can try EAP build right now (EAP means Early Access Program .. which is sort of Alpha/Beta builds (simply speaking).. and therefore some bugs for new functionality might be present and performance may not be optimal).

PHP Storm: how to remove project without deleting files

I accidentally made the entire PHPstormProjects folder, which contains all of my projects, and turned it into a project. When I realized my mistake, I deleted all the files which I had uploaded into the project, but it still lists it as a PHPStorm Project.
I don't want to simply delete the project, as it contains all of my other projects. Is there any way to 'unset' a PHP project?
On "Welcome" screen (when all projects are closed) just select unwanted project and press Del key.
To make sure that IDE will not treat this folder as a Project -- just delete project settings (.idea subfolder) when that project is closed.

How to change Active configuration in monodevelop?

I'm following these steps to build sdrsharp on stable Debian. So fr, everything went without a hitch, but I can't figure out this step:
cd into the new sdrsharp directory and then load monodevelop and open the sdrsharp.sln project. If the .sln doesn't open use a text editor to open the .sln file and at the end of the first line change the 12.00 to 11.00. Older versions of monodevelop don't understand the VS2012 header.
Set the Active Configuration from Debug|x86 to Release|x86.
The first one is just given for context, monodevelop has no problem opening the file. But how do I change the Actove Configuration?
Monodevelops internal help is broken, I have no experience with monodevelop or similiar tools as I'm no coder, hence asking here.
Edit to add
The same question was asked and answered here, there should be an option under the "project" tab. But in my case, working from the downloaded .sln, all options under project are grayed out. What to do?
Fixed! The Version had to be changed back to 11 (first bullet point above, relevant to my special case), then reopen file, then it's opened as a project, not as a text file and all the options work.
Take home lessen: That a progeam opens a file without complaining does noit mean there's no error.

sublime text 2 project sidebar stopped reacting on new files

So I am using Sublime Text 2 with several plug-ins (but not too many: BracketHiglighter, CSS snippets, FileDiffs, Gist and Package Control).
Out of the blue the sidebar with file list of the project stopped reacting on file changes.
When I create a new one and save it to the folder, it does not appear in the sidebar at once, but only after Sublime restart, which is unacceptable.
Does anyone have an idea on this?
That project, where it appeared finished, and haven't occured on the new ones.
Suppose it could be caused by some low machine performance - for the large project.
Update
Excluding system/framework core folders also helps.
"folder_exclude_patterns": ["node_modules", ".svn", ".git", ".hg", "CVS"],
Can be done globally and in project Folders settings.