File changes not being compiled VS 2015

57 views
Skip to first unread message

Jacob Kapostins

unread,
Dec 11, 2015, 12:55:11 AM12/11/15
to Runtime-Compiled C++
I'm looking into using runtime compiled c++ for my next project and am experiencing some issues running the demo. When I uncomment the and save the color change the file doesn't recompile. I manually clicked the Test RCC++ button inside the options menu which successfully recompiled all the files and reflected my changes to the color of the cells but this isn't a feasible workflow since it takes a pretty long time to recompile everything and defeats the purpose.

When pulling the repo off git i used cmake to generate a visual studio 2015 x64 project. I'm doing an out of source build in the parent folder of the runtime compiled folder Ex:
Source Location: E:\dev\Gnarlysoft\Research\RuntimeCompiledC++\Aurora
Build Location: E:\dev\Gnarlysoft\Research\RuntimeCompiledC++\bin

I read on the wiki that you need to compile with /FC in visual studio to get full filenames and i verified that it's indeed in the compiler options. You can find my command line arguments below:
/GS /TP /W3 /Zc:wchar_t /I"E:\dev\Gnarlysoft\Research\RuntimeCompiledC++\Aurora\External\glfw\include" /I"E:\dev\Gnarlysoft\Research\RuntimeCompiledC++\Aurora\External\libRocket\Include" /I"E:\dev\Gnarlysoft\Research\RuntimeCompiledC++\Aurora\External\assimp\include" /Zi /Gm- /Od /Ob0 /Fd"SimpleTest.dir\Debug\vc140.pdb" /Zc:inline /fp:precise /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /errorReport:prompt /WX- /Zc:forScope /RTC1 /GR /Gd /MDd /FC /Fa"Debug/" /EHsc /nologo /Fo"SimpleTest.dir\Debug\" /Fp"SimpleTest.dir\Debug\SimpleTest.pch" 

Any suggestions to resolve this would be greatly appreciated.

Thank you,
-Jacob
Message has been deleted

Doug Binks

unread,
Dec 11, 2015, 5:49:55 AM12/11/15
to Runtime-Compiled C++
Hi Jacob,

If you had the "Test File Tracking:" option on (the default) when you clicked "Test RCC++" then this wouldn't recompile and would report an error if file changes weren't being found. So it looks like your editor may not be saving out the file in a way which we can detect the change.

We've had a couple of people finding Visual Studio somehow writing out to a temporary file rather than the actual file when debugging (for example https://groups.google.com/forum/#!topic/runtimecompiledcplusplus/Ku2zIbMQmuM). I've never seen this on any machine myself, so haven't been able to track down which configuration option is causing this.

Could you try editing the file with an external editor and see what changes?

Cheers,

Doug.

On 11 December 2015 at 06:03, Jacob Kapostins <jkapo...@gnarlysoft.net> wrote:
Forgot to mention i'm running Windows 10 x64

--
You received this message because you are subscribed to the Google Groups "Runtime-Compiled C++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcpl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jacob Kapostins

unread,
Dec 11, 2015, 9:21:16 PM12/11/15
to Runtime-Compiled C++
It works when making edits from Notepad++ :)

Oddly enough when I make the change from visual studio, notepad++ recognizes the file changed and prompts me to reload it.I also tried running the game without the debugger attached and editing through visual studio still didn't work. 
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcplusplus+unsub...@googlegroups.com.

Doug Binks

unread,
Dec 12, 2015, 2:32:03 AM12/12/15
to Runtime-Compiled C++
Good news that thus works, and interesting that Notepad++ detects a file change - so there is an issue with file change notification in rcc++ which I need to investigate. I won't be able to look into this for a few days, and since I've never reproduced the problem it my be hard to solve but I'll take a look.

Jacob Kapostins

unread,
Dec 13, 2015, 11:34:47 PM12/13/15
to Runtime-Compiled C++
Okay let me know if there is anything I can do to help debug it.

Doug Binks

unread,
Dec 14, 2015, 8:07:05 AM12/14/15
to Runtime-Compiled C++
Could you let me know what file system and physical disk type you've got the files on (i.e. is if FAT32 or NTFS and is the disk a spinning hard disk or SSD, and is a removable disk or not).
 
If you are able to, the following test would be useful:

In project RuntimeCompiler_VS2010 open the source FileMonitor.cpp and place a break point at line 195 (this should be the switch(action) statement of FileMonitor::handleFileAction(...).

Edit the source code file GameObject.cpp and save your change, and see what happens. You should get a bunch of notifications, hopefully some of which will be for GameObject.cpp. Note down what the action variable for these are and let me know. Note you'll also see a load of odd files being added and deleted, and a GameObject.cpp~***.TMP file being generated and modified.

I'm suspecting that Visual Studio on some volumes might be adding and deleting the GameObject.cpp file, but not Modifying it. So I need to add logic to support this add/delete rather than modify.

Doug Binks

unread,
Dec 14, 2015, 12:15:21 PM12/14/15
to Runtime-Compiled C++
I've made a new branch which simplifies the file notification code and may also fix this issue: https://github.com/RuntimeCompiledCPlusPlus/RuntimeCompiledCPlusPlus/tree/FileMonitor


Sam Batista

unread,
Dec 15, 2015, 1:03:45 AM12/15/15
to Runtime-Compiled C++
Look who I found lurking in the Runtime Compiled C++ group. You working on a new engine Jake?

Cheers old chap!

- Sam


On Friday, December 11, 2015 at 12:55:11 AM UTC-5, Jacob Kapostins wrote:

Jacob Kapostins

unread,
Dec 15, 2015, 11:38:10 AM12/15/15
to Runtime-Compiled C++
Okay I'll look into this tonight when I get home from work. The drive i'm running it on is a hard disk and is NTFS. I have an SSD on that machine as well so could see if that makes a difference. 

Jacob Kapostins

unread,
Dec 15, 2015, 11:40:07 AM12/15/15
to Runtime-Compiled C++
You know it Sam! It's good to hear from you, we should catch up offline. 

Jacob Kapostins

unread,
Dec 15, 2015, 7:26:27 PM12/15/15
to Runtime-Compiled C++
Wohoo! The File Monitor branch resolves the issue :)


On Monday, December 14, 2015 at 12:15:21 PM UTC-5, Doug Binks wrote:

Doug Binks

unread,
Dec 15, 2015, 8:21:10 PM12/15/15
to Runtime-Compiled C++

Èxecllent. I'll do a few more tests tomorrow then push to master. Many thanks for testing!

--
You received this message because you are subscribed to the Google Groups "Runtime-Compiled C++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcpl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages