Skip to content

Can't list home directory content #1599

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

Closed
Akryum opened this issue Jun 16, 2018 · 3 comments
Closed

Can't list home directory content #1599

Akryum opened this issue Jun 16, 2018 · 3 comments

Comments

@Akryum
Copy link
Member

Akryum commented Jun 16, 2018

Version: 3.0.0-rc.2

Original messages:

I started UI in ~ and I couldn't navigate to child dirs from inside ui. Only to parent.
Maybe this is something worth investigating.

I get no errors in the console, but I get an "error" in the ui.
image
I can't select my user to go to ~ path.

See #1596 (comment)

@zoispag
Copy link

zoispag commented Jun 17, 2018

Unfortunately I get nothing on the browser console either.

image

@Akryum
Copy link
Member Author

Akryum commented Jun 17, 2018

Could you follow those steps to help me find the cause of the issue:

  • open the Chrome devtools and the network tab
  • refresh the page
  • reproduce the error in the UI
  • go to the /graphql websocket request in the network tab
  • open the Frames sub tab
  • check for the message with a down red arrow, those are the server to client ones
  • find the ones with the errors array
  • paste the result here

@zoispag
Copy link

zoispag commented Jun 17, 2018

I identified the issue! It was cause by the wrong first try with the / in the path, inside json.
Although it is interesting the fact that it was "complaining" because of a project inside Trash Bin.

Here's the error frame from graphql:

{
    "type": "data",
    "id": "19",
    "payload": {
        "errors": [
            {
                "message": "/Users/zoispag/.Trash/package.json: Unexpected token / in JSON at position 1047",
                "locations": [
                    {
                        "line": 18,
                        "column": 5
                    }
                ],
                "path": [
                    "folderOpen",
                    "children",
                    2,
                    "isVueProject"
                ]
            }
        ],
        "data": {
            "folderOpen": {
                "name": "zoispag",
                "path": "/Users/zoispag",
                "favorite": false,
                "isPackage": false,
                "isVueProject": false,
                "children": [
                    ...
                ],
                "__typename": "Folder"
            }
        }
    }
}

Maybe the .Trash directory should be excluded from indexing?

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

2 participants