Turn off Intellij auto adding to VCS/Git - intellij-idea

I've accidentally turned on automatic addition of new files into Git and clicked 'Remember my decision, don't ask again' (or whatever the option actually is) and now I'm unable to change the selection in Preferences |> Version Control |> Confirmation, those options are greyed out. Is there a way to disable this again?

On Ubuntu 16.04 - Go to:
File -> Settings -> Version Control -> Confirmation -> When Files are created
Here you can configure how IDEA behaves for when a file is added or deleted (and other scenarios), options:
- silently adds file to Git or display popup with options or if it should do nothing
select option: "Do Not Add"

Preferences |> Version Control |> Confirmation is the only place to configure this behavior.
This is a common functionality, not only for git. I have never seen it disabled. Does it happen for all controls in the Confirmation node? What about other options under Version control? Doesn't IDE restart help?

Related

IntelliJ IDEA Main Menu missing

After updating my Ubuntu to 20.04 this night, I noticed that my IntelliJ Main menu is missing.
The Problem is exactly the same as described here:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000667510-Main-Menu-not-showing
However:
the SHOW_MAIN_MENU option shows no effect
the shortcut workaround is not working
the View | Appearance: Main Menu action is disabled:
I have tried multiple reinstalls both via snap & zipped standalone. Including purges of ~/.config/JetBrains and ~/.local/share/JetBrains without success.
Invoke Help | Find in action.
Type Experimental features.
Uncheck linux.native.menu.
Make Main Menu reappear IntelliJ IDEA in Ubuntu
System Details:
Ubuntu 20.04.1 LTS
IntellJ IDEA Community 2020.2.3
How the issue was created: I wanted to hide the menu
Steps:
Click View > Appearance
Uncheck Main Menu
Solution to make the menu reappear
Steps:
Open folder: ~/.config/JetBrains
There could be more than one folder. I had two: IdeaIC2020.1, IdeaIC2020.2
Both has configuration xml files for the IntelliJ.
IdeaIC2020.2 seems to be the one with the configuration for IntelliJ.
IdeaIC2020.1 must have been for previous version or previous installation. Even if this is removed, IntelliJ worked.
Open IdeaIC2020.2 > options > ui.lnf.xml
Set value to true : option name="SHOW_MAIN_MENU" value="true"
I hope this helps.
Cheers,

Wamp server cant enable/disable modules (for apache)

I cant enable APACHE modules on WAMP-Server.
After i click the module name (which is not-checked), then server restarts, but when i go to modules, then module is not still enabled.
I even manually opened httpd.conf and enabled module, restarted server, but module is not still enabled!
Has anyone faced similar problem ? what's solution?
A couple of tips.
WAMPServer must be installed as an Administrator so when you launch the install right click the .exe and select "Run as Administrator"
WAMPServer must also be Run As Administrator
When you attempt to include or exclude a new Apache or PHP extension, WAMPserver will attempt to restart Apache so the changes takes effect. If the changes do not show up, it may just be that the menu just skipped a beat, then try a refresh by doing
right click wampmanager -> refresh
If you install WAMPServer using the "Run as Administrator" but attempt to run WAMPServer without using the "Run As Administrator" it will not have the rights to amend some of its own files. This can cause problems like this one, and many others.
solution seemed to EXIT WampServer, then modify httpd.conf manually, and starting Wamp again.
I has this same issue (drove me crazy for a while!), and in my case I had to increase the memory_limit setting in php.ini (make sure it's the right one - open from Wampmanager - it's actually in the apache folder). I set it to 512M and it worked on 2 of the 3 servers I was having issues with.
For the other one I has to add this line:
ini_set('memory_limit', '-1');
to the top of file:
[drive]/[wamprootfolder]/scripts/refresh.php
And then run the Refresh from Wampmanager (right-click the icon). DON'T FORGET TO COMMENT IT OUT/REMOVE THE LINE ONCE IT COMPLETES. This disables the limit which can cause issues if it loads a script with a memory leak, etc.
The problem is that the refresh.php script is supposed to automatically update the wampmanager.ini file (found in [wamprootfolder]) after each change, or when you run it from Wampmanager itself. With the memory setting too low, it caused the function to exit without changing the .ini file, which is why you keep seeing the same settings, version # (after an update), etc.
To test, you can load the default wamp homepage in a browser to confirm version, and then click on phpinfo() to verify what modules, etc. are actually loading. OR just look at the modified date of your wampmanager.ini file!
Once it's working right, your wampmanager.ini should update itself when you run the Refresh (or make a change).

