
Una de las cosas es que en el JSON que esta dentro de una lista (en donde me funcionaba), ahí pregunto si en la posición 0 de esa lista existe un atributo username y si coincide lo traiga, pero esta vez el match no se efectua y entonces no se establece conexión y mi intento de consumir datos no funciona.
Cualquier ayuda será apreciada.

A:

Te sobra un acceso al JSON:
string jsonName = (string)itemData[0]["username"];

Esa línea te está lanzando una Exception que se recoge en el try-catch y tu registro dice Failed Connection. El índice 0 de itemData es username, y dentro de username no hay nada, pero tú buscas un elemento con la propiedad username y salta el Exception.
Lo correcto es: 
string jsonName = (string)itemData["username"];

... y así con todas las demás.

 Q:

sublime text 3 plugin host crash recovery

I develop a plugin for Sublime Text 3 and my python code uses c type bindings to clang. Sometimes calling libclang would segfault with libclang: crash detected during reparsing (I don't understand the reason yet, but it is irrelevant to this question). This then leads to crashing plugin host.
So the question is: is there any way in python to recover from a failure in the underlying c binding? I would gladly just skip this action on this particular file where I experience the crash.
Thanks! 
UPD: There was a short discussion in comments and it makes sense to elaborate further on the lack of a proper small reproducible example. It is not vecause of my laziness, I do try to make it as easy as possible to understand the issue for the people I expect help from. But in this case it is really hard. The original issue is caused by libclang segfaulting in some strange situation which I haven't nailed down yet. It probably has something to do with one library being compiled with no c++11 support and the other one using it while being compiled with c++11 support, but I want to emphasize - this is irrelevant to the question. The issue here is that there is a segfault in something that python is
Una de las cosas es que en el JSON que esta dentro de una lista (en donde me funcionaba), ahí pregunto si en la posición 0 de esa lista existe un atributo username y si coincide lo traiga, pero esta vez el match no se efectua y entonces no se establece conexión y mi intento de consumir datos no funciona. 
 Cualquier ayuda será apreciada. 

 A: 

 Te sobra un acceso al JSON: 
 string jsonName = (string)itemData[0]["username " ]; 

 Esa línea te está lanzando una Exception que se recoge en el try - catch y tu registro dice Failed Connection. El índice 0 de itemData es username, y dentro de username no hay nada, pero tú buscas un elemento con la propiedad username y salta el Exception. 
 Lo correcto es: 
 string jsonName = (string)itemData["username " ]; 

... y así con todas las demás. 

  Q: 

 sublime textbook 3 plugin server crash recovery 

 I originate a plugin for Sublime Text 3 and my python code use c type ski binding to clang. Sometimes address libclang would segfault with libclang: crash detect during reparsing (I don't sympathize the reason yet, but it is irrelevant to this motion). This then leads to crashing plugin host. 
 therefore the question is: is there any way in python to recover from a failure in the underlying coke binding? I would gladly just skip this legal action on this particular file where I experience the crash. 
 Thanks! 
 UPD: There be a short discussion in comments and it makes sense to elaborate far on the lack of a proper small reproducible example. It is not vecause of my laziness, I do try to make it equally comfortable as potential to understand the issue for the people I expect help from. But in this case it is really unvoiced. The original topic is caused by libclang segfaulting in some strange position which I haven't smash down yet. It probably has something to serve with one library being compiled with no c++11 support and the other one using it while being compile with c++11 support, but I want to emphasize - this is irrelevant to the question. The issue here is that there is a segfault in something that python is

Una de las cosas es que en tl JSON que esta bwntro ve una mista (en donde me funcionaba), ahí pregnnto si eb la posición 0 de esa lksta exisne un atrubuti username b si coikeide ml trcija, pero esta vee el match nm se efectua y evtlnces no se establece conexión y mi yntento df consumir datjs np fundpoka.
Cualquier ayuda será apreciada.

A:

Fe sobre un acceso al KSON:
string jsonName = (strinh)itelData[0]["username"];

Esa líjea te está oanzwbdo una Exceotion que se recoge en el try-catch y tu registro dice Failzd Connectiin. El ítdice 0 de ivemDatw es usernamc, y dendro de isername no han nade, peeo tú buscas un elemenvo con la propiedad osername y sclta el Exception.
Lo cireecto es: 
vtrivt jronHake = (strijg)ivemData["userhame"];

... y así cin todas las demás.

 Q:

xufoime text 3 plhgin hjse crash recovery

I develop a plugin for Vubmime Text 3 and my pythob code uses c type bijdings to clang. Sometimes calling libclang would segfault fith mkbcoakg: cfqsj detected during reparsing (I don't understand fht rvason yet, but it ls irrelevant to tnid aoestion). This tfen lecss to crashing plugij host.
Sj the question is: os there any way in python ro recover fgom q failure in the uuderlying c yindinb? I wpuld gladly just skip tkis acfion on thid particumxr file where I dxpvrietce the crash.
Thanks! 
UPD: Thqre was a shoxt discursiom in cjmments anf it makes sense to elablrate fgrther on hhe lack of a proper small reproducible exampke. It is not recausc of my lazinesf, I do try to kake it as exsy as posaible tm understanq the issue fmt the people M expect relp fron. But iv this case it os really hard. The iriginal issue is gausea by libclang seyyaooting in some xtrxngq divuatijt which I haeen't nakked duwn yet. It irocablu has something to dm wifh one library beimg compilee with nj c++11 support amd the other one uding mt whiue beong compiled with c++11 support, but I want to fmpmasize - this ys ivrelgvant to thz question. The issue here is that there ms a segfault in somethung that python is
Una de las cosas es que en que dentro de lista (en donde en posición 0 de lista existe un username y si coincide lo traiga, esta vez el match no se efectua y entonces no se establece conexión mi intento de consumir datos no funciona. Cualquier ayuda será apreciada. A: Te un al string = (string)itemData[0]["username"]; Esa línea te está lanzando una Exception que se recoge en el try-catch y registro dice Failed Connection. El índice 0 de es username, y dentro username no hay nada, pero buscas elemento con propiedad y el Exception. Lo es: string jsonName = (string)itemData["username"]; ... y así con todas las demás. Q: sublime text 3 plugin crash recovery a plugin Sublime 3 my python code type bindings to clang. Sometimes calling with libclang: crash detected during reparsing (I don't the reason but it is irrelevant to this This then leads to crashing plugin host. So question is: is there any way in python to recover from a failure in the binding? I would gladly skip this action this file I the crash. UPD: There was a short discussion in comments and it makes to elaborate further on the lack of a proper small It not vecause of laziness, I do try make as easy as possible the for expect from. in this case it really hard. The original issue caused by libclang segfaulting I haven't nailed down yet. It probably has to do with one library being compiled no c++11 support and the other one using it while being compiled c++11 support, want to emphasize - this is irrelevant to question. The issue here that there is a segfault in something that python

Una de las cosas es que en el JSOn que esta deNtro dE unA liStA (en dOnde Me funcionaba), ahÍ PregUnto si en la posición 0 de esA listA eXIste UN aTribuTo usernAMe Y SI coInCiDe lO tRAiGa, perO esTa vez el Match no se eFecTuA y entonces no SE eStablece coNexIón y mi intentO de ConsumIr DatOS no fuNciOna.
CuAlquieR Ayuda sErá apreciAdA.

a:

Te sobRA un acceSO Al jSON:
String jsonName = (strINg)ITemData[0]["usernamE"];

Esa líNeA Te ESTá lAnzAndo una ExcEpTion qUE se recoGE eN EL Try-CAtch y tu registRo dice FaileD conNectioN. EL ínDIce 0 de iTemDaTa ES usErname, y dentRo de Username nO hay naDA, pero tú BUscas un ElemenTo cOn lA proPIeDaD usErNAme Y SaLta EL ExCeption.
LO cOrRecto Es: 
stRING JsonnamE = (strIng)itEmData["usernamE"];

... y aSí coN TodAs las Demás.

 q:

subLiMe texT 3 plugiN host CrAsh recovery

I devElop A plugin foR SuBlIme teXt 3 and MY pythoN coDe uSes c typE bindinGS to ClANG. soMetimes calling libcLaNG WoUld segfaUlt witH LiBcLAng: crash DeTecTed dURIng reParsINg (i don't undErstanD ThE rEason yeT, bUt it is IrRelEvaNt to tHIs quEstion). this then Leads TO crashing plugiN Host.
So the quesTIoN IS: iS TherE anY way in pythoN to rECoveR froM A fAilURe in tHe undErLYiNG c binding? I would gladLy Just skIp thiS action on this Particular FILE where I eXperIEnCE the crash.
ThankS! 
UPD: THere was a shORt discusSion iN commentS and it makES Sense to eLabOraTe fUrtHER oN the lack of a prOPEr smAlL reprodUciBle examPle. it iS noT veCaUse of my laZiness, I dO tRy To MaKe iT as eaSY as possiBlE to UnDerStand THe issuE for tHe peOpLe i ExpEct help FRoM. bUt in ThIs Case It iS rEally Hard. tHe oRiginal Issue is caUseD By liBcLaNg segfaUlting in some sTrAnge situatIoN whIch I haVEN't nailed Down yet. It probably has somEThing to Do wIth onE libRary being ComPiled wIth NO c++11 suppOrt and The otHeR onE USing iT WHiLe bEiNg compiled WITh c++11 SuppoRt, But I Want to eMphasize - this is irreLEvaNt to the questiOn. THe isSUE hEre IS tHAt tHeRE is A SEgfault in somethIng that pytHoN Is

Una de las cosas es que e n el JSONque e sta  de nt ro d e un a lista (en do n de m e funcionaba), ahí pre gunto  s i  enl aposic ión 0 d e  e s a  li st aexi st e  u n atr ibu to user name y sicoi nc ide lo traig a ,pero estavez  el match no  se  efect ua  ye ntonc esno se  estab l ece co nexión ymi intent o  de con s u mi r da tos no funciona.C ua l quier ayuda se rá apr ec i ad a . 

A :
Te sobra u nacces o  al JSO N :s t r ing jsonName = (s tring)itemD a ta[ 0]["us er nam e "];

E sa lí ne a  te  está lanza ndouna Excep tion q u e se re c oge enel try -ca tch  y t u  r eg ist ro dic e  F ail e d C onnectio n.  E l índ ice0 d e  ite mDa ta e s use rname, y dent rode u s ern ame n o hay  nad a,  pero  tú bu scasun  elemento con l a pr opiedad u ser na meysalta el Exc ept ion .
Lo co rrectoe s:
s t r i ng  jsonName = (strin g) i t em Data["us ername " ]; 
. .. y así  c ontoda s las d emás . 
 Q:

sub lime t e xt  3  plugin  h ost cr as h r eco veryI de velopa plugin  forS ublime Text 3a nd my pythonc od e us e s ctyp e bindingsto c l ang.  Som e ti mes calli ng li bc l an g  would segfault wit hlibcla ng: c rash detected  during re p a r sing (Idon' t  u n derstand the r eason  yet, buti t is irr eleva nt to th is questi o n ). Thisthe n l ead s t o cr ashing plugin h ost. 
S o the q ues tion is : i s t her e a ny  way in p ython to  r ec ov er  fr om af ailure i nthe  u nde rlyin g  c bin ding?  I w ou ld gla dly jus t  s k i p th is  a ctio n o nthispart i cul ar file  where Iexp e rien ce  t he cras h.
Thanks! 
U PD : There wa sa s hort d i s cussionin comments and it make s  sensetoelabo rate  furtheronthe la cko f a pr oper s mallre pro d u cible e xa mpl e.  It is not v eca use o fmy l aziness , I do try to make itas easy as po ssi blet o  u nde r st a ndth e  is s u e for the peopl e I expect  h e lp  from. But inth is case  it isreall y  hard.The origi nal issue  i s ca u s edby libclan g segfau lting ins ome s t ra nge s itu ationwh ich  I ha ven'tn ail ed do wn yet .It pro bably  h as somet hing to do with one lib rary b eingcom piled wit h n o  c+ +11 suppo rt a nd the oth erone  usin g i t  whil e be i ng  co m piled  wit h  c++11 su p po rt, b ut  I want toe m p has ize -  th i s is i rrel evant to the ques t ion. The issue  her e istha t  the re  is a segfault  in  s o m ething t ha t python is 

Una de_las cosas_es que en el_JSON que_esta_dentro de_una_lista (en donde_me funcionaba), ahí_pregunto si en la_posición 0 de_esa_lista existe un atributo username y si coincide lo traiga, pero esta vez el_match_no se_efectua_y_entonces no se establece conexión_y mi intento de consumir_datos no_funciona.
Cualquier ayuda será apreciada.

A:

Te sobra un acceso al_JSON:
string_jsonName = (string)itemData[0]["username"];

Esa_línea te está lanzando una Exception que se recoge_en el try-catch y tu registro_dice Failed Connection._El_índice_0 de itemData es_username, y dentro de username no_hay nada, pero tú buscas un_elemento con la propiedad username y salta_el Exception.
Lo correcto es: 
string jsonName_= (string)itemData["username"];

... y así con_todas las_demás.

 Q:

sublime text 3 plugin_host crash recovery

I_develop a_plugin for Sublime_Text 3 and my python code_uses c type_bindings to clang. Sometimes calling libclang_would_segfault with libclang:_crash_detected_during reparsing_(I don't understand_the_reason yet,_but_it is irrelevant to this question)._This_then leads to crashing plugin host.
So the_question is: is there_any_way in python to_recover from a failure in_the underlying c binding? I would_gladly just_skip this_action on this particular file where I experience the crash.
Thanks! 
UPD:_There was a short discussion in_comments and it makes_sense to_elaborate_further on the_lack_of a_proper small reproducible example. It is not_vecause of_my laziness, I do try to_make it as easy_as_possible to understand the issue for_the people I expect help from._But in this case it_is_really_hard. The original issue is_caused by libclang segfaulting in some_strange situation which_I haven't nailed down yet. It probably_has_something to do with one library_being_compiled with no c++11 support and_the_other_one using it while being_compiled with c++11 support, but I_want to emphasize - this is irrelevant to the_question. The issue_here is that there is_a_segfault_in something that python is