Hi folks! I've been using Kotlin as my main langua...
# getting-started
j
Hi folks! I've been using Kotlin as my main language at work for a while now and I really enjoy it, so I wanted to get more involved in the community and learn more about it. I wanted to play around with the source code, mostly out of curiosity for now, but hopefully to contribute somehow in the future. So I am looking for resources that would help me give the first steps. More specifically, I would like to understand how to: 1. Checkout the code 2. Importing it into Intellij 3. Understand its high level structure 4. Build it 5. Make a simple change 6. Run the tests I'm not sure if this this the right channel, but the name sounded appropriate. Any help is welcome.
k
Source code of what? Kotlin itself? Kotlin compiler? Kotlin standard libraries? Kotlin coroutines? Or maybe some “random” Kotlin project on Github?
j
I meant Kotlin itself and the standard libraries to begin with. But any starting point is welcome.
k
I'd start with koans to learn the language, then any number of open source libraries from Square, and only then go look at the source code of Kotlin.
k
Why from Square in particular?
j
Thanks for the advice. I'm familiar with the language. I was really looking for to taking a look under the hood.
s
so this is the GitHub Repo of Kotlin: https://github.com/JetBrains/kotlin if you don't know git yet (because step 1 indicates that): do a
Copy code
git clone <https://github.com/JetBrains/kotlin.git>
in your local code directory. The you should simply be able to import it in IntelliJ like any other project "File -> New -> Project from existing sources". Now that I think about it you could also do a "File -> New -> Project from Version Control" with the git-url from the clone command.
j
Thank you Stephan. I've got this far, and faced some issues, that's why I turned to this channel. So the issues that I got were: • Intellij doesn't resolve some of the symbols • Running a
gradlew build
fails (I can tell the exact error messages later) So I thought there could be something that I need to do to setup the development environment first. I imagined that there could be a development or contributing guide there could help with these first steps.
s
There are several languages used for the Kotlin project (because of the multiplatform support!?) I'm sure this makes for a tricky setup. I've never tried to get it working myself, so I can't help you with that.