Could not list the contents of folder in phpstorm latest version

I have latest version of phpstorm, downloaded today. While uploading files to remote server i click on refresh icon in remote host, then phpstorm displays error
could not list the contents of folder phpstorm. How can i correct that ??
Go to Tools -> Deployment -> Configuration -> Advanced Options. Check Always use LIST command.
Works like a magic!
Go to Tools > Deployment > Configuration > Advanced Options and Select the Pasive mode option.
It worked out for me!
For me was that for some reason the folder of the Root path was deleted. Check yours!
for me nether of these settings worked. in my settings i didn't even have passive mode (intellij idea).
so what i did is, lookup the server directory with a php info file (uploaded it with another ftp tool, that was able to list the direcories: transmit) and then rebuild that path inside tools / deployment / root path.
Go to Tools > Deployment > Configuration > Connection > Advanced and select:
Passive mode
Compatible with old version of listining children
Instead of MLSD
It worked out for me!
Step by step image

phpStorm 7 Code completion stopped working

I have been working with phpStorm and it had suddenly stopped showing suggestions for code completion. When i do Ctrl + space its behaving correctly by showing all the possible options in a drop down.
I have followed the below link and have did invalidate cache but still of no use.
PhpStorm code completion doesn't show core classes/extensions
My Setup is:
OS: Mac - 10.9.2 (Mavericks)
PHPStorm: 7.1.3
I just had the same problem, fixed it when I realized I mistakenly put PHPStorm in Power Save Mode. Click the little fellow on the bottom right of your PHPStorm window and switch that off
Indeed, the Power saving mode (File > Power Saving Mode) allow you to disable the code inspection functionnality.
However sometimes the PhpStorm code analysis failed and you lost your code completion. In this case you juste have to ask for a new code analysis (File > Synchronize [CTRL+ALT+Y]) or invalid the cache and force a restart (File > Invalid cache / Restart).
Hope that helps.
Invalidating the cache did not work for me, but this did:
Enable power save mode (File > Power Save Mode), then disable it.
If your are using a Linux distro (Ubuntu, Debian, Centos) etc, it is due to ibus.
Just change the Shortcut (run: ibus-setup and change to Super+Ctrl+Space for instance) and everything will be fine again.
Or (my favorite): uninstall ibus if you are not using it.
In a Debian/Ubuntu distro should be:
sudo apt-get remove ibus
Ctrl+Space autocompletion should be back.
It was power saving mode for me too. It's an option at the bottom of the File menu.
install a previous version
https://www.jetbrains.com/phpstorm/download/other.html
Worked for me after I tried everything.
I struggled with this for a few hours this morning. After invalidation of caches, a complete reinstall, etc.. nothing worked.
I closed phpstorm and removed the .idea folder in the filesystem. I then renamed the project folder and reopened it. Autocomplete was now working!
I noticed that phpstorm then created the old project directory in the background, even though I did not open it and put a .idea folder in it. Something is obviously corrupted here.
" ... stopped showing suggestions for code completion".
On mac you can invoke it by fn+ctrl+space.
Going to php-storm -> Settings -> Keymap -> Set Active Changelist you can see it is associated with ^+space.
on windows ctrl+space

gedit automatic session saving or default session?

I'm used to eclipse's and notepad++'s behavior of automatically opening the files and tabs present on last exit. Does anyone know if there is a way to enable this in Gedit? The session management plugin that I'm using seems to require explicit menu selection of load and save in order to retrieve a session. Anyone know if there's a way to automatically restore the last session or to choose a default session?
Thanks.
There is a Session Saver plugin available in gedit-plugins package. Look at http://live.gnome.org/GeditPlugins
For gedit 3.10 (included in Ubuntu 14.04) use this plugin: https://github.com/raelgc/gedit-restore-tabs.
In case ~/.local/share/gedit/plugins/ does not exist.
Please create using mkdir -p ~/.local/share/gedit/plugins/
One more soulution https://github.com/disfated/gedit-plugin-reopen-tabs
I've been very happy with https://github.com/jefferyto/gedit-ex-mortis, which can automatically restore windows, including all tabs, between sessions (you just have to enable the option in Preferences). It requires gedit 3.12 or newer, and works great for me on version 3.36.