Watch 1. Star 0. Fork 0. Advanced Topics. Android Studio Tutorial. Blocks Reference Material. Changing PID Coefficients. Choosing a Programming Tool. Computer Vision Overview. Configuring Your Android Devices. Configuring Your Hardware. Connecting Devices to a Control or Expansion Hub. Controlling a Servo Android Studio. Controlling a Servo Blocks. Controlling a Servo OnBot Java. Disabling Android Studio Instant Run. Downloading the Android Studio Project Folder.
Enabling Developer Options. Identifying Vuforia VuMarks. Installing Android Studio. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Is this page helpful? Please rate your experience Yes No. Any additional feedback?
Note Teams bot APIs work only in the personal context. Submit and view feedback for This product This page. View all page feedback. In this article. OneDrive URL for fetching the content of the file. Demonstrates how to obtain file consent and upload files to Teams from a bot.
Also, how to receive a file sent to a bot. I'll see if I can try anything else, but, since we're coming up on competition soon, it isn't top priority. As a side note, I'll potentially be making another bug report for the RC in general that screwed us today, which is what caused me to not be able to test further on this. Well, we just accidentally made the bug happen again a couple of days ago, and I cannot tell you what we did differently.
We had a backup of the file though, so we were able to recover quickly. Does anybody know what could be causing this? If not, could someone tell me where in this repo is the code for running OnBot so that I may take a look for myself? I'm currently looking around trying to find some Javascript code to start with. As people who have tried multithreading in JS know, there is no possibility for race conditions in normal JS. However, if two XMLHttpRequest s or something like that happen, the order in which they are processed server-side can be different, which can cause a server-side race condition, which can cause the symptoms mentioned earlier.
NoahAndrews didn't you say that there was a bug with FileBasedLock? Yes, FileBasedLock is currently broken, and that may contribute to this behavior, but it is not the entire cause. There is an internal PR that attempts to fix this. Ya, this happened to us repeatedly today -- lost a couple hours of work -- we just had to walk away in frustration at the end of the day because it happened again before we expected it to happen, so hadn't backed up yet..
We absolutely love the ease of OnBotJava after having used Android studio for years , so not sure how to help reproduce it. Would certainly mitigate this issue if that was available. Thank you for all you work on this! As long as you can connect a Windows, Mac, or Linux computer to the phone via WiFi same as programming OnBot normally you can run it to download your files to another directory.
I recommend using that. However, of course, if this keeps happening randomly and without any apparent way to reproduce, no backup strategy will really be enough.
NoahAndrews What's the status of that PR, and when is it expected to be merged? Of course, if anyone can follow my instructions with my first comment on this thread, and report back, that's still useful. I was wondering if anyone revisited this issue and found a solution? I'm experiencing this right now every time I try to code and we have a competition in a couple of days.
It's causing an extra problem. I'm not able to actually build any of the code to the robot because when the files are overridden, it causes errors with duplicate classes. So not only am I constantly losing code, it's also stopping me from building new code because of the error happening so frequently.
It just happened to us again a few days ago with our autonomous. The only solution at the moment is to keep regular backups, and, to try to avoid the issue, don't swap classes rapidly.
That seems to be something that aggravates the issue.
0コメント