apexskier / nova-json-language-server

Advanced JSON support for Nova
Other
4 stars 1 forks source link

Autocomplete not working? #321

Closed fm closed 10 months ago

fm commented 1 year ago

To reproduce

Steps to reproduce the behavior:

When editing the json file, Nova is not prompting me to autocomplete the fields, while VSCode does. I have a package.json and schema.json file.

I do notice VSCode has a settings.json file in the .vscode folder that may be the one being fetched for the autocomplete.

{
    "files.eol": "\n",
    "[json]": {
        "editor.formatOnSave": false,
        "editor.formatOnPaste": false
    },
    "json.schemas": [
        {
            "fileMatch": ["/companies/*.json"],
            "url": "./schema.json"
        },
        {
            "fileMatch": ["/supervisory-authorities/*.json"],
            "url": "./schema-supervisory-authorities.json"
        },
        {
            "fileMatch": ["/company-packs/*.json"],
            "url": "./schema-company-packs.json"
        }
    ]
}

Expected behavior

It was my impression this extension would help me replicate the VSCode behavior, if not, I'll close this issue!

Screenshots

VSCode: image

image

Nova image

image

This is the only autocomplete that pops up in Nova

image

Environment

Extension console output


JSON[12:32:31.318000] claimed lock

JSON[12:32:31.518000] installing: npm WARN old lockfile

JSON[12:32:31.519000] installing: npm WARN old lockfile The npm-shrinkwrap.json file was created with an old version of npm,

JSON[12:32:31.519000] installing: npm WARN old lockfile so supplemental metadata must be fetched from the registry.

JSON[12:32:31.520000] installing: npm WARN old lockfile

JSON[12:32:31.520000] installing: npm WARN old lockfile This is a one-time fix-up, please be patient...

JSON[12:32:31.522000] installing: npm WARN old lockfile

JSON[12:32:32.444000] installing: 

JSON[12:32:32.444000] installing: up to date in 962ms

JSON[12:32:32.449000] clearing lock

JSON[12:32:32.459000] activated

JSON[12:32:34.020000] registered schemas

Additional context

Add any other context about the problem here.

apexskier commented 10 months ago

⚠️ Archived: Although it was fun to build my nova extensions, I haven't ended up using Nova regularly and can't devote the time to maintenance. Feel free to reach out if you want to fork and start maintaining an alternative.