-
Notifications
You must be signed in to change notification settings - Fork 1.3k
syntax errors on linux system #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, if you use the LINUX
MAC
|
I think this problem is plaguing Rosie CI as well. I added something that should monitor the flush through the kernel block device stat but its still having issues. @jerryneedell do you feel that is new post-1.0? |
@tannewt I had not experienced this under 1.0.0 but that is not conclusive, since it also depends on whether I used gedit or nano and I can't be sure I exercised it on 1.0.0. I'll try reverting to 1.0.0 and see if it is reproducible there. Hopefully later today. |
@tannewt I just reverted to 1.0.0 and I am not able to reduce the problem. I can cause it to occur reliably under 2.0.0 - looks like it is post-1.0.0. |
I believe I fixed Rosie by watching for outstanding IO requests. I want to validate that its not using the SPI flash scratch space all the time. That would slow down the IO and perhaps cause trouble. Otherwise, I think its ok CircuitPython-side. |
Ok, I checked the SPI flash bus traffic and it looks as I expect. I'm not going to block 2.0 on this. |
Once I revive Rosie I can see if its still an issue there. |
@tannewt does Rosie now working well mean this can be closed? I can't remember why I assigned this to myself. |
Yup, sounds good to me. |
@jerryneedell Closing for now. I believe this is a general Linux delayed-write problem. |
I have been seeing the same issue discussed in Issue #111
on a linux (Ubuntu 16.04 on a Mac Mini box) system. Since #111 focused on the Windows platform, it was recommended that a new issue be opened for linux.
What I have found is the when editing and saving a file on the circuitPython device, I often get a "syntax error" the first time I try to execute the saved script.
With guidance from @dhalbert here are a few consistent observations:
The problem only occurs if sufficient time is not allowed after saving the file and executing it.
It also depends on the editor used to save the file.
Using "gedit" I found that I had to wait ~30 seconds after saving the file before rebooting and executing it to reliably avoid the syntax error. I tried several delay times and found anything less than 30 seconds to be unreliable.
Using "nano" to edit the file, I was unable to cause the error no mater how quickly I rebooted.
One other note is that the problem did not occur at all with a very short (~300 byte) script. This is consistent with the discussion in #111
These tests were executed with CirCuitPython 2.0.0-beta-1.4 on a Metro_M0_Express - with a Jewel(7 Neopixel) connected to D2
Here is an example of the syntax error and the script.
Adafruit CircuitPython 2.0.0-beta.1-4-gf6a7025 on 2017-08-11; Adafruit Metro M0 Express with samd21g18
The text was updated successfully, but these errors were encountered: