ConsoleExample problem with updates

53 views
Skip to first unread message

Kuba Roth

unread,
Dec 12, 2014, 3:51:39 PM12/12/14
to runtimecompi...@googlegroups.com
Hi there,
Great idea and very interesting project!

I've got a few newbie question while going trough the first example ConsoleExample.

I don't quite get how the workflow should look like. Does the application have to be started from the IDE, in order to comunicate changes between the runtime and the IDE?

Is the workflow limited to specific IDEs (VS on Windows and CDT on Linux)? I'm using Code::Blocks on Linux

From what I understand any change introduced to Update function (in the ConsoleExample) should be updated at the runtime on file save. That seems to work - I get the following output every time file content will change...

Re-parsed 1 files.
NativeParser::OnParserStart(): Starting re-parsing for project 'ConsoleExample'...
Project 'ConsoleExample' parsing stage done (175 total parsed files, 6350 tokens in 0 minute(s), 0.017 seconds).
NativeParser::GetAllPathsByFilename(): Traversing '/home/kuba/build/rccp/Aurora/Examples/ConsoleExample' for: RuntimeObject01.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/kuba/build/rccp/Aurora/Examples/ConsoleExample/' for: RuntimeObject01.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/kuba/build/rccp/Aurora/Examples/ConsoleExample/RuntimeObject01.cpp
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

.. but it seems like changes are not propagated to the console output. Any ideas what have I missed?

Thank you,
Kuba

Doug Binks

unread,
Dec 12, 2014, 4:56:07 PM12/12/14
to runtimecompi...@googlegroups.com
Hi Kuba,

Some answers to your questions:

Q: Does the application have to be started from the IDE, in order to comunicate changes between the runtime and the IDE? 
A: No, there is no communication with the IDE. The RCC++ library spawns a process to run a compile then loads the dll.

Q: Is the workflow limited to specific IDEs (VS on Windows and CDT on Linux)? I'm using Code::Blocks on Linux
A: No, the workflow isn't limited to a specific IDE. However it is limited to the compilers implemented in the RuntimeCompiler - gcc on Linux at the moment (Clang++ would be trivial to add).

As to your code not updating properly, the output you show looks nothing like that from the sample - are you sure you're running the ConsoleExample code or is this a project based on that? I would first start with the example, get that to work, then progress from there.

Cheers,

Doug.

ps: I'm on European time so answers will likely be delayed as it's  getting late here.

Kuba Roth

unread,
Dec 12, 2014, 7:06:19 PM12/12/14
to runtimecompi...@googlegroups.com
Hi Doug,

Thanks for prompt reply.

I set up the same example, this time in Eclipse and can confirm all works fine now.
Just to double check I tested it also with edits done Sublime Text and works there too!
For anyone interested with sublime-text workflow there is one catch. Changes will not be compiled unless the "Atomic save" feature is disabled.

Other then that all looks good, I can move on.

Thank you,
kuba
Reply all
Reply to author
Forward
0 new messages