Skip to content

Append 'Kt' to the output class path if source file is a Kotlin file#15

Open
UnexDev wants to merge 1 commit intoLabyStudio:masterfrom
UnexDev:master
Open

Append 'Kt' to the output class path if source file is a Kotlin file#15
UnexDev wants to merge 1 commit intoLabyStudio:masterfrom
UnexDev:master

Conversation

@UnexDev
Copy link
Copy Markdown

@UnexDev UnexDev commented Nov 17, 2023

Fixes #14

WARNING: Not tested; cannot find a way to test this without compiling and reinstalling.

@LabyStudio
Copy link
Copy Markdown
Owner

I just tested it and it stops working for me with your changes.
The reason why it works without the Kt suffix is because when I compile a Kotlin file it outputs two classes:
image

So why do we need the Kt suffix for hotswapping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kotlin output file '<file>Kt.class' breaks hotswap

2 participants