I don't know how feasible this is, but can you sta...
# intellij
k
I don't know how feasible this is, but can you start with an empty project and go step by step to the actual project and see where it goes wrong?
k
I can try now
j
We just did it, new project using gradle. 1. Select kotlin as a language 2. Add spring-boot-test and fluentlenium 3. Try to import fluentlenium in a test class 4. It does not recognise FluentTest 5. Add the import manually to make gradle happy 6. It works in gradle but... 6.1 You lose all the IDEA validation 6.2 You lose test execution capabilites We could send the project... It seems to work just fine with gradle (also in the new project)
k
Can you reproduce this without either sprint-boot or fluentium?
j
Not really, fluentlenium seems to make it particularly unhappy. But works just fine with 1.1.3 and it also works just fine without IDEA...
the spring dep works just fine, we used it to pull matchers / junit and so on
k
I just added testng as a dependency and it failed
testCompile "org.testng:testng:6.8"
Then in
src/test/kotlin/
it cant import
org.testng
j
that rings a bell @krissrex 😢
if you import it manually, does it screw the entire validation?
k
I cant import it at all, it's not found in the import statement
j
ah, that also happened to us
some times it just stops complaining
k
see the image I posted in #intellij
j
other times it breaks validation
yeah, we have had the same issue with fluentlenium
the new plugin does not want us to testdrive, uncle bob is crying on his sofa
k
my gradle wrapper is 3.5, and in my real project it's 4.1 and was 4.0. Neither of those 3 worked
So it's not that. Must be intellij and/or kotlin
Which version of intellij and the gradle plugin are you using?
j
yeah, we have same version of idea, different version of kotlin plugin in different machines
we're inclined to think the kotlin plugin 1.1.4 is the one to blame here
k
My kotlin plugin is
1.1.4-release-IJ2017.2-1
Intellij
2017.2.2
kotlin_version
1.1.4
j
same here
k
What is strange that it compiles with kotlin_version
1.1.3-2
, but intelliJ is still not finding the import
j
downgrading IDEA and the plugin did the trick.
k
Yep. I can even run it with kotlin 1.1.4 using the 1.1.3-2 plugin
(although that is not encouraged; versions should match)