Closed Reichenbachian closed 7 years ago
Thanks for the bug report!
Can you open Terminal and post the output of running pros conduct lstemplate
? If everything appears fine, you can run pros conduct new ./pros-test
to create a project in ./pros-test
Thank you for your quick response! That worked well.
I don’t have access to a cortex right now, so I can’t test it, but the project generation worked. I’ll tell you if it works when I next have access to a cortex.
Thank you for your previous help. It’s now hanging intermittently on “Stopping user code…” and “Asking for system information…” Do you have any further suggestions? I tried pros upload
and sudo pros upload
, but it still hung.
Are you making sure to upload through the programming kit as seen here? If you are, can you tell me if this happens every time you go to flash code?
We're working on making flashing more reliable on purduesigbots/pros-cli#27
Yes, the control is connected via the programming kit. The robot is connected to vex net, and, without changing the setup, I’m getting one of these errors every time I’ve tested. [cid:BB9EA558-6833-4B70-BFD5-36F1EA054AEE@andover.edu][cid:996288F3-5631-4A2C-BED4-1629A2FA6974@andover.edu][cid:2CDC8C5C-E20C-4027-9188-249B09546518@andover.edu]
I'm not sure if you're trying to upload files or images, but we're not seeing any errors. We just see this:
Ah. I apologize. I’ll upload the output rather than the images then. I get one of these three scenarios each time I attempt to upload, without changing the setup at all. They all end with a control-C because they hang so long I’m forced to kill them.
Scenario 1
(anaconda3-4.1.0) Alexs-MBP:test localhost$ pros flash -f "/Users/localhost/Downloads/test" Flashing /Users/localhost/Downloads/test/bin/output.bin to /dev/cu.usbmodem1411 Stopping user code... complete Asking for system information... Asking for system information... complete Cortex Microcontroller connected on /dev/cu.usbmodem1411 Tether: Serial w/ VEXnet 2.0 Keys Joystick: F/W 4.25 w/ 4.84V Cortex: F/W 4.25 w/ 7.43V (Backup: 0.00V) Sending to download channel... complete Exposing bootloader... complete Preparing bootloader…failed
Scenario 2
(anaconda3-4.1.0) Alexs-MBP:test localhost$ /Users/localhost/Desktop/Screen Shot 2017-02-28 at 3.37.54 PM.png clear pros flash -f "/Users/localhost/Downloads/test" (anaconda3-4.1.0) Alexs-MBP:test localhost$ (anaconda3-4.1.0) Alexs-MBP:test localhost$ clear (anaconda3-4.1.0) Alexs-MBP:test localhost$ pros flash -f "/Users/localhost/Downloads/test" Flashing /Users/localhost/Downloads/test/bin/output.bin to /dev/cu.usbmodem1411 Stopping user code... complete Asking for system information... ^C Aborted! (anaconda3-4.1.0) Alexs-MBP:test localhost$
Scenario 3
(anaconda3-4.1.0) Alexs-MBP:test localhost$ pros flash -f "/Users/localhost/Downloads/test" Flashing /Users/localhost/Downloads/test/bin/output.bin to /dev/cu.usbmodem1411 Stopping user code... ^C Aborted! (anaconda3-4.1.0) Alexs-MBP:test localhost$
I've removed VexNet and tried completely wired and still get the same errors.
I can bypass scenarios 2 and 3 by plugging the robot in and quickly flashing the code before the robot has time to boot up.
I have found that scenarios 2 and 3 are caused by a hang in port.flush()
.
It seems the original pros-atom issue has been resolved, so can you open an issue at purduesigbots/pros-cli in case anyone else has the same issue and wants to know more?
I've just been trying to get PROS to work with Atom on the mac, and it really doesn't want to. I finally got the thing in and loaded, but now when I try to download the new kernels, this error happens. All I do is click "Create new PROS Project".
Atom: 1.14.3 x64 Electron: 1.3.13 OS: Mac OS X 10.12.3 Thrown From: pros package 0.6.5
Stack Trace
Uncaught SyntaxError: Unexpected token L in JSON at position 0
Commands
Non-Core Packages