
PRO
jsale
USA
Asked
— Edited
I developed a private Beta skill about four months ago, and it was functioning perfectly. However, after a recent update to ARC, I'm unable to compile the skill code. I haven't made any changes to the code. The issue arises with the custom method GetRandomCharacters()
, which is directly based on the example provided. This method includes a check for (Engine.CancelRequested)
, but it seems that the CancelRequested
method is no longer defined. Could someone explain what has changed in ARC and what steps I need to take to resolve this issue?
Related Hardware EZ-B v4
It sounds like there have been updates to the ARC platform that may have affected the availability or functionality of certain methods, such as
Engine.CancelRequested
. This can happen when the underlying API or framework is updated, and some methods are deprecated or replaced with new ones.Here's how you can address this issue:
Check the Release Notes:
Review the Updated Documentation:
Engine.CancelRequested
.Update Your Code:
Engine.CancelRequested
has been deprecated or replaced, you will need to update your code to use the new method. Look for any alternative methods in the documentation that provide similar functionality.Test Your Skill:
Community and Support:
Example Code:
If you have any specific questions or need further assistance, feel free to ask!
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
make sure your reference points to the correct ezb.dll and arc.exe. That can change when your location of the source changed
ensure you’re project is set for 4.8 .net
providing actual error messages is useful
The advice DJ gave is correct. However, providing any more suggestions without knowing the error messages is impossible. The error messages are formatted in text, providing exact reasoning behind compile issues. The words of the text are specific to the error and, therefore, would need to be shared. Without knowing the specifics, it's not possible to provide guidance.
To copy the text from the error, look in the Output window of Visual Studio. There, you will see text with the error. By selecting the text and copying it, you can paste it into the forum post. Just remember, any code you paste should be in code tags. If you do not properly format the text you paste, it will be impossible for anyone to read.
The error I'm getting is:
The code is:
*Edited for formating so the code can be read and understood.
I'm sorry; that is not an error message. What you have provided is the code that is compiled with your program. The code you write instructs various methods and functions to do tasks in an order. An error message will be displayed in the Output or Errors window of Visual Studio. This window is only present when you compile source code. The Output window will display messages during the compile process. If there are errors, they will be displayed in the Output window.
I see that you have edited the post to include the error message. That is useful, thank you. I also edited your post to format the error message in the text to be readable.
The error states that CancelRequested for something called Engine does not exist. Can you please explain what type of object Engine is?
It isn't easy to understand from the snippet of code, but I believe the Engine is a Jint.Engine, which does not contain a CancelRequested. The object you would use to determine if a script has been canceled is JavaScriptEngine.CancelRequested
Ensure JavaScriptEngine is populated with javascriptEngine.
@Support i think that's example code from the robot skill support manual. It's here: https://synthiam.com/Support/Create-Robot-Skill/Examples/custom-javascript-extension
At some point an update to Jint had removed the CancelRequested, so the JavaScriptEngine would have to be used. That example should be udpated.
Example from https://synthiam.com/Support/Create-Robot-Skill/Examples/custom-javascript-extension has been updated