• erogenouswarzone@lemmy.ml
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      6
      ·
      11 months ago

      It is 2023 my brother in christ! We deserve better error outputs than a stack trace.

      1. Tell me what line in my file caused the error,
      2. Tell me the values of the variables involved,
      3. Then you can have the stack trace.

      Why are we pretending like these error messages are acceptable in 2023?!

  • golden_zealot@lemmy.ml
    link
    fedilink
    English
    arrow-up
    51
    ·
    edit-2
    11 months ago

    I had this happen to someone I mentor and pointed out that they had two versions of the same file in two different paths named the same. They were running the version in the other path than they were editing lol.

  • Wilzax@lemmy.world
    link
    fedilink
    arrow-up
    34
    ·
    11 months ago

    Check which file is giving the error, it’s probably being thrown in an included library, not your code.

    • erogenouswarzone@lemmy.ml
      link
      fedilink
      English
      arrow-up
      29
      arrow-down
      3
      ·
      11 months ago

      Yeah, but that’s some bullshit. I want to know what line in my file is causing the error.

      And they know! They know what line in your file caused the error! They know the value of all the variables when the error hit. But do they show that? Fuck no.

        • erogenouswarzone@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          edit-2
          11 months ago

          No offense, but I know how to read a stack trace, and yes locate a familiar file - if you’re lucky enough to have one listed therein.

          My point is, there is no excuse for them being so terrible except that they’ve always been that way.

          The important information should be brief and at the top. This is design 101. The same ideas that have driven newspaper articles and websites for as long as the two have been a thing.

          You put the important stuff in big letters at the top, and the rest, if you need it, is beneath the fold.

          Edit: just to drive the point home: I’m sure it’s not the packages I’ve downloaded that are causing the error, I am positive it is my code, so show me where my code had a mistake first. Then you can show me the horrible “wall of text” that is the stack trace so I can understand it better later, but 99% of the time, just seeing the line that caused the error is enough to know what the problem is.

          • gusVLZ@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            11 months ago

            It’s a fair point, it would help a lot, I can see a drawback when the problem is incompatibility between libs or errors inside the lib but it could be solved with a show more option.

            I like your ideia, would love to see how it would work

  • gun@lemmy.ml
    link
    fedilink
    arrow-up
    22
    arrow-down
    1
    ·
    11 months ago

    Line 548! is insane. I can’t even imagine a number that big.

    • lud
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      42356125088165711564718068338437865595643112636081729523348751102028998686965207848220390067970709841586303502309069939647249892151208541669784081194146851236444586575995641925019588489827885610552946611712899201178659985040741024744021781504021778170408154139019983802192665724367427633369463532898500205982454703106433434710891503263124237798799368322458737716399120438871025642297354886054763434401237587932266708381059681834634375435836460402423347526657104394967022354159596507506574663845764022677348014311842037684027803264936901915025521818581837544451608660681958875748829448241716211588267245403485703874977594514946046116976256102438559964247985296731871853076508461535082244434118855098242590618155808437615065714833408480432943274217620809309311695736948262392639802810457414958931611149233568839706817363765836020218001585742376335652450048700551654351639326738773556601720661384812672787233927577142194982374552994499619752642914964546175239923444248175386554369932964302450907208741451370240837131253645196148296855478593442858486239687864670004715878609646297166596834331666076546626649043922332817637042232387174400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

        • lud
          link
          fedilink
          arrow-up
          1
          ·
          11 months ago

          Well I can’t, but computers are pretty cool:

          7107977582480794089775412880996814551353932394738961631758853727447022412283555338952124323070894411394156931264437750655930884511581426065689589704970189525196994921126000495463959448648958304407803484208697127897899447263018872241297103763670344444082437090025164170934818612375960461568355776073036091498045645457216189079838094964500307460582758658826844038194395233600191129495221149699494769797539923101571961521701343664750128282814129966159616757788176391101619796596080671049702037078282838225266125681454716958911850097954262513077543551567005156607963988405426255613293684818826463327843647136314126583824168101519374156377758607538601151994004081442276694361793917492491903995814916776718591274470322842699387698913449250898131873509912935204914034198516684434152913418481056932873639705310851488154194430164394212313207739915401456289436075828089896644679158996301500965204802261564623038812014306356727749882795589318019928210950424637313036775146977289009974641800874901847017560710586019179315295897627546096354854293003253504850467692870406510403387276635488315487026448870055361245207338239119574592820428582693395969654120776708104799063764694358270528585391906789911958718763521697759921602556709752692400345816644914886665366423602734538841961309392436377817348360688449270370141350096981570375483709990077341245716192846504595931907522354893063638907285539491944418297677567649293269988932902241820492214487757311064614546795760750691463779519852083232405686533217434391025811456