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

Editor auto-completion is not working #1075

Open 0zl opened 7 months ago

0zl commented 7 months ago

Summary Auto-Completion on the editor is not working or not showing properly.

To Reproduce Steps to reproduce the behavior:

  1. Open main.js and import any of Minecraft scripting api.
  2. Write the imported api.

Observed behavior The suggestion/auto-completion small popups are not showing, or even not working.

Expected behavior It should behave similar like VSCode with proper auto-completion/suggestion.

Screenshots / File Attachments image image

Platform (please complete the following information):

Additional context

outercloudstudio commented 7 months ago

Could you share your dependencies in your BP manifest?

0zl commented 7 months ago

Could you share your dependencies in your BP manifest?

It's untouched, generated by Bridge. itself.

    ...
    "dependencies": [
        {
            "module_name": "@minecraft/server",
            "version": "1.0.0-beta"
        },
        {
            "module_name": "@minecraft/server-gametest",
            "version": "1.0.0-beta"
        },
        {
            "module_name": "@minecraft/server-ui",
            "version": "1.0.0-beta"
        },
        {
            "module_name": "@minecraft/server-admin",
            "version": "1.0.0-beta"
        },
        {
            "module_name": "@minecraft/server-net",
            "version": "1.0.0-beta"
        }
    ]
Full manifest.json (click to expand) ```json { "format_version": 2, "metadata": { "authors": [ "Cat Loaf" ], "generated_with": { "bridge": [ "2.7.11" ], "dash": [ "github:bridge-core/dash-compiler#8fa35c73292f6382747d0f411fca26431a6d2c8e" ] } }, "header": { "name": "pack.name", "description": "pack.description", "min_engine_version": [ 1, 20, 60 ], "uuid": "28bdc8aa-26bb-4814-acfb-98ae3f5853c6", "version": [ 1, 0, 0 ] }, "modules": [ { "type": "data", "uuid": "082f1c49-ae26-4fc9-8680-9281ae73918e", "version": [ 1, 0, 0 ] }, { "type": "script", "language": "javascript", "uuid": "b048937b-eb6a-416d-b26b-ad8cd6391c65", "entry": "scripts/main.js", "version": [ 1, 0, 0 ] } ], "dependencies": [ { "module_name": "@minecraft/server", "version": "1.0.0-beta" }, { "module_name": "@minecraft/server-gametest", "version": "1.0.0-beta" }, { "module_name": "@minecraft/server-ui", "version": "1.0.0-beta" }, { "module_name": "@minecraft/server-admin", "version": "1.0.0-beta" }, { "module_name": "@minecraft/server-net", "version": "1.0.0-beta" } ] } ```
outercloudstudio commented 7 months ago

Did you enable the scripting API experiment?

0zl commented 7 months ago

scripting API experiment?

Sorry but, I'm not sure what do you mean by scripting API experiment...

But when creating a project, I'm enabling 3 experimental gameplays with BR and RP enabled. image

I also enabling the Set project for use with Bedrock Dedicated Servers

0zl commented 7 months ago

Oh hey, mine got it working. I changed my dependencies version to using latest beta apis from https://wiki.bedrock.dev/scripting/starting-scripts.html#create-your-first-project

        ...
        {
            "module_name": "@minecraft/server",
            "version": "1.9.0-beta"
        },
        {
            "module_name": "@minecraft/server-gametest",
            "version": "1.0.0-beta"
        },
        {
            "module_name": "@minecraft/server-ui",
            "version": "1.2.0-beta"
        },
        {
            "module_name": "@minecraft/server-admin",
            "version": "1.0.0-beta"
        },
        {
            "module_name": "@minecraft/server-net",
            "version": "1.0.0-beta"
        }
        ...
outercloudstudio commented 7 months ago

What's your target format version?

0zl commented 7 months ago

What's your target format version?

my metadata format version is 2

outercloudstudio commented 7 months ago

I mean the target format version defined in your project config.

0zl commented 7 months ago

an the target format version defined in your project config.

Ohh my bad!, it's 1.20.60

Full config.json (click to expand) ```json { "type": "minecraftBedrock", "name": "Lunaria", "namespace": "lunaria", "authors": [ "Cat Loaf" ], "targetVersion": "1.20.60", "description": "", "experimentalGameplay": { "holidayCreatorFeatures": true, "creationOfCustomBiomes": false, "upcomingCreatorFeatures": false, "enableGameTestFramework": true, "experimentalMolangFeatures": true, "educationEdition": false }, "bdsProject": true, "packs": { "behaviorPack": "./BP", "resourcePack": "./RP" }, "worlds": [ "./worlds/*" ], "compiler": { "plugins": [ "generatorScripts", "typeScript", "entityIdentifierAlias", "customEntityComponents", "customItemComponents", "customBlockComponents", "customCommands", "moLang", "formatVersionCorrection", [ "simpleRewrite", { "packName": "Lunaria" } ] ] } } ```
outercloudstudio commented 7 months ago

I'll do some testing. It seems like you should be getting autocompletions. I'll get back to you soon.