intellij-idea

IntelliJ IDEA “Build project automatically” apparently not working

霸气de小男生 提交于 2021-02-08 01:51:20
问题 I am a long-time Eclipse user for Java and I am used to seeing compilation errors and warnings in the "Problems" view as soon as I cause them. Now I am using IntelliJ IDEA (Kotlin and Java). There is a "Problems" view, but it often stays empty even if there are errors or warnings showing on the margin of my code window. The errors are warnings are listed on "Problems" if I pressed Ctrl-F9 for "Build Project" but I would like that to happen automatically. I've selected "Settings" -> "Build,

Nested examples in cucumber scenario outline - List or Map values

寵の児 提交于 2021-02-07 20:53:22
问题 I have recently seen a cucumber scenario outline like this. sorry for my bad example below. But the format is in this way. I really wonder if this type of format is supported by cucumber? The nested Data tables. Has any one used this type of nested Data table? If yes is this the below format? Scenario Outline: Hello World Given I am logged in as <user> When I search for <searchTerm> Then I add the following to my basket: | <item1> |teapot| | <item2> |Yorkshire tea| Examples: | user |

Nested examples in cucumber scenario outline - List or Map values

落爺英雄遲暮 提交于 2021-02-07 20:52:13
问题 I have recently seen a cucumber scenario outline like this. sorry for my bad example below. But the format is in this way. I really wonder if this type of format is supported by cucumber? The nested Data tables. Has any one used this type of nested Data table? If yes is this the below format? Scenario Outline: Hello World Given I am logged in as <user> When I search for <searchTerm> Then I add the following to my basket: | <item1> |teapot| | <item2> |Yorkshire tea| Examples: | user |

Can't compile/run a java project in IntelliJ

妖精的绣舞 提交于 2021-02-07 20:36:16
问题 The issue: While it was working fine yesterday. Today, I wasn't able to compile my project(spring-boot). I created a demo project to simulate the same issue that happened in my current project. When I try to run the project using the run button It doesn't want to compile. Note all the errors from the failed compilation. Also, you can see that all dependencies are imported (see External Libraries ): I know I can run the app by typing mvn spring-boot:run in the terminal. But for some reason, I

Can't compile/run a java project in IntelliJ

拜拜、爱过 提交于 2021-02-07 20:36:14
问题 The issue: While it was working fine yesterday. Today, I wasn't able to compile my project(spring-boot). I created a demo project to simulate the same issue that happened in my current project. When I try to run the project using the run button It doesn't want to compile. Note all the errors from the failed compilation. Also, you can see that all dependencies are imported (see External Libraries ): I know I can run the app by typing mvn spring-boot:run in the terminal. But for some reason, I

Is it possible to watch BufferedImage objects while debugging in IntelliJ?

馋奶兔 提交于 2021-02-07 14:20:25
问题 Is it possible to watch BufferedImage objects while debugging in IntelliJ? I mean to view visual content of an image, not memory identity. Is it also possible to view custom objects visually, i.e. write some custom visualizers? 回答1: IntelliJ IDEA 2016.1.1 is able to display BufferedImage object as image while debugging by default (probabily previous versions also support this feature). Set up a breakpoint where you can access the BufferedImage object By default, for BufferedImage class Idea

How do I stop SQL splitting string literals when I press Enter in DataGrip or IntelliJ Database Editor?

偶尔善良 提交于 2021-02-07 12:16:36
问题 When my cursor is after an open quote in a SQL statement in an IntelliJ database console and I press Enter, it closes the quote on the current line and adds a concatenation symbol with an open quote on the newline. I disabled formatting the SQL code style settings but that didn't fix it for me. UPDATE blah SET blah2 = 'something<pressed enter>' || '<argh!>...'; Is there a way to disable this autoformatting? 回答1: This request was addressed in 2017.1 version, as a result, Insert string

How do I stop SQL splitting string literals when I press Enter in DataGrip or IntelliJ Database Editor?

本秂侑毒 提交于 2021-02-07 12:14:01
问题 When my cursor is after an open quote in a SQL statement in an IntelliJ database console and I press Enter, it closes the quote on the current line and adds a concatenation symbol with an open quote on the newline. I disabled formatting the SQL code style settings but that didn't fix it for me. UPDATE blah SET blah2 = 'something<pressed enter>' || '<argh!>...'; Is there a way to disable this autoformatting? 回答1: This request was addressed in 2017.1 version, as a result, Insert string

Make IntelliJ Show Full Stack Trace During Failed JUnit Test

陌路散爱 提交于 2021-02-07 11:28:36
问题 When I run a Junit test and it fails, if the stacktace is super long, Intellij always cuts it off a the end with "... x More". How can I make IntelliJ show the entire stacktrace? Caused by: java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode; at org.hibernate.ejb.util.LogHelper.logPersistenceUnitInfo(LogHelper.java:38) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:526) at org.hibernate.ejb

IntelliJ IDEA 13.0.3 and Tomcat 8.0.9. Cant get it to work

断了今生、忘了曾经 提交于 2021-02-07 11:22:12
问题 I'm trying to deploy a Java web application running on Tomcat. I got the book Professional Java for Web Applications: Featuring Websockets, Spring Framework, JPA Hibernate, and Spring Security and I've done everything said to get IntelliJ IDEA 13 work together with Tomcat 8.0.9. I've tested the server container manually and it works great, even deploying .war files works great. However when i move on to start/debug a web application - in this case the first example form the book - from