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

renaming folder under collection ends up with a phantom folder #251

Open
mreiland opened this issue Sep 29, 2023 · 7 comments
Open

renaming folder under collection ends up with a phantom folder #251

mreiland opened this issue Sep 29, 2023 · 7 comments
Assignees

Comments

@mreiland
Copy link

Repro:

  1. create a collection named 'test'
  2. create a folder named 'inner folder' inside the test collection
  3. create a request named 'google' inside the folder named 'inner folder'
  4. select the 'elipses' menu next to the folder and select rename
  5. rename to 'inner folder (renamed)
  6. observe there are now two folders, 1 named 'inner folder' with nothing in it and 1 named 'inner folder (renamed)' with the 'google' request in it.
  7. you will not be able to interact with the 'inner folder' in any way.
  8. close and restart bruno and the 'inner folder' goes away.

see attached screenshot for evidence.

bruno-bug

@helloanoop
Copy link
Contributor

Hi @mreiland

The rename works fine on my machine. I am using Mac x64
Can you let me know which OS you are using ?

@AyushNigam-1
Copy link
Contributor

AyushNigam-1 commented Oct 1, 2023

Hey , I am using windows 11 x64 , Same issue is with me.

AyushNigam-1 added a commit to AyushNigam-1/bruno that referenced this issue Oct 1, 2023
helloanoop added a commit that referenced this issue Oct 1, 2023
helloanoop added a commit that referenced this issue Oct 1, 2023
@helloanoop
Copy link
Contributor

@mreiland This has been fixed by @not-known-person in v0.16.5
You can download the latest version from the website.

Closing this issue. Please re-open if the issues still persists.

@mreiland
Copy link
Author

mreiland commented Oct 2, 2023

@helloanoop

Apologies for the delay, I'm on Windows 10 and can confirm this is fixed in the latest version of bruno.

Thank you for such a quick response!

@Scotsoo
Copy link
Contributor

Scotsoo commented Oct 8, 2023

I was looking at this last weekend and where I think this fix does indeed fix the issue, I don't think it's the real fix.
I think the real problem is due to path.sep returning the unix / rather than the windows \\ as it's running in a browser environment path.sep gets a bit confused. Meaning that the context doesn't update using the natural triggers.

See example, this is based on v0.16.5 (pre the fix above) on a windows machine.
electron_Fqr7Km1Hms

PR raised: #465

@helloanoop helloanoop reopened this Oct 9, 2023
@helloanoop
Copy link
Contributor

@Scotsoo Just to confirm - what you are you recommending is to apply your fix - #465 (fixing the path) and revert this fix fcc12fb right ?

const PATH_SEPARATOR = path.sep;

console.log('PATH_SEPARATOR', PATH_SEPARATOR);

Can you confirm that by logging the path.sep on top you dev console - you are not seeing \\ while running this on windows?
I was assuming that this would automatically resolve to \\ when being run on windows

@Scotsoo
Copy link
Contributor

Scotsoo commented Oct 14, 2023

Yep, that's correct. I'm not seeing path.sep as \ on windows as it's something to do with the runtime actually running as a browser.
My gif above is recorded on a windows machine

Scotsoo added a commit to Scotsoo/bruno that referenced this issue Oct 14, 2023
…me/delete needs to be run only on windows"

This reverts commit fcc12fb.

# Conflicts:
#	packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
#	packages/bruno-app/src/utils/common/platform.js
Scotsoo added a commit to Scotsoo/bruno that referenced this issue Oct 14, 2023
Its-treason added a commit to Its-treason/bruno that referenced this issue Oct 14, 2023
…me/delete needs to be run only on windows"

This reverts commit fcc12fb.
@helloanoop helloanoop added the triage-pending Triage Pending label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants