java - What happens if you edit a file during compilation? -


sometimes compilation takes long time, , want mess around file while it's compiling. saving new file during compilation affect build? or preloaded?

i'm not sure meaningful question: "is case compilers , languages?"

it's more meaningful ask, given build system, can edit source during build?

with ant build, it's clear ant decides (based on file timestamps) compile, don't know when compile task started.

it's surely true compiler reads source file once, don't know when happens.

the interesting use case is:

when run sbt> ~ test, sbt complete test run while i'm editing code, or stop midstream recompile?

i see it's useful have command option determine whether edits abort test run. might want see test result, or maybe you're interested in test results after modification.

that's true if compile-and-test cycles seem interminable.

here doc testing. doc triggered execution says:

monitoring terminated when enter pressed.

which construed mean monitoring not suspended while task executes.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -