Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Communication between main.js and plugin out of sync #26

Open
jlujan opened this issue Jul 27, 2013 · 0 comments
Open

Communication between main.js and plugin out of sync #26

jlujan opened this issue Jul 27, 2013 · 0 comments

Comments

@jlujan
Copy link

jlujan commented Jul 27, 2013

/script/app.ts
Traceback (most recent call last):
File "./sublime_plugin.py", line 356, in run_
File "./typescript.py", line 372, in run
File "./typescript.py", line 264, in update_server_code
File "./typescript.py", line 216, in serv_edit_file
File "./typescript.py", line 206, in msg
File "/usr/lib/python2.6/json/init.py", line 307, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Exception in thread Thread-8:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(_self.__args, *_self.__kwargs)
File "./typescript.py", line 406, in work
File "./typescript.py", line 223, in serv_get_errors
File "./typescript.py", line 206, in msg
File "/usr/lib/python2.6/json/init.py", line 307, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.6/json/decoder.py", line 336, in raw_decode
obj, end = self._scanner.iterscan(s, **kw).next()
File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
rval, next_pos = action(m, context)
File "/usr/lib/python2.6/json/decoder.py", line 183, in JSONObject
value, end = iterscan(s, idx=end, context=context).next()
File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
rval, next_pos = action(m, context)
File "/usr/lib/python2.6/json/decoder.py", line 217, in JSONArray
value, end = iterscan(s, idx=end, context=context).next()
File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
rval, next_pos = action(m, context)
File "/usr/lib/python2.6/json/decoder.py", line 193, in JSONObject
raise ValueError(errmsg("Expecting , delimiter", s, end - 1))
ValueError: Expecting , delimiter: line 1 column 133 (char 133)

Adding a print statement before PluginInstance.msg:205 shows a partial read from the subprocess as shown below.

iew' does not exist in the current scope"},{"unitIndex":1,"minChar":1111,"limChar":1114,"message":"Vc' is not callable"},{"unChar":10237,"message":"The namerent scope"},{"unitIndex":1,"minChar":1View' does not exist in the current scope"},{"un type 'JQueryStatic' is not callable"},{"unitIndex":1,"minChhe current scope"},{"unitIndex":1,"minChar":26329,"limChar":26336,"message"Char":26703,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1inChar":26890,"limChar":26897,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minCage":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":27215,"limChar":27222,"message":"The name 'boolean' does nor":27692,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":27923,"limChar":27930,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":28178,"limChar":28185,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":28619,"limChar":28626,"message":"The name 'boolean' does not exist in the current The name 'LatLng' does not exist in the current scope"},{"unitIndex":1,"minChar":565,"limChar":571,"message":"The name 'ILayer' does not exist in the current scope"},{"unitIndex":1,"minChar":565,"limChar":571,"message":"The name 'ILayer' does not exist in the current scope"},{"unitIndex:1453,"limChar":1457,"message":"The name 'ICRS' does not exist in the current scope"},{"unitIndex":1,"minChar":1575,"limChar":1582,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":1575,"limChar":1582,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":1713,"limChar":1720,"m,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":1984,"limChar":1991,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":2173,"limChar":2180,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":2173,"limChar":2180,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":2325,"limChar":2r":2787,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":2960,"limChar":2967,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":2960,"limChar":2967,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":3527,"limChar":3534,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":3527,"limChar":3534,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":4233,"liThe name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":4816,"limChar":4823,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":5135,"limChar":5142,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":5135,"limChar":5142,"message":"The name 'boolean' does not exist in the current scope"},{"unitIndex":1,"minChar":2310,"limChar":2328,"message":"Operator '<' cannot be applied to types 'any[]' and 'new(latlng: L.LatLng, options?: L.MarkerOptions) => L.Marker'"},{"unitIndex":1,"minChar":2310,"limChar":2331,"message":"Cannot convert 'bool' to 'L.Marker[]'"},{"unitIndex":1,"minChar":5376,"limCh"message":"Value of type 'JQueryStatic' is not callable"},{"unitIndex":1,"minChar":8156,"limChar":8213,"message":"Value of type 'JQueryStatic' is not callable"},{"unitIndex":1,"minChar":8248,"limChar":8621,"message":"Value of type 'JQueryStatic' is not callable"},{"unitIndex":1,"minChar":8651,"limChar":8704,"message":"Value of type 'JQueryStatic' is not callable"},{"unitIndex":1,"minChar":8734,"limChar":8792,"message":"Value of type 'JQueryStatic' is not callable"},{"unitIndex":1,"minChar":8944,"limChar":8962,"message":"Value of type 'JQueryStatic' is not callable"},{"unitIndex":1,"minChar":10402,"limChar":10420,"message":"Value of type 'JQueryStatic' is not callable"},{"unitIndex":1,"minChar":10442,"limChar":10455,"message":"Value of type 'JQueryStatic' is not callable"},{"unitIndex":1,"minChar":10551,"limChar":10569,"message":"Value of type 'JQueryStatic' is not {"status":"OK"}

@jlujan jlujan closed this as completed Jul 27, 2013
@jlujan jlujan reopened this Jul 27, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant