Skip to content

Can't add a specific second folder to a new workspace #85821

Closed

Description

Easy repro on Linux, both dev and Insiders, with very specific file paths. Create these two directories:

  • /home/joao/tmp/sample/a
  • /home/joao/tmp/sample/b

I failed to repro on macOS Insider or dev.

  1. New Window
  2. Add folder a to workspace

Already something is wrong since the explorer is empty:

image

  1. Add folder b to workspace

Screenshot from Fri 29 Nov 2019 12:50:31 PM CET

When I click Open Workspace Configuration, I get:

Screenshot from Fri 29 Nov 2019 12:50:38 PM CET

When I run Reopen with Encoding and pick UTF8, I get:

Screenshot from Fri 29 Nov 2019 12:50:53 PM CET

And then everything keeps running.

It seems the automatic encoding detection screwed up at some point. Strange that I can't repro in Insiders though.


Unrelated, and I haven't found a way to repro, so just FYI: once that notification was done I opened the notifications area and saw:

Screenshot from Fri 29 Nov 2019 12:57:19 PM CET

🤷‍♂️

Activity

  1. joaomoreno commented on Nov 29, 2019

    @joaomoreno
    ContributorAuthor

    I can't repro in Stable.

    I decided to run the Show Workspace File command after step 2, both stable and Insiders. This is what I got on Insiders:

    image

  2. joaomoreno commented on Nov 29, 2019

    @joaomoreno
    ContributorAuthor

    This seems to be very specific to the following workspace file which gets detected as UTF16:

    {
    	"folders": [
    		{
    			"path": "/home/joao/tmp/sample/a"
    		}
    	]
    }
    
  3. joaomoreno commented on Nov 29, 2019

    @joaomoreno
    ContributorAuthor

    This just seems like so many issues at once.

    Debugging with Isidor Nikolic (@isidorn) we nailed on one: tree compression seems to be causing the empty explorer.

  4. changed the title [-]Can't add a second folder to a new workspace[/-] [+]Can't add a specific second folder to a new workspace[/+] on Nov 29, 2019
  5. joaomoreno commented on Nov 29, 2019

    @joaomoreno
    ContributorAuthor

    Empty explorer is #85835, removing Isidor Nikolic (@isidorn).

  6. joaomoreno commented on Nov 30, 2019

    @joaomoreno
    ContributorAuthor

    Can't repro with the exact same workspace file, when at home. 🤔 Only in the office machine...

  7. bpasero commented on Dec 5, 2019

    @bpasero
    Contributor

    João Moreno (@joaomoreno) I think this can be explained if you either have a non-UTF-8 encoding configured in settings or possibly auto guessing of encoding. I pushed 2 changes today:

  8. added
    bug
    workbench-multiroot
    on Dec 5, 2019
  9. added
    verified
    on Dec 6, 2019
  10. mjbvz commented on Dec 6, 2019

    @mjbvz
    Contributor

    Verified untitled workspaces with are encoded properly for #85870

    I was not able to reproduce the original problem João Moreno (@joaomoreno) reported. João Antunes (@joao) Can you please handle verification

  11. removed
    verified
    on Dec 6, 2019
  12. added
    verification-needed
    on Dec 6, 2019
  13. jrieken commented on Dec 6, 2019

    @jrieken
    Contributor

    Benjamin Pasero (@bpasero) Can this be verified?

  14. bpasero commented on Dec 6, 2019

    @bpasero
    Contributor
  15. added
    verification-steps-needed
    and removed
    verification-needed
    on Dec 6, 2019
  16. joaomoreno commented on Dec 9, 2019

    @joaomoreno
    ContributorAuthor

    I also couldn't verify this at home... really the only machine in which this happened was the office one. I'm pretty sure I had no encoding settings set. I'll verify once in the office.

  17. added
    debt
    and removed
    bug
    verification-steps-needed
    on Dec 10, 2019
  18. locked and limited conversation to collaborators on Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debtworkbench-multiroot

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions