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

Object browser rename, does not "reload file's name" #1554

Closed
AMetnik opened this issue Sep 27, 2023 · 1 comment · Fixed by #1907
Closed

Object browser rename, does not "reload file's name" #1554

AMetnik opened this issue Sep 27, 2023 · 1 comment · Fixed by #1907
Labels
vscode-api Specific to the VSCode Extension API

Comments

@AMetnik
Copy link

AMetnik commented Sep 27, 2023

So when I rightclick a file, under the Object Browser, then it renames the file correctly, and reloads the object browser.
But if my file is open at the same time, it does not reload it with the new, corrected name.
And therefor it references wrong file when doing actions (ctrl+e inside the file).


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

Context Version
Code for IBM i version 2.3.1
Visual Studio Code version 1.82.2
Operating System win32_x64
Active extensions
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.3.2
Db2 for IBM i (vscode-db2i): 0.5.0
Emmet (emmet): 1.0.0
Git (git): 1.0.0
Git Base (git-base): 1.0.0
Git Blame (gitblame): 10.5.1
GitHub (github): 0.0.1
GitHub Authentication (github-authentication): 0.0.2
GitHub Copilot Chat (copilot-chat): 0.7.1
GitLens — Git supercharged (gitlens): 14.3.0
IBM i Notebooks (vscode-ibmi-notebooks): 0.0.6
JSON Language Features (json-language-features): 1.0.0
Merge Conflict (merge-conflict): 1.0.0
Microsoft Account (microsoft-authentication): 0.0.1
Node Debug Auto-attach (debug-auto-launch): 1.0.0
Peacock (vscode-peacock): 4.2.2
RPGLE (vscode-rpgle): 0.21.4
TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0
WSL: Recommender (remote-wsl-recommender): 0.0.19

Remote system
Setting Value
IBM i OS V7R4M0
Tech Refresh 8
CCSID 277
SQL Enabled
Source dates Enabled

Enabled features

/QOpenSys/pkgs/bin /usr/bin /QSYS.lib/ILEDITOR.lib /QSYS.LIB /QIBM/ProdData/IBMiDebugService/bin
bash attr GENCMDXML.PGM QZDFMDB2.PGM startDebugService.sh
chsh iconv GETNEWLIBL.PGM
git setccsid
grep tar
ls
md5sum
sort
stat
tn5250
Shell env
BUILDLIB=ANLIB
CURLIB=ANLIB
HOME=/home/ANMET
HOST=mensa
LIBLS=ICEBREAK SYSAFD UNO700CFUT SMSDB NHO NHOPRG YXDB NHODATA YXDTA24 QGPL QTEMP ANLIB
LOGIN=anmet
LOGNAME=anmet
MAIL=/var/spool/mail/anmet
OLDPWD=/home/ANMET
PATH=/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
PWD=/home/ANMET
SHELL=/QOpenSys/pkgs/bin/bash
SHLVL=1
SSH_CLIENT=10.45.11.51 55357 22
SSH_CONNECTION=10.45.11.51 55357 10.45.18.44 22
TZ=<CET>-1<CEST>,M3.5.0,M10.5.0/03:00:00
USER=anmet
USERNAME=anmet
_=/QOpenSys/usr/bin/env
Variants
{
  "american": "#@$",
  "local": "ÆØÅ"
}
Errors

👉🏻 Issue text goes here.


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

Context Version
Code for IBM i version 2.3.1
Visual Studio Code version 1.82.2
Operating System win32_x64
Active extensions
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.3.2
Db2 for IBM i (vscode-db2i): 0.5.0
Emmet (emmet): 1.0.0
Git (git): 1.0.0
Git Base (git-base): 1.0.0
Git Blame (gitblame): 10.5.1
GitHub (github): 0.0.1
GitHub Authentication (github-authentication): 0.0.2
GitHub Copilot Chat (copilot-chat): 0.7.1
GitLens — Git supercharged (gitlens): 14.3.0
IBM i Notebooks (vscode-ibmi-notebooks): 0.0.6
JSON Language Features (json-language-features): 1.0.0
Merge Conflict (merge-conflict): 1.0.0
Microsoft Account (microsoft-authentication): 0.0.1
Node Debug Auto-attach (debug-auto-launch): 1.0.0
Peacock (vscode-peacock): 4.2.2
RPGLE (vscode-rpgle): 0.21.4
TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0
WSL: Recommender (remote-wsl-recommender): 0.0.19

Remote system
Setting Value
IBM i OS V7R4M0
Tech Refresh 8
CCSID 277
SQL Enabled
Source dates Enabled

Enabled features

