Skip to content

xNVSE inline variable declarations comes up as error in error checking. #974

Description

@AVeryUncreativeUsername

What is the version of xEdit you are using?
FNVEdit 4.1.3j EXTREMELY EXPERIMENTAL (RC2 for 4.1.4) (A1B0582B) starting session 2021-11-08 14:53:19

Describe the bug
xEdit sees xNVSE's inline variable declaration as an error when using the "Check For Errors" function.

This is an example of a script from one of my mods using inline variable declarations.
https://pastebin.com/HPUHERJf

This causes a false error to come up in the view window. I have had a couple false bug reports on my mods as a result.

To reproduce
Steps to reproduce the behavior:

  1. Load up the plugin with inline variable declarations. (My mod for example)
  2. Right click on the plugin name or script with inline variable declarations and click "Check For Errors"
  3. Check in the message window where it shows the script with the inline variables as an error.

Expected behavior

I feel the expected behavior should be for it to come back with no errors when using xNVSE inline variable declarations. Though I understand that it's a newer xNVSE feature and xEdit hasn't been updated to account for it yet.

Screenshots

Checking for errors, xEdit flags it as an error.
https://i.imgur.com/9BnqsDW.png

When viewing the local variables, it will come up as unknown.
https://i.imgur.com/1GkDQOa.png

Additional context
No other context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions