codefori / vscode-rpgle

RPGLE language tools for VS Code
MIT License
39 stars 20 forks source link

LInter returning JS error reading property `Line` #180

Closed m-tyler closed 1 year ago

m-tyler commented 1 year ago

I am receiving this error in the RPGLE language client output view (so far I only see it with one program).

Error linting member:/D2WFIQUAL/QRPGSRC/PRP05ORG.SQLRPGLE: Cannot read properties of undefined (reading 'line')
TypeError: Cannot read properties of undefined (reading 'line')
    at c.getErrors (c:\Users\-------\.vscode\extensions\halcyontechltd.vscode-rpgle-0.16.3\out\server.js:1:244597)
    at m (c:\Users\--------\.vscode\extensions\halcyontechltd.vscode-rpgle-0.16.3\out\server.js:1:16543)
    at async t.default (c:\Users\--------\.vscode\extensions\halcyontechltd.vscode-rpgle-0.16.3\out\server.js:1:13584)

Is there a way to set something on to see what source line (in my program source) is causing this as the member causing this error is rather large?

worksofliam commented 1 year ago

No way to determine the line with the error (yet!).

m-tyler commented 1 year ago

PRP05ORG.SQLRPGLE.txt

This source reproduces the issue for me.

worksofliam commented 1 year ago

@m-tyler Please share your lint config here. Thanks!

worksofliam commented 1 year ago

Recreated the issue. Fix will be out today.

m-tyler commented 1 year ago

{ "BlankStructNamesCheck": false, "QualifiedCheck": false, "PrototypeCheck": false, "ForceOptionalParens": false, "NoOCCURS": false, "NoSELECTAll": false, "UppercaseConstants": true, "IncorrectVariableCase": true, "StringLiteralDupe": false, "NoSQLJoins": false, "NoCTDATA": false, "PrettyComments": false, "NoGlobalSubroutines": false, "NoLocalSubroutines": false, "UppercaseDirectives": false, "RequiresProcedureDescription": false, "UselessOperationCheck": false, "NoUnreferenced":true, "SpecificCasing": [ {"operation": "bif","expected": "upper"} ], "indent": 2 }