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

Can't change current library from old library to new #2031

Closed
kraudy opened this issue May 5, 2024 · 9 comments · Fixed by #2032
Closed

Can't change current library from old library to new #2031

kraudy opened this issue May 5, 2024 · 9 comments · Fixed by #2032
Assignees
Labels
bug A confirmed issue when something isn't working as intended

Comments

@kraudy
Copy link

kraudy commented May 5, 2024

Hi, recently i changed my library on the ibm i server, so now i don't have access to that old library, lets call it LIBOLD. The new library is LIBNEW.

Here is my problem. I can't seem to find a way to remove LIBOLD form the vscode for i lib list and also can't set LIBNEW as the new current lib. Which means, everytime i try to compile something, it tries to use LIBOLD, which i have no access anymore.

I would aprecciate any advice. Thanks

This is LIBOLD
image

This is LIBNEW
image

This is the error when trying to compile
image

It looks like it is in limbo
image

@kraudy kraudy changed the title Can Can't change current library from old library to new May 5, 2024
@SJLennon
Copy link
Contributor

SJLennon commented May 5, 2024

This doesn't work when you right click on a library?

image

@kraudy
Copy link
Author

kraudy commented May 5, 2024

This doesn't work when you right click on a library?

image

I can remove the new library but not the old one (which is set as current library)

@SJLennon
Copy link
Contributor

SJLennon commented May 6, 2024

You may have discovered something the developers didn't think of, so it may be a bug.

You did try right clicking and doing this?
image

Does doing CHGCURLIB on the green screen and then reconnecting make any difference?

If you are really stuck, you could:

  • Create a new connection.

  • Or if you are comfortable with it, you could manually edit setting.json: But be careful...

image

@kraudy
Copy link
Author

kraudy commented May 6, 2024

Right click + change current library gives this error
image

Changing the curlib on the green screen does nothing

I don't wanna try editing the settings right now cuz i have other connections and i don't know if that is gonna mess something else up and give me more headache

@worksofliam
Copy link
Contributor

Please share the contents of your Code for IBM i output channel after the error appears.

image

@sebjulliand
Copy link
Collaborator

Hi @kraudy,
this is indeed a bug. If your settings' current library doesn't exist anymore, then it cannot be removed.
I'll work on a fix, but in the meantime, you should follow @SJLennon advice and replace your connection's currentLibrary by something else (like QPGL). This will get you going while the fix is being worked on and you have no risk of breaking anything.

Alternatively, you can use the Copy... action to duplicate the faulty connection and make a copy of everything but the library list.
image

@sebjulliand sebjulliand added the bug A confirmed issue when something isn't working as intended label May 6, 2024
@sebjulliand sebjulliand self-assigned this May 6, 2024
@kraudy
Copy link
Author

kraudy commented May 6, 2024

Here is the output @worksofliam
image

@sebjulliand
Copy link
Collaborator

@kraudy this problem has been fixed in v2.10.1 that was released today.
After you've updated the extension, you'll be able to change you current library.

@kraudy
Copy link
Author

kraudy commented May 6, 2024

Thanks @sebjulliand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A confirmed issue when something isn't working as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants