codefori / vscode-ibmi

🌍 IBM i development extension for VS Code
https://codefori.github.io/docs/#/
MIT License
282 stars 92 forks source link

RPGLE Linter indentation issue #2111

Closed HenryMiller closed 3 months ago

HenryMiller commented 3 months ago

Hello,

I have this indentation error message all the times I comment my subprocedures like the attached screenshot (lines 64-76). I use this kind of comments to generate my own software documentation. Changing comment lines 66-74 from " @author" to "// @author" and so on , then the indentation error disappears.

Best regards, Giovanni

// ////////////////////////////////////////////////////////////////////////////////////////////////// /if defined(MarkDown_PROC) @name Main @title Main Procedure @brief Entry Point @author Giovanni Michielin @date 22 May 2024 @versioning 22 May 2024 Create date 22 May 2024 ......
@parameters *STDIN (Apache) - Json Parameters @output Json file /endif // //////////////////////////////////////////////////////////////////////////////////////////////////

Dcl-Proc Main;

Dcl-Pi Main; pMainNode Like(yajl_val); End-Pi;

/copy "/m11/Backend/Ibm-i/src/sq001s_h.rpgleinc" /copy "/m11/Backend/Ibm-i/src/sq002s_h.rpgleinc" /copy "/m11/Backend/Ibm-i/src/sq003s_h.rpgleinc" /copy "/m11/Backend/Ibm-i/src/sy044s_h.rpgleinc"

Dcl-PR QtmhWrStout ExtProc(dclcase); DtaVar Char(8000000) options(varsize) Const; DtaVarLen Int(10) Const; ErrorCode Char(8000) Options(*varsize); End-PR;

image

⚠️ REMOVE THIS LINE AND ANY SENSITIVE INFORMATION BELOW! ⚠️

Context Version
Code for IBM i version 2.10.1
Visual Studio Code version 1.90.0
Operating System darwin_arm64
Active extensions ``` Code Coverage for IBM i (code-coverage-ibmi): 0.1.7 Code Runner (code-runner): 0.12.2 Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0 Db2 for IBM i (vscode-db2i): 1.0.0 ESLint (vscode-eslint): 2.4.4 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 Authentication (github-authentication): 0.0.2 GitLens — Git supercharged (gitlens): 15.1.0 IBM i Debug (ibmidebug): 1.0.0 IBM i Notebooks (vscode-ibmi-notebooks): 0.0.6 JSON Language Features (json-language-features): 1.0.0 Jira and Bitbucket (Atlassian Labs) (atlascode): 3.0.10 Live Server (LiveServer): 5.7.9 Makefile Tools (makefile-tools): 0.9.10 Markdown Language Features (markdown-language-features): 1.0.0 Markdown Math (markdown-math): 1.0.0 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 Overtype (overtype): 0.5.0 RPGLE (vscode-rpgle): 0.26.6 Render Line Endings (render-crlf): 1.8.1 TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0 YAML (vscode-yaml): 1.15.0 ```

Remote system |Setting|Value| |-|-| |IBM i OS|V7R4M0| |Tech Refresh|n/a| |CCSID Origin|user| |Runtime CCSID|1144| |Default CCSID|1144| |SQL|Enabled |Source dates|Enabled ### Enabled features |/QOpenSys/pkgs/bin|/usr/bin|/QSYS.lib/ILEDITOR.lib||/QSYS.LIB|/QIBM/ProdData/IBMiDebugService/bin| |-|-|-|-|-|-| |bash|attr|GETNEWLIBL.PGM|ILEDITOR.GETMBRINFO|QZDFMDB2.PGM|startDebugService.sh| |chsh|iconv||||| |git|setccsid||||| |ls|tar||||| |md5sum|||||| |sort|||||| |stat||||||
Shell env ```bash BUILDLIB=M11D00_DBE CURLIB=M11D00_DBE HOME=/home/HM HOST= LIBLS= LOGIN= LOGNAME= MAIL=/var/spool/mail/hm OLDPWD=/home/HM PATH=/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin PWD=/home/HM SHELL=/QOpenSys/pkgs/bin/bash SHLVL=1 SSH_CLIENT=195.31.232.34 49532 22 SSH_CONNECTION=195.31.232.34 49532 199.5.83.1 22 TZ=0 USER=hm USERNAME=hm WORKDIR=/home/HM _=/QOpenSys/usr/bin/env ```
Variants ```json { "american": "#@$", "local": "£§$" } ```
Errors ```json [ { "command": "/QOpenSys/usr/bin/qsh", "code": 1, "stderr": "CPF3012: File MN00000V non trovato nella libreria *LIBL.", "cwd": "/home/HM" }, { "command": "for f in \"/home/HM/\"/m11\"; do if [ -f \"$f\" ]; then echo $f; break; fi; done", "code": 2, "stderr": "bash: -c: line 1: unexpected EOF while looking for matching `\"'\nbash: -c: line 2: syntax error: unexpected end of file", "cwd": "/home/HM" }, { "command": "for f in \"/home/HM/\"/ospreys/m11\"; do if [ -f \"$f\" ]; then echo $f; break; fi; done", "code": 2, "stderr": "bash: -c: line 1: unexpected EOF while looking for matching `\"'\nbash: -c: line 2: syntax error: unexpected end of file", "cwd": "/home/HM" } ] ```