• perviouslyiner@lemmy.world
    link
    fedilink
    arrow-up
    120
    ·
    edit-2
    7 months ago

    “oh, the line you are typing is incomplete and therefore the whole file is invalid which means there is nothing to suggest for autocomplete”

  • smeg@feddit.uk
    link
    fedilink
    English
    arrow-up
    77
    ·
    7 months ago

    Compiler: you’re skating on thin ice there you fucking maverick

    • GBU_28@lemm.ee
      link
      fedilink
      English
      arrow-up
      17
      ·
      7 months ago

      Hot doggin and grab assin. Not in my house.

      Fuckit, red squiggly.

  • humorlessrepost@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    edit-2
    7 months ago

    I don’t understand?

    Notepad likes my html, and filezilla doesn’t complain when I upload it to production. It even passes validation for 4.01 transitional

  • baseless_discourse@mander.xyz
    link
    fedilink
    arrow-up
    16
    ·
    edit-2
    7 months ago

    writing code normally

    ocaml-lsp: syntax error

    ocaml-lsp: syntax error

    ocaml-lsp: syntax error

    ocaml-lsp: syntax error

    ocaml-lsp: okay, probably okay

    ocaml-lsp: syntax error

    ocaml-lsp: syntax error

    ocaml-lsp: wait, the entire function is wrong

    me: WHAT, where

    ocaml-lsp: like the entire thing, 20 lines of it,

    a -> (b -> c -> d) -> [200 other types] ->g
    

    doesn’t match

    a -> (b -> c/2 -> d) -> [200 other types] ->g
    

    , c doesn’t match c/2.

  • Venator@lemmy.nz
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    edit-2
    7 months ago

    Sometimes I think it could be easier to just use the variable before its declared and then let the IDE auto fix create it, but I never remember to try it 😂

  • RonSijm@programming.dev
    link
    fedilink
    arrow-up
    8
    ·
    7 months ago

    On the other hand, when my IDE doesn’t tell me:

    Build Server: “BUILD FAILED! SonarQube says that Roslyn says that you’re not using one of your variables!”

    Yea okay calm down, and why are you snitching now, Roslyn? Should have told me directly 🙃

    • Luvon@beehaw.org
      link
      fedilink
      arrow-up
      10
      ·
      7 months ago

      It’s more language dependent than ide. Go for instance makes unused variables a compiler error (I believe) which means ides mark it as red immediately.

      Ts/js can have eslint rules against unused variables but they will still usually compile or just run directly anyway.

      Java doesnt error but can be set to warn you on them.

      Abap doesn’t care and won’t tell you.

      Your mileage will vary.

  • clearleaf@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    7 months ago

    In godot engine you can put an underscore at the beginning of a variable to tell the linter to calm the hell down about it. But I don’t see why it’s such a crisis in the first place.

    • nickwitha_k (he/him)@lemmy.sdf.org
      link
      fedilink
      arrow-up
      2
      ·
      7 months ago

      I agree, if talking about the warning. If talking about the unused var, Go won me over there. Unused vars are absolutely a class of software bug that can have implications in security, resource usage, and maintainability.