All Questions
Tagged with kotlin intellij-idea
1,353
questions
0
votes
0
answers
14
views
How to authenticate a user to Auth0 from an IntelliJ plugin?
I am working on an IntelliJ plugin in Kotlin and need to authenticate users via Auth0 on some custom domain auth.myservice.com.
I've seen other IntelliJ plugins that authenticate the user they open ...
1
vote
0
answers
21
views
Kotlin scratch file refuses to use module classpath
In a newly created project via freshly installed IntelliJ IDEA, I create simple scratch kotlin file with simple coroutine. The code works well in the "interactive window" (the one on the ...
2
votes
0
answers
32
views
How to check module settings and project settings?
IDEA show Following modules override project settings: ...
But I don't know which setting is different. How should I find the difference?
And How to view project settings and module settings?
I just ...
0
votes
0
answers
46
views
How do I make a CLI .exe from a kotlin .kt file
I am using a single .kt file to make a text based game in kotlin that runs in the Windows cmd. How do I turn the .kt file into a runnable .exe
I have tried to compile it to .jar and use launch4j. The ....
0
votes
0
answers
37
views
How to Add Room Library to a Compose Desktop App Created with IntelliJ IDEA Built-in Wizard?
I'm making a Compose Desktop app using IntelliJ IDEA Community Edition. I started the project with the built-in wizard (not the web version). I'm having trouble finding clear instructions on how to ...
1
vote
0
answers
28
views
CodenameOne duplicate dependencies
I'm using CodenameOne in IntelliJ, and when I tried to run, it said that there was 'duplicate dependencies'. I have a couple of other errors in my app's common pom.xml as well. They are all as follows:...
0
votes
0
answers
30
views
IntelliJ IDEA Kotlin Style - missing Wrapping and Brances -> if() statement -> Force braces option
The following option is present for Java Style but not Kotlin
I'd like to write this:
if (...) { ... }
else throw IllegalArgumentException("...")
especially because the if and the code ...
0
votes
0
answers
26
views
How to remove blank lines inside function by reformat
I'm having trouble with configuring editor settings for "reformat code".
Here is example code for reproduction.
I want to remove blank lines between field1 and field2.
class Foo {
init ...
-1
votes
0
answers
39
views
How do I fix this error in android studio?: Could not start AVD
I am running across this error and I am trying to fix this but when I installed HAXM it shows version 7.0.1 which is deprecated. Maybe that is why when I install it via android studio it gives the ...
1
vote
1
answer
43
views
Is there a visual tool to debug Kotlin Sequence in IntelliJ IDEA similar to Java Stream debug with Stream Trace?
I code in Kotlin and use Sequence a lot. I use IntelliJ IDEA and there is nice visual debug tool to introspect your Java Stream processing steps. Is there anything similar for Sequences?
There is ...
1
vote
4
answers
1k
views
Kotlin: [Internal Error] java.lang.NoSuchFieldError: FILE_HASHING_STRATEGY
After upgrading IntelliJ IDEA from 2023.1.1 to 2024.1.3, I compiled a Maven project and got:
Kotlin: [Internal Error] java.lang.NoSuchFieldError: FILE_HASHING_STRATEGY
Complete stacktrace:
Kotlin: [...
1
vote
1
answer
69
views
How do I guarantee generic to extend specific class safely in Kotlin?
I wanted to create my own Map class which allows only Number class (i.e. Int, Long, Double, ...). Also if value in entry becomes zero, it will automatically remove that entry from map. As I'm not ...
0
votes
0
answers
30
views
How to use @OptIn annotion in kotlin notebook with file scope
I want to apply the @OptIn annotation to whole kotlin notebook with @file scope and not for each individual cell. I see other annotations @file:DependOn and @file:Repository, are suppported and work ...
0
votes
0
answers
114
views
Where did ktor go in IntelliJ K2?
It seems as though ktor plugin is not compatible or available when using IntelliJ 2024.1.2 with the Kotlin Plugin running K2 Kotlin Mode. With K2 reaching rc1 today, is there a replacement for ktor or ...
0
votes
0
answers
43
views
Converting Entity java to kotlin , not able to generate run time file
I have converted one of my entities (SflUser) from Java to Kotlin. After the conversion, I am unable to generate the runtime file named SflUser_ in the project.
I used IntelliJ to convert the whole ...