I have 2 projects (JS Kotlin). One recompiles upon...
# javascript
d
I have 2 projects (JS Kotlin). One recompiles upon changes. The other doesn't. They are normal projects (i.e. not maven or gradle).. would anyone have any idea why this it is not auto-recompiling?
k
mishaxz: What do you mean by "auto-recompiling". Do you press "Build" button?
d
@konsoletyper In my first project, whenever I change a .kt file - the generated js file is updated right away... in my second project, I must rebuild (or I guess build) to get the code updated in the browser.. I just had a thought though... the 1st project it is the kotlin code. The 2nd project I was testing javascript code in the index.html even though it is also a kotlin js project... so I think I understand better how things works. If it is kotlin, no need to build. If it is other files in the project, must build
k
Sorry, I don't understand what you are doing, nor do I know what is your environment
There's item in setting. Go to File -> Settings, choose Build, Execution, Deployment -> Compiler. You should "Build project automatically" checkbox
Is it set for both projects?
d
@konsoletyper no, it wasn't set for my problem project - thanks