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

Issue with /Copys (don't found) with new version 2.13.4 and 2.13.5 #2294

Open
viruslogic opened this issue Oct 17, 2024 · 8 comments
Open

Issue with /Copys (don't found) with new version 2.13.4 and 2.13.5 #2294

viruslogic opened this issue Oct 17, 2024 · 8 comments

Comments

@viruslogic
Copy link

viruslogic commented Oct 17, 2024

Hi, I don't know if it has to do with the bugs that have been fixed in versions 2.13.4 and 2.13.5. But a curious thing happens to me since I have installed the latest releases.

In my code I usually use copys and until now during development, vscode allowed me to see the procedures developed in the copys and the variables defined in the copys. Now it doesn't. If I put the cursor over the reference it says “not found”.

For compiling I have no problem since I use my own utilities. The objects are compiled without problems, but until now this functionality was extraordinarily useful.

As I said, I don't know if it has to do or not with the bugs fixed in versions 2.13.4 and 2.13.5.

image


Context Version
Code for IBM i version 2.13.5
Visual Studio Code version 1.94.2
Operating System win32_x64
Active extensions
Autenticación de GitHub (github-authentication): 0.0.2
COBOL (cobol): 24.10.15
Características del lenguaje JSON (json-language-features): 1.0.0
Características del lenguaje JavaScript y TypeScript (typescript-language-features): 1.0.0
Code Coverage for IBM i (code-coverage-ibmi): 0.1.7
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0
Conexión Automática a node.js en modo de depuración (debug-auto-launch): 1.0.0
Cuenta Microsoft (microsoft-authentication): 0.0.1
Db2 for IBM i (vscode-db2i): 1.6.0
Edición de configuración (configuration-editing): 1.0.0
Emmet (emmet): 1.0.0
Error Lens (errorlens): 3.20.0
Fusionar conflicto (merge-conflict): 1.0.0
GIT (git): 1.0.0
Git Base (git-base): 1.0.0
GitHub (github): 0.0.1
GitLens — Git supercharged (gitlens): 15.6.1
IBM i Debug (ibmidebug): 2.0.1
IBM i Notebooks (vscode-ibmi-notebooks): 0.0.6
RPGLE (vscode-rpgle): 0.26.12
TODO Highlight (vscode-todo-highlight): 1.0.5

Remote system
Setting Value
IBM i OS V7R5M0
Tech Refresh 4
CCSID Origin 65535
Runtime CCSID 65535
Default CCSID 284
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
chsh iconv
git setccsid
ls tar
md5sum
sort
stat
Shell env
BUILDLIB=IDEA
CURLIB=IDEA
HOME=/home/sayago
HOST=POWERQP.QP.NET
LIBLS=IDEA EDPMOD LIBHSSF LIBHTTP QPFTP IQS80CPY $QS65MRP QTEMP QGPL IQSPGM MRPPGM CVEPGM PRF81MOD PRF81FILE PQSMOD VISU35MOD6 PQPMOD VISU35MODP GQPMOD IQSFIL001 IQSFIL901 IQSFCOMUN IQSFILART PQPGEN VISU35MOD PARCHEQS PRF81TMP
LOGIN=sayago
LOGNAME=sayago
MAIL=/var/spool/mail/sayago
OLDPWD=/home/sayago
PATH=/QOpenSys/pkgs/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
PWD=/home/sayago
SHELL=/QOpenSys/pkgs/bin/bash
SHLVL=1
SSH_CLIENT=192.168.2.87 50900 22
SSH_CONNECTION=192.168.2.87 50900 192.168.2.2 22
TZ=<CET>-1<CEST>,M3.5.0,M10.5.0/03:00:00
USER=sayago
USERNAME=SAYAGO
WORKDIR=/home/sayago
_=/QOpenSys/pkgs/bin/env
Variants
{
  "american": "#@$",
  "local": "Ñ@$"
}
Errors
[
  {
    "command": "/QOpenSys/usr/bin/qsh",
    "code": 1,
    "stderr": "CPF2111:  La biblioteca ILEDITOR ya existe.",
    "cwd": "/home/sayago"
  },
  {
    "command": "/QOpenSys/usr/bin/qsh",
    "code": 1,
    "stderr": "CPF2125:  No se ha suprimido ningún objeto.",
    "cwd": "/home/sayago"
  }
]
@worksofliam
Copy link
Contributor

@viruslogic after hovering and seeing not found, please share the contents of your Code for IBM i output channel.

image

@worksofliam
Copy link
Contributor

worksofliam commented Oct 17, 2024

Quick test on latest version worked, 2.13.5, worked.

image

@viruslogic
Copy link
Author

viruslogic commented Oct 17, 2024

Hi Liam,

of course. This is the output:

/home/sayago: for f in /QSYS.LIB/IDEA.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/PRF81TMP.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/PARCHEQS.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/VISU35MOD.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/PQPGEN.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/IQSFILART.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/IQSFCOMUN.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/IQSFIL901.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/IQSFIL001.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/GQPMOD.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/VISU35MODP.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/PQPMOD.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/VISU35MOD6.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/PQSMOD.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/PRF81FILE.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/PRF81MOD.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/CVEPGM.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/MRPPGM.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/IQSPGM.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/QGPL.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/QTEMP.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/\$QS65MRP.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/IQS80CPY.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/QPFTP.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/LIBHTTP.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/LIBHSSF.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/EDPMOD.LIB/QRPGSRC.FILE/IFNC000I.MBR /QSYS.LIB/IDEA.LIB/QRPGSRC.FILE/IFNC000I.MBR; do if [ -f $f ]; then echo $f; break; fi; done
{
    "code": 0,
    "signal": null,
    "stdout": "",
    "stderr": ""
}

The problem is the same as the one I reported yesterday. That member is in another iASP. The real location of the source is:

/DATAQP/QSYS.LIB/IDEA.LIB/QRPGSRC.FILE/IFNC000I.MBR

As far as I can see, this detail is not taken in consideration when setting up the routes in which to search for this element.

@worksofliam
Copy link
Contributor

@viruslogic I believe this was fixed in 2.13.5.

@sebjulliand should this have been fixed with #2293 or #2287?

@worksofliam
Copy link
Contributor

Just checked. Looks like this should be working:

async memberResolve(member: string, files: QsysPath[]): Promise<IBMiMember | undefined> {

And the test cases are passing.

@viruslogic
Copy link
Author

viruslogic commented Oct 31, 2024

Hi @worksofliam and @sebjulliand.

For me the problem is not solved in v2.13.5. I attach a screenshot. If you look at the Code for IBM i output, the extension goes crazy trying to locate the HTTPAPI_H.MBR copy. It does not find it. The source I opened to edit is in an ASP (DATAQP) and the copy is in a different ASP (SYSBAS). Spits and spits log lines endlessly

image

If I try to restore the library where the /copy is to the same ASP, problem solved.

image

image

For the test I duplicated the LIBHTTP library that is in the iASP DATAQP and renamed it LIBHTTP3 in the default iASP (the system's one)

image

In fact, that has been the workaround for me. Move all the libraries where I have my sources to the same iASP. With that, problem solved in my particular case.

But I understand that the extension is not working fine for others who are in the same case as me.

@worksofliam
Copy link
Contributor

@viruslogic Can you confirm, in your connection settings, you have a source ASP defined?

@viruslogic
Copy link
Author

Hi @worksofliam. Yes, that's right, I'll show you a screenshot

image

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