Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 62

LAS
I hate code!
Profile
Posts: 34
Reg: Apr 03, 2012
location unknow...
10,340
02/05/13 04:47 AM (12 years ago)

html doc bug- a suggestion

Hi, I had a bit of a panicky moment recently when I went to run my app in Xcode and it told me the configuration data was invalid. When I eventually figured out that I should run it through a JSON validator, it turned out that this was because I'd forgotten to specify a file name in one of my html doc screens. I wondered whether it might be possible to add a default file name so that if the same happens to someone else, the configuration data will still be okay. I think I would have found it a lot easier to work out what had gone wrong if I'd experienced a problem when trying to open that screen in the emulator, than I did when it wouldn't run at all! Anyway, just a suggestion. My forgetfulness was the root cause after all!
 
Auggnet
Veteran developer
Profile
Posts: 225
Reg: Nov 20, 2012
USA
2,550
like
02/05/13 04:52 AM (12 years ago)
Hmmm I haven't had that issue with bt 2.0
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/05/13 05:39 AM (12 years ago)
I'm surprised that caused the JSON to be invalid. Weird. It would be super easy to add a default name to the plugin. But, it could actually make things more confusing. With the error you received you knew what to look for-something wasn't right in the config data. Still a pain to nail down, but you had a starting point. If the default was a blank HTML file, you would be wondering if your blank screen was bad HTML or bad config or something else. Still-something to think about for sure...
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
02/05/13 07:45 AM (12 years ago)
I like the default file name pointing to a real file that says "replace me" within it's contents. Then it might get seen and caught during testing. However, if the screen is buried several layers deep, then the testing may never see that screen. Yet, Chris' suggestion of "leave it be" makes good sense. At least you will indeed get an error message. Then it's up to you to investigate and realize "file is missing".
 
LAS
I hate code!
Profile
Posts: 34
Reg: Apr 03, 2012
location unknow...
10,340
like
02/05/13 09:15 AM (12 years ago)
All valid points. The only thing I'd add is that if I hadn't had assistance from my other half (a software developer) I wouldn't have had a clue where to start in finding the problem. I'm sure BT would have pointed me in the right direction, but if I'd seen an error with the screen, the first thing I would have done would have been to go to my control panel and have a look at what was in there. I guess it just depends on how you work and what kind of experience you've got!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.