Is there specific setup I need to do in order to g...
# ktfmt
s
Is there specific setup I need to do in order to get the ktfmt tests to run in intellij in order to contribute? Running any tests results in really weird errors.
n
I don't think you should need anything special, but we do use Buck internally so it's not really the same setup. Do you have more to share about your error message?
Also how are you trying to run the tests?
I've just ran it here from the root folder of ktfmt with a simple
mvn test
and it worked as expected
s
yes, sorry, I should have specified.
mvn test
works fine. I’m attempting to run within intellij, so that I can easily debug what I’m doing. I’m not delegating the build/run actions to maven, as that doesn’t actually allow for debugging within intellij.
n
I don't really know what IJ does under the hood there, so I guess you'd have to find this out first before you could try to fix it. Alternatively you could just try to setup your tests with Maven in IJ and use that or maybe stick to running them from CLI https://www.jetbrains.com/help/idea/run-debug-configuration-maven.html
s
ah yeah sorry I can paste the command that intellij is forming under the hood
Untitled
like I said, running through maven in IJ is less than ideal, and CLI debugging is a pain in the butt. I really don’t want to be connecting to remote ports. How do you debug changes you’re making?
n
Mostly using TDD, but if I need more info I do attach a debugger although not always directly from IJ/AS. For that I just tell the command like to run in debug mode and wait for the debugger to be attached. Then in the IDE I attach it and profit
s
yeah… I hate doing that haha.
figured it out. uncheck
argLine
in
Settings-> Build,Execution,Deployment -> Build Tools -> Maven -> Running Tests
https://stackoverflow.com/questions/62732890/intellij-error-test-framework-quit-unexpectedly-intellij
K 1