vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Refresh doesn't work?

Open YanDevDe opened this issue 3 years ago • 7 comments

Hello everyone!

I've been trying to use this extension under fauna-dev (which runs per docker). Hence I'm using .faunarc at my root project directory with empty global admin key.

I've following content at .faunarc

FAUNA_KEY=secret
FAUNA_DOMAIN=127.0.0.1
FAUNA_SCHEME=http
FAUNA_PORT=8443
FAUNA_GRAPHQL_HOST=http://localhost:8084/graphql

This config works fine on fauna-schema-migration and faunadb nodejs module - my test runs smoothly and it can pull data from fauna-dev too. It also displays correctly in FaunaDB Extension at running it first time.

But for some reason, when I added some data to fauna-dev - I don't see this new data at FaunaDB Plugins in VSCode. If I click refresh button at top right - it just happens nothing. Not even loader bar thing appears.

Temporary fix would be closing Visual Studio Code and re-open it again and then the data are visible - which kinda... sucks lol

Am I missing something here?

Been running fauna's docker by:

docker run --rm --name faunadb -p 8443:8443 -p 8084:8084 fauna/faunadb

I'm using 1.7.1 Fauna from VSCode Marketplace. Visual Studio Code: 1.56 macOS 11.2.3 (Apple M1)

Any tips or help are welcome! :)

Thanks,

Yan

YanDevDe avatar May 23 '21 00:05 YanDevDe

Don't you have any error messages at the bottom right corner? Could you try following and describe what you get

  1. create a collection
CreateCollection({name: "test"})
  1. click the refresh button. does test collection appear at the right sidebar? if no, try step 3
  2. run paginate collection query. does test collection present at the response?
Paginate(Collections())

fireridlle avatar May 24 '21 06:05 fireridlle

The refresh did nothing, so yeah, I get no error messages either too.

I can add normally with CreateCollection({name: "test"})and I can receive Paginate(Collections()), but the refresh still doesn't work, it just... do absolutely nothing.

image

After I entered everything, I clicked on refresh icon and it does nothing again. It only show once when Visual Studio Code has started for the first time after closing it. (Hence login.js1, login.js2, login.js3, login.js4 is showing here)

YanDevDe avatar May 24 '21 12:05 YanDevDe

When I restart VSCode, then this is shown

image

However, it doesn't restart still + only updated/works once when running VSCode as new window.

YanDevDe avatar May 24 '21 12:05 YanDevDe

Does it has something to do with GRAPHQL? I don't use GraphQL so I'm not quite sure if this is the issue.

FAUNA_GRAPHQL_HOST=http://localhost:8084/graphql

YanDevDe avatar May 24 '21 12:05 YanDevDe

@YanDevDe have you deleted databases login.js1, login.js2 etc..? are not shown on the second screen. have you faced the same issue with db.fauna.com?

fireridlle avatar May 24 '21 12:05 fireridlle

Yes, I've deleted login.js1 etc because this was from test from fauna-blueprint (and it auto-removed again in test). Sorry for the confusion.

db.fauna.com with following .faunarc

FAUNA_ADMIN_KEY=<fauna secret key from fauna.com>

Also lists the database (with demo data) after VSCode restart - but it doesn't refresh here either too.

image

YanDevDe avatar May 24 '21 12:05 YanDevDe

I have probably the same issue, refresh doesnt show newly created documents

hugomrdias avatar Jun 04 '21 12:06 hugomrdias