Skip to content

Test Parser generates warning for properly formatted field declaration lists #5382

Open
@BZngr

Description

@BZngr

Version 2.5.0.28404
OS: Microsoft Windows NT 10.0.18362.0, x64
Host Product: Microsoft Office x86
Host Version: 16.0.12430.20184
Host Executable: EXCEL.EXE

Observed during NUnit test runs.

Steps to reproduce the behavior:

  1. Create a Unit Test in VS
  2. Include something like Private mFoo As Long, mFoo1 As Long, mFoo3 As Long in your VBA test code.
  3. Run the test
  4. In VS Tests Output window you will see lines like:

line 4:21 extraneous input ',' expecting {, ':', REM, NEWLINE, ''', WS, LINE_CONTINUATION}

Changing a test's declaration list to a one-line-per-declaration format does not result in these warning messages. I'm guessing the parser is taking exception to the commas between field declarations. Test still run OK - Creating this issue just in case the warning points to a more important issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    development-issueIssues encountered while developing RD, not in RD itselftechnical-debtThis makes development harder or is leftover from a PullRequest. Needs to be adressed at some point.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions