zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
159 stars 89 forks source link

Saving favorited data sets without searching them explicitly results in an error #2880

Closed gourmsen closed 2 months ago

gourmsen commented 2 months ago

Describe the bug

When opening a data set (or member) from the favorites bar, they can't be saved - this results in a TypeScript error. When explicitly searching for them in the profile, they can suddenly be saved. After searching for something else again, saving them results in the mentioned error again. It is worth mentioning that when you have searched for a PDS and a member of that PDS is open, you also can't save it until you've opened the PDS in the tree view.

To Reproduce

  1. Open data set (or member of a PDS) from favorites
  2. Try to save it with Ctrl + S (displays error)
  3. Search for it explicitly (so it is in the tree view - for members, expand the PDS)
  4. Try to save it (works normally)

Expected behavior

Regardless, of whether or not the data set has been explicitly searched for, saving it should be possible.

Screenshots

Screenshot 2024-04-25 104848

image

Desktop (please complete the following information):

Additional context

I've experienced this bug at the same time as #2873. It might be tied together in some way.

github-actions[bot] commented 2 months ago

Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.

WildtBrian commented 2 months ago

I can confirm this bug.

paulobigas commented 2 months ago

I also confirm the bug

t1m0thyj commented 2 months ago

Do you have a custom temporary folder configured for Zowe Explorer in VS Code settings?

image

If so, changing the drive letter to be lowercase should fix the problem:

image

We are working on a fix in #2885 to support uppercase drive letters in the temp path.

gourmsen commented 2 months ago

Thank you! Yes, I do and this fixed the problem on my machine.