I’m having a weird issue where IntelliJ IDEA alway...
# coroutines
o
I’m having a weird issue where IntelliJ IDEA always forces this import when attempting to resolve
launch{}
->
import javafx.application.Application.launch
doesn’t even offer multiple imports, it just automatically imports this one and you can’t tell it otherwise…
I’m guessing this is because it knows that I am not inside a coroutineScope…this happens when calling launch in a place when I shouldn’t be calling it, ok that solves it then
👍 1
ok so at some point (an old tutorial I’m checking out), it was legal to do this
y
You can exclude auto-imports and also completion suggestions.
j
@oday there used to be a top-level
launch
indeed, which I believe was equivalent to what is now done with
GlobalScope.launch
. But this is most of the time a mistake, so it has been made harder to use this way
👍🏻 1
☝️ 1