I just started using IntelliJ and I wanted to know what is the best way to replace your workspace directory contents with the latest ones from cvs. Whenever I run update it doesn't overwrite the changes I made but I am looking for an option where it will blindly overwrite.
You want to do a force checkout or force update, this isn't really an Intellij IDEA issue, as much as it is a CVS behavior regardless of IDE, or no IDE.
You can open the Changes view, revert all of your local changes from there, and then update from the version control.
Related
I'm working on multiple projects at the same time which are inter dependent. Sometimes, when one developer pushes updates to one project (for example Liquibase changes), they are picked up by my IntelliJ which immediately complains about missing columns when I restart the project. I did not explicitly issue any fetch/pull or update request against the remote repository. This is kind of annoying because I am then forced to pull all the new changes locally.
I remember my old IntelliJ version behaving normally (2019) so this is a new "feature" I guess? How can I disable it?
Could you please share screenshots of an issue? IDE doesn't run pull/fetch or upgrade automatically if you are using Git, but there is a chance that you may have Git Toolbox plugin installed and it has a feature for Auto-fetch and you need to disable it in settings
I am using the newest (updated) version of IntelliJ IDEA. I am coding in Javascript (React) and i've been using the One Dark theme for ages now.
But since the last update, everything is glitched.
So first problem:
The IDE is now allways starting in the white theme (which is related to the windows theme)
When i try to change the Theme, either nothing happens, or it just doesnt show any Themes, even tho i installed more than 14 (they are disabled tho).
Second problem:
I can not code in Javascript anymore. There is just no collor at all. No marking for functiond etc.
Third problem:
My IDE is crashing almost everytime, I try to open a new, or existing project.
Why is that, has someone simular issues, and what can i do, to prevent having to reinstall my IDE, as i do not want to set my IDE up again.
Thank you in regards
You will have to reinstall. But you can save the Config file.
So you can keep all your settings.
Here are the Paths for windows
Windows:
Configuration: %APPDATA%\JetBrains\IntelliJIdea2020.3
Plugins: %APPDATA%\JetBrains\IntelliJIdea2020.3\plugins
System: %LOCALAPPDATA%\JetBrains\IntelliJIdea2020.3
Logs: %LOCALAPPDATA%\JetBrains\IntelliJIdea2020.3\log
Hope this helped.
I noticed that many of my files had their icons changed and IntelliJ's auto-formatting is broken for them. I don't know what I did before it happened because I didn't notice it right away.
The "File Types" config seems fine to me:
If I rename one the affected files, the icon changes back to the correct one but since I don't want to rename all of those files I wonder if someone here has an idea how to fix this in a better way.
I'm using IntelliJIdea 2020.1
As an daily IntelliJ user you usually concentrate on the projects you are working on and IntelliJ is just a tool. You are not willing to dig into tool's problem itself. But this is what is forced on you by default after IntelliJ installation on MacOS and opening relatively big project(most of the projects nowadays are huge and have thousands of files and use numbers of IntelliJ 3rd party plugins).
Here is a minimal list of actions. IntelliJ must have set MORE RAM to be used by default.
Read: https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files .
From IntelliJ open Help / Show log in Finder and open idea.log file with Console.app; In Console.app press "Reload" and "Now" buttons to track "live" what IntelliJ is doing.
If in logs of IntelliJ you find that some of the plugins exit with fatal error, you just uninstall those plugins. For me the one that failed to the moment of this answer was "BashSupport" as example.
Start Terminal.app ; Run command: open -a TextEdit /Applications/IntelliJ\ IDEA.app/Contents/bin/idea.vmoptions ; Change options in idea.vmoptions file to:
-Xms1024m
-Xmx2048m ; Read https://www.jetbrains.com/help/idea/tuning-the-ide.html to see how you can tune IntelliJ for your project. This step is handy when your IntelliJ app doesn't start at all and you want to change properties in a global way.
From IntelliJ open Help / Edit Custom Properties.... Here you can set same properties that will override global and will work only for current OS user.
Also there is also a possibility of underlying OS to do it voodoo magic so the IntelliJ won't work as it should like here - https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000398280-IDEA-Ultimate-2018-2-Unable-to-save-settings-Unable-to-create-file-Windows-10
Make sure your project build output for *.class files is set. Read: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000000584-Build-does-nothing . In my case when IntelliJ started project build it terminated without warnings shortly after.
Finally in my case none of 6 steps above solved the issue so I found this read: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000532044-IntelliJ-cannot-build-projects . Basically try reinstall IntelliJ from original distribution again.
I know that you must read https://www.jetbrains.com/help/idea every time you install a new version of IntelliJ, but why not to add some consistency into configuration process of the main java process that runs IntelliJ itself? You can ask how much ram to use during installation of IntelliJ and explain why it is so. Then Help digging won't be necessary in the first place for devs who fed up with changing those default settings that will be always more than 700MB. I think for most devs out there it is at least 10x of that. I bet what makes most devs mad about this is not the fact that you need to do some options changing, but where those options are depending on OS plus the fact that you simply forget why IntelliJ app just exits while you are doing a debugging of your own app. I bet this problem makes us mad since first java based IDEs appeared. User-friendly is the key here and explicit reminders within the app itself would help.
Whenever you hit 'the check for update' button, IntelliJ checks for IDE update and starts by checking and updating all your active plugins.
The point is that I use a pretty crooked plugin which only works for me in an old version (a release from last year).
To be more specific, I'm talking about 'QA Plug PMD' which is not compatible with my imported sonar rules in its last version.
Actually, QA Plug PMD's last version is based on PMD 5.0.x and I need QA Plug PMD's 2012 version which is based on PMD 4.3.
In summary, when the QA Plug PMD plugin gets updated, my coding rules are all reseted because the plugin is not backwards-compatible.
That being said, I need to know if there's a way I can tell IntelliJ not to care about this specific plugin during its update process and leave it alone :)
Goto File -> Setting -> Appearance& Behaviour>System Setting->
Updates->Uncheck the Automatic uppadte checkbox.
Tada.. Done.
Danke,
Rahul
The best way would probably be to not install it from the plugin repository. Try to install it from disk instead. Download it from the link you provided instead (the zip file will be downloaded):
Then choose to Install plugin from disk... instead:
And then point to the pmd.zip file:
Edit
During the update you will get a question whether you want to update the plugins as well and you can always uncheck that plugin:
Edit2
Make sure that you don't have the Check for updates in channel checked. That might help you out: