Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic arduino rpc lib intellisense and compiler issue (Read 1509 times)
rheinlaender
Junior Member
**
Offline


Posts: 14
Joined: Oct 15th, 2020
arduino rpc lib intellisense and compiler issue
Dec 10th, 2020 at 9:19am
Print Post  
I am having compiler and intellisense problems with the arduino RPC library.
The problem can be reproduced with an public example from https://github.com/hpssjellis/my-examples-for-the-arduino-portentaH7/blob/master... Attached the VS repository (jsc-sandbox-201210.zip) and ErrorList and OutputList (arduino_RPC.txt)
Thank you very much for your help and advice!
Johannes
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: arduino rpc lib intellisense and compiler issue
Reply #1 - Dec 10th, 2020 at 10:56am
Print Post  
Thanks for the report and detail.

We will update when we have a solution to the compilation issue (as the first issue)
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: arduino rpc lib intellisense and compiler issue
Reply #2 - Dec 10th, 2020 at 11:27am
Print Post  
Updates:

NOTE: Ensure the Serial Debugger is set to OFF (Change it to Serial, then change it back to Off)

For the referenced Example Code, making the below changes allows it to compile correctly in Visual Micro:

1) Right Click Project in Solution Explorer > Add > Local Board.txt
2) Add the below entries to the file and save it
Code
Select All
vm.build.tools-8dot3=false
vm.build.path-8dot3=false
vm.build.compile-includes-8dot3=false
vm.build.compile-source-8dot3=false
 


3) Build Example project

For the Supplied Project, perform the same steps as above for the Local Board.txt, and Serial Debug Disable, then:
1) Remove the #include <RPC_client.h> from the top of the INO file
2) Remove the Project reference to the RPC Library in the project folder

It should now build as expected.
« Last Edit: Dec 10th, 2020 at 11:35am by Simon@Visual Micro »  
Back to top
 
IP Logged
 
rheinlaender
Junior Member
**
Offline


Posts: 14
Joined: Oct 15th, 2020
Re: arduino rpc lib intellisense and compiler issue
Reply #3 - Dec 10th, 2020 at 12:07pm
Print Post  
Great, thanks a lot! I really appreciate your prompt support!
What does the board.txt doe?

Cheers 
Johannes
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: arduino rpc lib intellisense and compiler issue
Reply #4 - Dec 10th, 2020 at 1:23pm
Print Post  
No problem, the board.txt allows overrides at a project level to the build properties, which are shown in the Build Output.

These specific properties are from vMicro, most properties come from the board packages board.txt and platform.txt.

We will investigate this further, and make the necessary changes within vMicro so this additional change is not needed in the future, and will update when this has been completed.
  
Back to top
 
IP Logged
 
rheinlaender
Junior Member
**
Offline


Posts: 14
Joined: Oct 15th, 2020
Re: arduino rpc lib intellisense and compiler issue
Reply #5 - Dec 10th, 2020 at 2:21pm
Print Post  
Thanks again, Simon.

The suggested changes fixed the problem for the example codes. But when I apply those changes, I still get the same error, that the "bind" method is unknown in the RPC class. 
And, stange enough, in line 79 of the .ino file, the INPUT definition seems to be no longer valid. 

Please find the output and error list enclosed. The Project code via PM. Thanks a lot

Johannes
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint