editor icon indicating copy to clipboard operation
editor copied to clipboard

Editor auto-completion is not working

Open 0zl opened this issue 1 year ago • 10 comments

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):

  • OS: Windows 11
  • App Version: 2.7.11

Additional context

  • I have tried to re-create and delete the project, and it's still not showing any auto-completion.
  • I enabled all Individual Items and Holiday, Beta API, and Experimental Molang features when creating the project.
  • Bridge. is installed in C:/Program Files directory.
  • I love ice cream and sorry for my bad eng.

0zl avatar Feb 23 '24 04:02 0zl

Could you share your dependencies in your BP manifest?

outercloudstudio avatar Feb 23 '24 15:02 outercloudstudio

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)
{
	"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"
		}
	]
}

0zl avatar Feb 23 '24 19:02 0zl

Did you enable the scripting API experiment?

outercloudstudio avatar Feb 23 '24 20:02 outercloudstudio

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 avatar Feb 23 '24 21:02 0zl

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"
		}
		...

0zl avatar Feb 23 '24 22:02 0zl

What's your target format version?

outercloudstudio avatar Feb 23 '24 22:02 outercloudstudio

What's your target format version?

my metadata format version is 2

0zl avatar Feb 23 '24 22:02 0zl

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

outercloudstudio avatar Feb 23 '24 22:02 outercloudstudio

an the target format version defined in your project config.

Ohh my bad!, it's 1.20.60

Full config.json (click to expand)
{
	"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"
				}
			]
		]
	}
}

0zl avatar Feb 23 '24 23:02 0zl

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

outercloudstudio avatar Feb 24 '24 01:02 outercloudstudio