Posts

Showing posts with the label Intellij Idea

Cannot Ignore .idea/workspace.xml - Keeps Popping Up

Answer : I was facing the same issue, and it drove me up the wall. The issue ended up to be that the .idea folder was ALREADY commited into the repo previously, and so they were being tracked by git regardless of whether you ignored them or not. I would recommend the following, after closing RubyMine/IntelliJ or whatever IDE you are using: mv .idea ../.idea_backup rm .idea # in case you forgot to close your IDE git rm -r .idea git commit -m "Remove .idea from repo" mv ../.idea_backup .idea After than make sure to ignore .idea in your .gitignore Although it is sufficient to ignore it in the repository's .gitignore, I would suggest that you ignore your IDE's dotfiles globally. Otherwise you will have to add it to every .gitgnore for every project you work on. Also, if you collaborate with other people, then its best practice not to pollute the project's .gitignore with private configuation that are not specific to the source-code of the project. I had t...

Android Studio Where Is Color Picker For Flutter Plugin

Image
Answer : The color picker is not clickable in Android Studio running Flutter( Dart code), see picture below. But i found a work around using the Color class and manually opening color picker. Then pick a color and copy/paste it like this: Here is how i do it: 1. Double tap shift to run search 2. Type Color or Picker 3. Open Color Picker from the search list 4. Copy/paste the HEX color code into your color class. Expert tip: Add color picker to a keyboard shortcut . You can find the settings for Keymap , under File > Settings > Keymap

Creating Jar With Intellij 2016 - No Main Manifest Attribute

Image
Answer : I was stucked with the same problem with maven build. When you are creating the artifact from project structure settings (ctrl+alt+shift+S), you have to change manifest directory: <project folder>\src\main\java change java to resources <project folder>\src\main\resources I have also used the option extract to the target JAR, and it's working well. EDIT You can find a detailed step-by-step, an other solutions here: https://stackoverflow.com/a/45303637/2640826 I spent a few days to resolve it. My solution: I loaded a project that present in this answer. Then I compared and corrected settings of the loaded project and my own project. I compared/corrected: Run/Debug Configurations MANIFEST.MF in Progect Structure settings: Project, Modules (mark what is sources, resources and etc), Artifacts. In the end, I placed META-INF in resources directory. Maybe i did excess actions, but it worked for me :) P.S. also need to choose "Inherit project compile output path...

Correct Way To Add External Jars (lib/*.jar) To An IntelliJ IDEA Project

Image
Answer : Steps for adding external jars in IntelliJ IDEA : Click File from the toolbar Select Project Structure option ( CTRL + SHIFT + ALT + S on Windows/Linux, ⌘ + ; on Mac OS X) Select Modules at the left panel Select Dependencies tab Select + icon Select 1 JARs or directories option IntelliJ IDEA 15 & 2016 File > Project Structure... Project Structure"> or press Ctrl + Alt + Shift + S Project Settings > Modules > Dependencies > " + " sign > JARs or directories... Dependencies > JAR or directories"> Select the jar file and click on OK, then click on another OK button to confirm You can view the jar file in the "External Libraries" folder Just copy-paste the .jar under the "libs" folder (or whole "libs" folder), right click on it and select 'Add as library' option from the list. It will do the rest...

@ConfigurationProperties Spring Boot Configuration Annotation Processor Not Found In Classpath

Answer : I had the same problem. I use idea 2017.2 and gradle 4.1, and some blog said you should add: dependencies { optional "org.springframework.boot:spring-boot-configuration-processor" } But I changed it to this: dependencies { compile "org.springframework.boot:spring-boot-configuration-processor" } And the warning is gone. According to the Spring Boot docs, the correct configuration since Gradle 4.6 is dependencies { annotationProcessor group: 'org.springframework.boot', name: 'spring-boot-configuration-processor' // ... } IntelliJ IDEA supports annotationProcessor scope since build 193.3382 (2019.3). Don't forget to enable annotation processing in IntelliJ IDEA settings. It happens to me for two reasons in IDEA: Double check if your setting is picked (enabled) in IDEA: Preferences->Annotation Processors->Enable annotation processing. After update your Idea, check your plugins and update them. It happens that plugin...