intellij-idea

Explanation of Intellij undo.documentUndoLimit and undo.globalUndoLimit

醉酒当歌 提交于 2020-12-15 05:18:10
问题 What do these settings actually do? What values should a pro have on these and what impact do they have? Refactoring undo for instance, "X file has already changed so you can not undo" would be GREAT if we could throw in the garbage using any setting combination. 回答1: Based on this question the documentUndoLimit is the max level of undo for each document (actually current document) and the globalUndoLimit is the undo max level of undo for the IDE on the current project. For example, when you

Explanation of Intellij undo.documentUndoLimit and undo.globalUndoLimit

泪湿孤枕 提交于 2020-12-15 05:17:10
问题 What do these settings actually do? What values should a pro have on these and what impact do they have? Refactoring undo for instance, "X file has already changed so you can not undo" would be GREAT if we could throw in the garbage using any setting combination. 回答1: Based on this question the documentUndoLimit is the max level of undo for each document (actually current document) and the globalUndoLimit is the undo max level of undo for the IDE on the current project. For example, when you

Problem with Kotlin readLine() function using IntelliJ internal console

时光怂恿深爱的人放手 提交于 2020-12-13 06:31:38
问题 When I try to read some value from a user, I get strange behavior. For example, if I have one simple program: fun main() { print("insert value: ") val tmp = readLine() println("value = $tmp") } I would expect the next behavior of the program: insert value: 1 value = 1 But I get the next behavior: insert value: 1 1 value = 1 So I would expect to insert the value 1 , hit Enter , and the program would output value = 1 . But instead of this, I have to input the value 1 , hit Enter , input the

IntelliJ can't load Maven dependency

丶灬走出姿态 提交于 2020-12-13 03:11:54
问题 I'm using IntelliJ IDEA Community 2020.2.3. My project is built around Kotlin 1.3.30 and Java 11. I've upgraded one of my dependecy to java 11 too, and after that, the IDE shows the dependency under "External Libraries", it build the app without errors, Maven build it from terminal without error, but the IDE shows unresolved references on each occurrency of the classes, functions and imports of that library. I already tried to empty the cache or deleting idea files and importing again the

IntelliJ displays error message when unit test is written in Kotlin

纵饮孤独 提交于 2020-12-13 03:05:34
问题 Context I have a project with following traits IntelliJ Ultimate 2020.1 Java 13 (with module-info.java) Kotlin 1.3.72 JUnit (+ truth) maven (I believe this to be unimportant) The code base is mixed, some classes are written using plain Java, others with Kotlin, the same is true for tests. Everything works as expected, that is all code is compiled in proper order and fully interoperable between Kotlin and Java all test can be executed using either mvn test or IntelliJ "Run Test" the resulting

Connection to http://127.0.0.1:8888 refused in intellij

吃可爱长大的小学妹 提交于 2020-12-09 18:44:32
问题 I added to my gradle.build 2 dependencies: compile 'com.google.http-client:google-http-client' compile 'com.google.http-client:google-http-client-jackson2' I try to refresh from Intellij and I get an error: I try to build from cmd and I get this error: >Could not resolve com.google.http-client:google-http-client:. Required by: :RoutingRegression:1.0 > Could not GET 'http://www.hibernatespatial.org/repository/com/google/http-client/google-http-client//google-http-client-.pom'. > Connection to

Connection to http://127.0.0.1:8888 refused in intellij

痞子三分冷 提交于 2020-12-09 18:44:21
问题 I added to my gradle.build 2 dependencies: compile 'com.google.http-client:google-http-client' compile 'com.google.http-client:google-http-client-jackson2' I try to refresh from Intellij and I get an error: I try to build from cmd and I get this error: >Could not resolve com.google.http-client:google-http-client:. Required by: :RoutingRegression:1.0 > Could not GET 'http://www.hibernatespatial.org/repository/com/google/http-client/google-http-client//google-http-client-.pom'. > Connection to

Connection to http://127.0.0.1:8888 refused in intellij

烂漫一生 提交于 2020-12-09 18:44:05
问题 I added to my gradle.build 2 dependencies: compile 'com.google.http-client:google-http-client' compile 'com.google.http-client:google-http-client-jackson2' I try to refresh from Intellij and I get an error: I try to build from cmd and I get this error: >Could not resolve com.google.http-client:google-http-client:. Required by: :RoutingRegression:1.0 > Could not GET 'http://www.hibernatespatial.org/repository/com/google/http-client/google-http-client//google-http-client-.pom'. > Connection to

Connection to http://127.0.0.1:8888 refused in intellij

主宰稳场 提交于 2020-12-09 18:40:40
问题 I added to my gradle.build 2 dependencies: compile 'com.google.http-client:google-http-client' compile 'com.google.http-client:google-http-client-jackson2' I try to refresh from Intellij and I get an error: I try to build from cmd and I get this error: >Could not resolve com.google.http-client:google-http-client:. Required by: :RoutingRegression:1.0 > Could not GET 'http://www.hibernatespatial.org/repository/com/google/http-client/google-http-client//google-http-client-.pom'. > Connection to

Spring Boot can't read application.properties in Docker

眉间皱痕 提交于 2020-12-08 16:38:13
问题 Spring Boot doesn't read application properties when running in Docker container. My application.yml server: port: 8080 context-path: /mail custom: greeting: Hello YML Dockerfile FROM java:8-jre VOLUME /tmp COPY ./mail.jar /app/mail.jar RUN sh -c 'touch /app/mail.jar' ENV JAVA_OPTS="" ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app/mail.jar" ] EXPOSE 8080 And a simple ApplicationController @RestController public class ApplicationController { private