Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint 'No reference to definition' seems not quite right #337

Open
Gregory1701 opened this issue Oct 29, 2024 · 0 comments
Open

Lint 'No reference to definition' seems not quite right #337

Gregory1701 opened this issue Oct 29, 2024 · 0 comments
Assignees

Comments

@Gregory1701
Copy link

This simple copy book, which has a source type of RPGLEINC:
**Free

Dcl-ds t_posgen_ADVRSP Extname('ADVRSP') Qualified Template End-ds;

Dcl-ds t_posgen_adv_code Qualified Template;
adv_code_code like(t_posgen_ADVRSP.ARSKEY);
adv_code_desc like(t_posgen_ADVRSP.ARSDSC);
End-ds;

Dcl-s t_posgen_max_adv_codes Int(5) Inz(50);

Dcl-ds adv_codes LikeDs(t_posgen_adv_code) Dim(t_posgen_max_adv_codes) Qualified;
End-ds;

Is showing these Lint errors, which I don't believe are correct.
image


Context Version
Code for IBM i version 2.13.5
Visual Studio Code version 1.94.2
Operating System linux_x64
Active extensions
Code for IBM i User Spooled Files (vscode-ibmi-UserSpooledFiles): 0.1.1
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0
Configuration Editing (configuration-editing): 1.0.0
Db2 for IBM i (vscode-db2i): 1.6.1
Emmet (emmet): 1.0.0
Extension Authoring (extension-editing): 1.0.0
Git (git): 1.0.0
Git Base (git-base): 1.0.0
GitHub (github): 0.0.1
GitHub Copilot (copilot): 1.243.0
GitHub Copilot Chat (copilot-chat): 0.21.2
Hawkeye Pathfinder (vscode-ibmi-hawkeye): 0.0.13
IBM Granite.Code (wca-core): 1.0.0
IBM i Debug (ibmidebug): 2.0.1
JSON Language Features (json-language-features): 1.0.0
Jira and Bitbucket (Atlassian Labs) (atlascode): 3.0.10
Merge Conflict (merge-conflict): 1.0.0
NPM support for VS Code (npm): 1.0.1
Node Debug Auto-attach (debug-auto-launch): 1.0.0
Postman (postman-for-vscode): 1.3.0
RPGLE (vscode-rpgle): 0.26.12
Server Ready Action (debug-server-ready): 1.0.0
TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0
YAML (vscode-yaml): 1.15.0

Remote system
Setting Value
IBM i OS V7R5M0
Tech Refresh n/a
CCSID Origin 37
Runtime CCSID 37
Default CCSID 37
SQL Enabled
Source dates Disabled

Enabled features

/QOpenSys/pkgs/bin /usr/bin /QSYS.lib/ILEDITOR.lib /QSYS.LIB /QIBM/ProdData/IBMiDebugService/bin /QOpenSys/QIBM/ProdData/JavaVM/jdk80 /QOpenSys/QIBM/ProdData/JavaVM/jdk11 /QOpenSys/QIBM/ProdData/JavaVM/jdk17
bash attr GETNEWLIBL.PGM QZDFMDB2.PGM startDebugService.sh 64bit 64bit 64bit
find iconv
git setccsid
grep
ls
md5sum
sort
stat
tar
tn5250
Shell env
Variants
{
  "american": "#@$",
  "local": "#@$"
}
Errors
[
  {
    "command": "/QOpenSys/usr/bin/qsh",
    "code": 1,
    "stderr": "CPF9801:  Object VSC00AFN87 in library ILEDITOR not found.",
    "cwd": "/home/PGMGREGORY"
  },
  {
    "command": "/QOpenSys/usr/bin/qsh",
    "code": 1,
    "stderr": "CPD0043:  Keyword SQL not valid for this command.\nCPD0043:  Keyword COMMIT not valid for this command.\nCPD0043:  Keyword NAMING not valid for this command.\nCPF0001:  Error found on RUNSQL command.",
    "cwd": "/"
  },
]
@worksofliam worksofliam transferred this issue from codefori/vscode-ibmi Oct 29, 2024
@worksofliam worksofliam self-assigned this Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants