Compile Button does not compile new code

Hi,

when trying to compile a new C++ class the engine just says “Compile Complete!”. It takes less than an second, and if i make a mistake in the code in porpouse, it still says is great.

If i regenerate visual studio project files, it works, but just one time.

Been using this project for a while and now i have the problem.

Hey Wungoche,

I believe your issue may have to do with hot reloading. The “Compile” button in the editor does not use the same build folder as Visual Studio, so you may want to make sure you are consistently building from Visual Studio by right clicking on your project in the editor and clicking build.

Here is an Example:

254863-rebuild-project-outside.png

You may also find it useful to do a little bit of overhead in setting up your visual studio before you begin working on your project. Epic does provide some tips through their documentation, so hopefully you will not continue to experience these “odd sync” behaviors

[Setting up Visual Studio for UE4][2]

Please let me know if this helps, or if you continue to experience this type of behavior.

I rebuilded everything and get sure of all VS setup configurations were correct. Now it seems to be working! If everything remains the same i’'l post again.

Thank you for your answer!

Protip: If you rebuild and still experience weirdness (you shouldn’t have this often) – especially when working within a SCM (i.e. Perforce, git, etc.) directory it can sometimes be worth your while to delete the project VS solution, Binaries, Saved and Intermediate directories, regenerate the project solution and rebuild the project. This ensures that you have no out of date files which can rarely produce wonky results, especially if your SCM is misconfigured and is trying to prevent changes to these temporary files.

Yes, im within a scm, you nailed . Thanks!