tingbot / tide-electron

📝   Simple IDE for developing Tingbot apps
Other
22 stars 7 forks source link

IDE doesnt upload the correct version to tingbot #51

Open sampsonij opened 8 years ago

sampsonij commented 8 years ago

I have just edited and tested a version. I upload the code to tingbot and it doesnt work as it hjasnt uploaded the edited version just the old version.

Also changed a variable

options = { 'location': 'Retford, UK', 'unit': 'c', 'screen_brightness_day':100, 'screen_brightness_night':25, 'day_time_start_week':09, 'day_time_end_week':21, 'day_time_start_weekend':07, 'day_time_end_weekend':21, 'version':'3.0', 'day_colour':'black', 'night_colour':'white'

the 09 was changed from 06 and now it puts the 0 in white 9 in yellow and the editor throws an error.

joerick commented 8 years ago

Hi @sampsonij - by putting a zero in front of a number in python it's interpreting it as 'octal' form, which is probably not what you want. See http://stackoverflow.com/questions/11620151/what-do-numbers-starting-with-0-mean-in-python

Tide should run/upload whatever is in the editor when the run/upload button is pressed. I can't seem to recreate the bug here. Could you give a step-by-step process to recreate the bug where an old version is uploaded?