Starcounter / DevTools

A browser extension that helps you debug Starcounter apps with ease
3 stars 1 forks source link

Detect missing namespaces #12

Closed warpech closed 6 years ago

warpech commented 9 years ago

This is very specific to Starcounter (actually Launcher). Sometimes due to a server error, namespaces are expected in the JSON but are missing. This is a more specific case of #11.

Starcounter-debug-aid should make it clear for the developer about namespaces being to blame. I am not sure about the desired error message, though.

Illustration of the problem (captured in real life):

Actual JSON: https://gist.github.com/warpech/11436f8df8be934f8a1f Expected JSON: https://gist.github.com/warpech/5853808cd42efa73131a

warpech commented 6 years ago

Currently, namespaces are optional. In case the namespace is not found, starcounter-include prints an error: https://github.com/Starcounter/starcounter-include/blob/10f4e393661441f09c52effad73588a79587ff00/starcounter-include.html#L422

Closing as fixed elsewhere.