I’m having a weird issue where IntelliJ IDEA always forces this import when attempting to resolve
launch{}
->
import javafx.application.Application.launch
oday
02/06/2022, 7:04 PM
doesn’t even offer multiple imports, it just automatically imports this one and you can’t tell it otherwise…
oday
02/06/2022, 7:05 PM
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
oday
02/06/2022, 7:12 PM
ok so at some point (an old tutorial I’m checking out), it was legal to do this
y
yschimke
02/06/2022, 7:14 PM
You can exclude auto-imports and also completion suggestions.
j
Joffrey
02/06/2022, 8:33 PM
@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