pebble / cloudpebble

CloudPebble source. Here be dragons.
https://cloudpebble.net/
MIT License
211 stars 83 forks source link

Cloudpebble forgets project settings #271

Open PanicMan opened 8 years ago

PanicMan commented 8 years ago

Hello, I have an really annoying bug in cloudpebble. But somehow just with some projects. f.e. with project https://cloudpebble.net/ide/project/32553 Every time I start a fresh chrome and open the project, log me in, it has wrong project settings, an old SDK selected, Watchapp, not Watchface, wrong platform, etc... Then I correct it, everything is working fine, I can close cloudpebble and open it again, everything fine. But when I close chrome and open it again, open cloudpebble, the projects settings are wrong again.

Tell me what you need to help to reproduce ore track the issue...

Greetings Jack

Spacerat commented 8 years ago

Hi Jack, thanks for reporting this! It's strange that it would be only with some projects. Some initial debugging ideas:

If it isn't too much effort, I'd be interested to see a screen capture of this bug in action.

Spacerat commented 8 years ago

Actually, another thing you could do which would be helpful:

  1. Load CloudPebble, open Chrome's Developer Tools
  2. Click on the "Network" tab and check "Preserve log"
  3. Open the problematic project, change your settings
  4. Right click in the log and click "Save as HAR with content"
  5. Close chrome, open it again, check that the settings reset like you say
  6. If they did, send the .har file to joeat@pebble.com

This would be super useful, since it'll help me figure out of the issue is client or server side.

PanicMan commented 8 years ago

Ok, I did send the HAR log to you. It happens with every project, now I have an idea how to reproduce:

  1. configure chrome to open previous session at startup
  2. log in to cloudpebble with option to keep logged in
  3. open an project, configure it with sdk3, build for basalt and aplite and maybe chalk too, as an watchface
  4. click on an source file to edit
  5. close chrome
  6. open chrome, it automatically loads the project
  7. go to project settings, they should be wrong now

Greetings Jack

Spacerat commented 8 years ago

Ah yes, those steps work perfectly. Thanks!