Skip to main content

Add data type diagnostics

Need diagnostics for assigning incorrect values to variables with declared data types.

Status: Completed8 comments

Comments8

  • Dylan Martinez changed status to Completed
    Team•

    Apr 4

    Pinned

    This is now available in v1.8.0

  • Dylan Martinez changed status to In Progress
    Team•

    Mar 30

    Pinned

    This will be available in the next release - we’re migrating our legacy diagnostics stuff over to our new semantic analyzer. We’re testing it now, but it’s largely available.

  • Dylan Martinez changed status to Planned
    Team•

    Nov 6, 2025

    Pinned

    This will phase into our new parser and semantic analyzer for PowerOn. It’s in the works, more to come.

  • Dylan Martinez changed status to In Progress
    Team•

    Apr 7, 2025

    Pinned

    Moving this back to In Progress because it’s incomplete. In the recent release, we included this as “Experimental” but still have the following scenarios to build out:

    • handling parentheses

    • handling multi-lines

  • Michael Welker

    •

    Mar 18

    I setup the unused variable inside the json settings file but it doesn’t seem to behave like I think it should. Is there a specific theme that works well with this feature?

    • Dylan Martinez

      Team•

      Mar 18

      Hmm, it should work with any theme. When you press Ctrl + , and type “poweron.un” do you see that checked? If so, it should just start to work but you can also reload VS Code to reset everything.

      Also, what theme are you on - I can double check that on my side too.


      Also, these will appear dimmed only in the DEFINE section of your PowerOn.

  • An Anonymous User

    •

    Mar 18

    What’s the best theme to use for unused variables to work inside VS Code?

  • Dylan Martinez

    Team•

    Feb 11, 2025

    This will be included in the next release, v0.5.0.