Is there YouTrack ticket pointing out the headless...
# scripting
h
Is there YouTrack ticket pointing out the headless-inconsistency between kt and kts? kts is somehow internally configured to be headless, whereas kt is not. I don't understand why the script tooling is opinionated here about what a user may want to code in a kts. Script example:
Copy code
import javax.swing.JOptionPane

JOptionPane.showMessageDialog(null, "kotlin script, show yourself! ");
which fails
Copy code
java.awt.HeadlessException
	at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:208)
	at java.desktop/java.awt.Window.<init>(Window.java:548)
	at java.desktop/java.awt.Frame.<init>(Frame.java:423)
	at java.desktop/java.awt.Frame.<init>(Frame.java:388)
	at java.desktop/javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1919)
	at java.desktop/javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1995)