bridge-core / editor

Next generation of bridge., the Minecraft Add-On editor
https://editor.bridge-core.app
GNU General Public License v3.0
141 stars 41 forks source link

My auto-completion doesn't work... #1118

Open DakioCode opened 4 months ago

DakioCode commented 4 months ago

Summary Auto-Completion on the editor is not working.

To Reproduce

  1. Open a file (e.g. main.js) and import any of Minecraft scripting api.

Observed behavior The auto-completion popups are not showing. Expected behavior It should behave similar like VSCode with auto-completion.

Screenshots / File Attachments image

image

Platform (please complete the following information):

Additional context

outercloudstudio commented 4 months ago

What does your manifest look like?

DakioCode commented 4 months ago

I just changed the dependencies :

{
    "format_version": 2,
    "metadata": {
        "authors": [
            "bridge."
        ],
        "generated_with": {
            "bridge": [
                "2.7.17"
            ],
            "dash": [
                "github:bridge-core/dash-compiler#8fa35c73292f6382747d0f411fca26431a6d2c8e"
            ]
        }
    },
    "header": {
        "name": "Addon1",
        "description": "",
        "min_engine_version": [
            1,
            20,
            70
        ],
        "uuid": "2595a54c-4a62-4830-96d5-460568adb640",
        "version": [
            1,
            0,
            0
        ]
    },
    "modules": [
        {
            "type": "data",
            "uuid": "f1d567a7-ef56-400f-ad14-7dd9a28f3ff7",
            "version": [
                1,
                0,
                0
            ]
        },
        {
            "type": "script",
            "language": "javascript",
            "uuid": "52a3ae43-1779-49b1-bec6-dccad4634b00",
            "entry": "scripts/main.js",
            "version": [
                1,
                0,
                0
            ]
        }
    ],
    "dependencies": [
        {
            "uuid": "83304554-5d8b-4e1b-9721-61812a75ec02",
            "version": [
                1,
                0,
                0
            ]
        },
        {
            "module_name": "@minecraft/server",
            "version": "1.11.0-beta"
        },
        {
            "module_name": "@minecraft/server-gametest",
            "version": "1.0.0-beta"
        },
        {
            "module_name": "@minecraft/server-ui",
            "version": "1.2.0-beta"
        }
    ]
}
DakioCode commented 4 months ago

?

outercloudstudio commented 4 months ago

What format version have you defined in your project config?

DakioCode commented 4 months ago

image

outercloudstudio commented 4 months ago

I meant target format version.

DakioCode commented 4 months ago

Where can I find it ?

outercloudstudio commented 4 months ago

You can find it within your project config file.

DakioCode commented 4 months ago

This ? image

outercloudstudio commented 4 months ago

1.11-beta requires a target format version of at least 1.20.80

DakioCode commented 4 months ago

Ok and so I just have to change this version and it works?