/QOpenSys/pkgs/bin /usr/bin /QSYS.lib/ILEDITOR.lib /QSYS.LIB /QIBM/ProdData/IBMiDebugService/bin
bash attr GENCMDXML.PGM QZDFMDB2.PGM startDebugService.sh
chsh iconv GETNEWLIBL.PGM
git setccsid
grep tar
ls
md5sum
sort
stat
tn5250
Shell env
BUILDLIB=ANLIB
CURLIB=ANLIB
HOME=/home/ANMET
HOST=mensa
LIBLS=ICEBREAK SYSAFD UNO700CFUT SMSDB NHO NHOPRG YXDB NHODATA YXDTA24 QGPL QTEMP ANLIB
LOGIN=anmet
LOGNAME=anmet
MAIL=/var/spool/mail/anmet
OLDPWD=/home/ANMET
PATH=/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
PWD=/home/ANMET
SHELL=/QOpenSys/pkgs/bin/bash
SHLVL=1
SSH_CLIENT=10.45.11.51 55357 22
SSH_CONNECTION=10.45.11.51 55357 10.45.18.44 22
TZ=<CET>-1<CEST>,M3.5.0,M10.5.0/03:00:00
USER=anmet
USERNAME=anmet
_=/QOpenSys/usr/bin/env
Variants
{
  "american": "#@$",
  "local": "ÆØÅ"
}
Errors
[
  {
    "command": "/QOpenSys/usr/bin/qsh",
    "code": 1,
    "stderr": "CPD4090:  Printer device EDB01P not found. Output queue changed to QPRINT in library QGPL.\nCPC7301:  Filen QSQLPRE er oprettet i biblioteket QTEMP.\nCPC7305:  Member FRN912RP er føjet til fil QSQLPRE i QTEMP.\nCPC3201:  Member FRN912RP file QSQLPRE in QTEMP changed.\nRNS9307:  Diagnostic check of source is complete. Highest severity is 00.\nCPC2206:  Ejerskab til objekt RETURNCODE i QTEMP type *DTAARA revideret.\nCPC0904:  Dataområdet RETURNCODE er oprettet i biblioteket QTEMP.\nCPC7301:  Filen QSQLTEMP1 er oprettet i biblioteket QTEMP.\nCPC7305:  Member FRN912RP er føjet til fil QSQLTEMP1 i QTEMP.\nCPD4090:  Printer device EDB01P not found. Output queue changed to QPRINT in library QGPL.\nCPF7302:  File EVFTEMPF01 not created in library ANLIB.\nCPC2206:  Ejerskab til objekt QRNFER i QTEMP type *USRSPC revideret.\nCPC2206:  Ejerskab til objekt QRNFEF i QTEMP type *USRSPC revideret.\nRNS9308:  Compilation stopped. Severity 30 errors found in program.\nRNS9310:  Compilation failed. Program FRN912RP not created in library ANLIB.\nCPC2206:  Ejerskab til objekt QZSHSYSTEM i QTEMP type *USRSPC revideret.",
    "cwd": "/home/ANMET"
  },
  {
    "command": "/QOpenSys/usr/bin/qsh",
    "code": 1,
    "stderr": "CPD4090:  Printer device EDB01P not found. Output queue changed to QPRINT in library QGPL.\nCPC7301:  Filen QSQLPRE er oprettet i biblioteket QTEMP.\nCPC7305:  Member FRN912RP er føjet til fil QSQLPRE i QTEMP.\nCPC3201:  Member FRN912RP file QSQLPRE in QTEMP changed.\nRNS9307:  Diagnostic check of source is complete. Highest severity is 00.\nCPC2206:  Ejerskab til objekt RETURNCODE i QTEMP type *DTAARA revideret.\nCPC0904:  Dataområdet RETURNCODE er oprettet i biblioteket QTEMP.\nCPC7301:  Filen QSQLTEMP1 er oprettet i biblioteket QTEMP.\nCPC7305:  Member FRN912RP er føjet til fil QSQLTEMP1 i QTEMP.\nCPD4090:  Printer device EDB01P not found. Output queue changed to QPRINT in library QGPL.\nCPF7302:  File EVFTEMPF01 not created in library ANLIB.\nCPC2206:  Ejerskab til objekt QRNFER i QTEMP type *USRSPC revideret.\nCPC2206:  Ejerskab til objekt QRNFEF i QTEMP type *USRSPC revideret.\nRNS9308:  Compilation stopped. Severity 30 errors found in program.\nRNS9310:  Compilation failed. Program FRN912RP not created in library ANLIB.\nCPC2206:  Ejerskab til objekt QZSHSYSTEM i QTEMP type *USRSPC revideret.",
    "cwd": "/home/ANMET"
  },
  {
    "command": "/QOpenSys/usr/bin/qsh",
    "code": 1,
    "stderr": "CPD4090:  Printer device EDB01P not found. Output queue changed to QPRINT in library QGPL.\nCPC7301:  Filen QSQLPRE er oprettet i biblioteket QTEMP.\nCPC7305:  Member FRN912RP er føjet til fil QSQLPRE i QTEMP.\nCPC3201:  Member FRN912RP file QSQLPRE in QTEMP changed.\nRNS9307:  Diagnostic check of source is complete. Highest severity is 00.\nCPC2206:  Ejerskab til objekt RETURNCODE i QTEMP type *DTAARA revideret.\nCPC0904:  Dataområdet RETURNCODE er oprettet i biblioteket QTEMP.\nCPC7301:  Filen QSQLTEMP1 er oprettet i biblioteket QTEMP.\nCPC7305:  Member FRN912RP er føjet til fil QSQLTEMP1 i QTEMP.\nCPD4090:  Printer device EDB01P not found. Output queue changed to QPRINT in library QGPL.\nCPF7302:  File EVFTEMPF01 not created in library ANLIB.\nCPC2206:  Ejerskab til objekt QRNFER i QTEMP type *USRSPC revideret.\nCPC2206:  Ejerskab til objekt QRNFEF i QTEMP type *USRSPC revideret.\nRNS9308:  Compilation stopped. Severity 30 errors found in program.\nRNS9310:  Compilation failed. Program FRN912RP not created in library ANLIB.\nCPC2206:  Ejerskab til objekt QZSHSYSTEM i QTEMP type *USRSPC revideret.",
    "cwd": "/home/ANMET"
  }
]
@worksofliam
Copy link
Contributor

But if my file is open at the same time, it does not reload it with the new, corrected name.

This is probably referring to the tab name?

@worksofliam worksofliam added the vscode-api Specific to the VSCode Extension API label Oct 2, 2023
@worksofliam worksofliam linked a pull request May 15, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vscode-api Specific to the VSCode Extension API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants