IDE Kotlin DSL setup for non-java projects
Lets say I have a python project that I am building in TeamCity.
- I have exported the existing build as a kotlin DSL project and copied the .teamcity directory and its contents into the root of my project.
- I have enabled synchronization and everything is working, changes I make ing version control are correctly reflected on my TeamCity server.
- I am using Intellij Ulitmate as my editor.
- I have taken no additional configuration steps beyond "File -> Open..." and opening my project directory
I cannot get code completion, inspection, suggestions, or anything working in my editor beyond "I might as well be using vim".
My directory structure looks like this:
.
├── .git
├── .idea
├── .teamcity
│ ├── Project_Name
│ │ ├── Project.kt
│ │ ├── buildTypes
│ │ │ ├── Project_Name_Build.kt
│ │ │ └── Project_Name_Deploy.kt
│ │ ├── settings.kts
│ │ └── vcsRoots
│ │ └── Project_Name_GitGithubComProjectNameGit.kt
│ └── pom.xml
├── ProjectCode
│ ├── someCode.py
│ ├── moreCode.py
├── README.md
├── requirements.txt
My pom.xml contains the following section, which I believe is what some other troubleshooting threads have mentioned I need. This was generated automatically by the export.
<repository>
<id>teamcity-server</id>
<url>https://teamcity.MYDOMAIN.com/app/dsl-plugins-repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
What exact steps do I need to take to make inspection, etc... work from my current state?
Please sign in to leave a comment.
Alright, I figured it out. You need to load the "Maven Projects" tool window from "View -> Tool Windows -> Maven Projects" then click the "+" button and select the pom.xml file from inside the .teamcity directory. Then Intellij will install the deps and begin performing as expected.