question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CPF3064: Library ILEDITOR not found - when adding new source file

See original GitHub issue

I’m on 0.2.3. The issue occurs after I add a new source file, then try to expand it.
image

If I exit VSCODE and restart it, the problem is fixed and I can expand the source file.

Note also that while trying to document this issue I have managed to add QPRGLESRC several times. This occurred because I added it, but it didn’t show up. I then added it twice more without it showing up. Finally, when I added QDDSSRC, the three QRPGLESRCs showed up. Timing issue maybe…

I’ve been on various earlier releases and I understand that things are improving rapidly. Thus my settings.json file is somewhat messy which might be contributing to this problem. There are a lot of lines in low intensity which I believe means they are not referenced and one of these is "“code-for-ibmi.temporaryLibrary” which was an earlier setting… I see that now that library lists are connection specific (a good change!) there I now have several “tempLibrary”: “ILEDITOR” lines.

Here’s my settings.json file:

Click to expand!
{
    "telemetry.enableTelemetry": false,
    "editor.renderControlCharacters": false,
    "editor.fontFamily": "Cascadia Code, Inconsolata, Lucida Sans",
    "editor.fontLigatures": false,
    "editor.renderWhitespace": "none",
    "editor.cursorStyle": "block",
    "editor.minimap.enabled": false,
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
    "window.zoomLevel": 0,
    "update.mode": "start",
    "compile-hero.disable-compile-files-on-did-save-code": false,
    "compile-hero.generate-minified-html": true,
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "code-for-ibmi.connections": [
        {
            "host": "pub400.com",
            "port": 2222,
            "username": "lennons"
        },
        {
            "host": "ipublic.online",
            "port": 2222,
            "username": "lennons"
        }
    ],
    "code-for-ibmi.homeDirectory": "/home/lennons/qrpglesrc",
    "code-for-ibmi.libraryList": "QSYS2,QSYSINC, LENNONS1",
    "code-for-ibmi.logCompileOutput": true,
    "code-for-ibmi.sourceFileList": [
        "QSYSINC/H",
        "lennons1/QTEMP",
        "lennons1/QCLSRC",
        "lennons1/qrpglesrc"
    ],
    "code-for-ibmi.temporaryLibrary": "lennons2",
    "code-for-ibmi.compileCommands": [
        {
            "fileSystem": "member",
            "extensions": [
                "rpgle",
                "rpg"
            ],
            "name": "CRTBNDRPG",
            "command": "CRTBNDRPG PGM(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) OPTION(*EVENTF) DBGVIEW(*SOURCE)"
        },
        {
            "fileSystem": "member",
            "extensions": [
                "CLLE",
                "CL"
            ],
            "name": "CRTBNDCL",
            "command": "CRTBNDCL PGM(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) OPTION(*EVENTF) DBGVIEW(*SOURCE)"
        },
        {
            "fileSystem": "member",
            "extensions": [
                "CLP"
            ],
            "name": "CRTCLPGM",
            "command": "CRTCLPGM PGM(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) OPTION(*SOURCE) OUTPUT(*PRINT)"
        }
    ],
    "workbench.activityBar.iconClickBehavior": "focus",
    "workbench.list.openMode": "doubleClick",
    "code-for-ibmi.connectionSettings": [
        {
            "host": "pub400.com",
            "sourceFileList": [
                "QSYSINC/H",
                "LENNONS1/TEMP"
            ],
            "libraryList": [
                "QSYS2",
                "QSYSINC"
            ],
            "homeDirectory": "/home/lennons",
            "tempLibrary": "ILEDITOR",
            "buildLibrary": "QTEMP"
        },
        {
            "host": "ipublic.online",
            "sourceFileList": [
                "QSYSINC/QRPGLESRC",
                "LENNONS1/TEMP",
                "LENNONS1/QCLSRC",
                "LENNONS1/QRPGLESRC",
                "LENNONS1/QRPGLESRC",
                "LENNONS1/QRPGLESRC",
                "LENNONS1/QDDSSRC"
            ],
            "libraryList": [
                "QSYS2",
                "QSYSINC"
            ],
            "homeDirectory": "/home/lennons",
            "tempLibrary": "ILEDITOR",
            "buildLibrary": "QTEMP"
        }
    ],
    "code-for-ibmi.actions": [
    
        {
            "type": "member",
            "extensions": [
                "RPGLE",
                "RPG"
            ],
            "name": "Create Bound RPG Program (CRTBNDRPG)",
            "command": "CRTBNDRPG PGM(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) OPTION(*EVENTF) DBGVIEW(*SOURCE) TGTRLS(*CURRENT)"
        },
        {
            "type": "member",
            "extensions": [
                "SQLRPGLE"
            ],
            "name": "Create SQL ILE RPG Program (CRTSQLRPGI)",
            "command": "?CRTSQLRPGI OBJ(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) CLOSQLCSR(*ENDMOD) OPTION(*EVENTF) DBGVIEW(*SOURCE) TGTRLS(*CURRENT)"
        },
        {
            "type": "member",
            "extensions": [
                "RPGLE",
                "RPG"
            ],
            "name": "Create RPG Module (CRTRPGMOD)",
            "command": "?CRTRPGMOD MODULE(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) OPTION(*EVENTF) DBGVIEW(*SOURCE) TGTRLS(*CURRENT)"
        },
        {
            "type": "member",
            "extensions": [
                "CMD"
            ],
            "name": "Create Command (CRTCMD)",
            "command": "?CRTCMD CMD(&OPENLIB/&OPNMBR) PGM(&OPNLIB/&OPNMBRC) SRCFILE(&OPENLIB/&OPENSPF) ALLOW(*ALL) CURLIB(*NOCHG) PRDLIB(*NOCHG)"
        },
        {
            "type": "member",
            "extensions": [
                "CMD"
            ],
            "name": "Create Command (Allow Return Variables - CRTCMD)",
            "command": "?CRTCMD CMD(&OPENLIB/&OPNMBR) PGM(&OPNLIB/&OPNMBRC) SRCFILE(&OPENLIB/&OPENSPF) ALLOW(ALLOW(*BPGM *IPGM *BMOD *IMOD) ) CURLIB(*NOCHG) PRDLIB(*NOCHG)"
        },
        {
            "type": "member",
            "extensions": [
                "pf",
                "lf"
            ],
            "name": "Delete File (DLTF)",
            "command": "?DLTF FILE(&OPENLIB/&OPENMBR)"
        },
        {
            "type": "member",
            "extensions": [
                "dspf"
            ],
            "name": "Create Display File (CRTDSPF)",
            "command": "?CRTDSPF FILE(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) SRCMBR(&OPENMBR) RSTDSP(*NO) REPLACE(*YES)"
        },
        {
            "type": "member",
            "extensions": [
                "pf"
            ],
            "name": "Create Physical File (CRTPF)",
            "command": "?CRTPF FILE(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) SRCMBR(&OPENMBR) SIZE(*NOMAX) MAXMBRS(1)"
        },
        {
            "type": "member",
            "extensions": [
                "lf"
            ],
            "name": "Create :Logical File (CRTLF)",
            "command": "?CRTLF FILE(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF)"
        },
        {
            "type": "member",
            "extensions": [
                "CLP",
                "CLLE"
            ],
            "name": "Create CL Program (CRTCLP)",
            "command": "?CRTCLPGM PGM(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) OUTPUT(*PRINT) REPLACE(*YES)"
        },
        {
            "type": "member",
            "extensions": [
                "CLP",
                "CLLE"
            ],
            "name": "Create Bound CL Program (CRTBNDCL)",
            "command": "?CRTBNDCL PGM(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) OPTION(*EVENTF) DBGVIEW(*SOURCE)"
        },
        {
            "type": "member",
            "extensions": [
                "GLOBAL"
            ],
            "name": "Create Program (CRTPGM)",
            "command": "?CRTPGM PGM(&OPENLIB/&OPENMBR) MODULE(*PGM) ENTMOD(*FIRST) BNDSRVPGM(*NONE) BNDDIR(*NONE) ACTGRP(*ENTMOD) TGTRLS(*CURRENT)"
        },
        {
            "type": "object",
            "extensions": [
                "GLOBAL"
            ],
            "name": "Delete object",
            "command": "?DLTOBJ OBJ(&LIBRARY/&NAME) OBJTYPE(*&TYPE)"
        },
        {
            "type": "object",
            "extensions": [
                "pgm"
            ],
            "name": "Call program",
            "command": "?CALL &LIBRARY/&NAME"
        }
    ]
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
SJLennoncommented, Mar 3, 2021

No problem with solving the temporary library issue.
(I uninstalled the app kind of hoping it would remove it’s items, cleaned up my settings.json manually when it didn’t, re-installed and edited settings.json. Good to go.)

0reactions
worksofliamcommented, Mar 3, 2021

@SJLennon thanks for the info. I may open another issue for that. I presume the issue with the temporary library is solved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Library ILEDITOR not found - when adding new source file ...
I'm on 0.2.3. The issue occurs after I add a new source file, then try to expand it. If I exit VSCODE and...
Read more >
Visual Studio Code, RPG and IBM i - Seiden Group
Start by creating a new filter, which will show a new window. Create New filter. You can provide a filter name, library, types,...
Read more >
Restore S/36 Library Members (RSTS36LIBM)
This command restores all source and procedure members with names starting with the character 'X' and that do not already exist as members...
Read more >
Completely Free ILEditor and IBM Technology Refresh Recap
Today I'll look at a powerful open source (and completely free!) IDE for ILE programs (CL, C/C++, Cobol or RPG) named ILEditor that...
Read more >
Agent Error Messages on IBM i - TechDocs
CPF3064 - Library xxx not found. This error may occur when attempting to FTP files that reside in an Auxiliary Storage Pool (ASP)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found