vscode-ibmi icon indicating copy to clipboard operation
vscode-ibmi copied to clipboard

Go to file cannot find newly added source member

Open LuigiBrito opened this issue 3 years ago • 5 comments

Steps:

  1. Use CPYF and add member to QRPGLESRC
  2. Refresh VSCode object browser
  3. Use Go To File (Ctrl+Alt+P)
  4. Look for new member ..../QRPGLESRC/NewMember

Expected result: New member to show Actual behavior: Member no show

  • QCCSID: 37
  • Features enabled:
    • git: true
    • grep: false
    • tn5250: false
    • setccsid: true
    • GENCMDXML.PGM: false
    • QZDFMDB2.PGM: true
    • iconv: true
    • attr: true
  • SQL enabled: true
  • Source dates enabled: false
[
  {
    "command": "system \"CRTLIB LIB(ISEDEV) TEXT('Code for i temporary objects. May be cleared.')\"",
    "code": 255,
    "stderr": "CPF2111: Library ISEDEV already exists.",
    "cwd": "/home/ISE1"
  },
  {
    "command": "system \"CHKOBJ OBJ(QSYS/QCPTOIMPF) OBJTYPE(*DTAARA)\"",
    "code": 255,
    "stderr": "CPF9801: Object QCPTOIMPF in library QSYS not found.",
    "cwd": "/home/ISE1"
  },
  {
    "command": "system \"CHKOBJ OBJ(QSYS/QCPFRMIMPF) OBJTYPE(*DTAARA)\"",
    "code": 255,
    "stderr": "CPF9801: Object QCPFRMIMPF in library QSYS not found.",
    "cwd": "/home/ISE1"
  }
]

LuigiBrito avatar Jun 23 '22 22:06 LuigiBrito

Gotta make sure the list gets updated when a member (or streamfile) gets created!

worksofliam avatar Jul 07 '22 22:07 worksofliam

What's the list? Also how do I do that? I tried the refresh button a couple of times

On Fri, 8 Jul 2022, 6:38 am barry, @.***> wrote:

Gotta make sure the list gets updated when a member (or streamfile) gets created!

— Reply to this email directly, view it on GitHub https://github.com/halcyon-tech/vscode-ibmi/issues/722#issuecomment-1178322165, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALTAETFEDEPKKYTJJI7NZMTVS5L5JANCNFSM5ZV54CTA . You are receiving this because you authored the thread.Message ID: @.***>

LuigiBrito avatar Jul 08 '22 00:07 LuigiBrito

@DgitalTrex sorry, that was more of a note to self!

For the time being, the bottom of the file list should have the ability to clear all the entries, and then when you open the source file again the list to should fix itself.

worksofliam avatar Jul 08 '22 00:07 worksofliam

@DgitalTrex Currently, the search in the "Go To File" option is based on the list of the object browser. So when creating a source directly on the 5250 interface, the file does not appear in this list. It is necessary to update the contents via the button "Refresh Object Browser".

A solution would be to load a file by entering directly the path (Library / File / Member).

Like this: 2022-08-18_17h05_46 2022-08-18_17h03_28 2022-08-18_17h04_05

@worksofliam I test it on my repo and it work fine.

sebCIL avatar Aug 18 '22 15:08 sebCIL

I create the PR #833 for this issue.

sebCIL avatar Aug 24 '22 10:08 sebCIL