-
I am migrating to GLSP 2.0.0 and Theia 1.40.1. I can see the frontend initializing, but it fails to start the I post here and not in Theia because when I disable my GLSP extensions then Theia works perfectly fine, so I guess it has to do with my GLSP extensions. For the three classes, it fails in the following code (bundle.js): let CommandRegistry = class CommandRegistry {
...
onStart() {
const contributions = this.contributionProvider.getContributions(); Which leads to inversify delivering an function _validateActiveBindingCount(serviceIdentifier, bindings, target, container) {
...
case _bindings_binding_count__WEBPACK_IMPORTED_MODULE_3__.BindingCount.MultipleBindingsAvailable:
default:
if (!target.isArray()) {
var serviceIdentifierString = (0,_utils_serialization__WEBPACK_IMPORTED_MODULE_5__.getServiceIdentifierAsString)(serviceIdentifier);
var msg = _constants_error_msgs__WEBPACK_IMPORTED_MODULE_6__.AMBIGUOUS_MATCH + " " + serviceIdentifierString;
msg += (0,_utils_serialization__WEBPACK_IMPORTED_MODULE_5__.listRegisteredBindingsForServiceIdentifier)(container, serviceIdentifierString, getBindings);
throw new Error(msg);
} Error stack (1 of 3; the others are equivalent):
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @dmm9, unfortunately with the provided error stack trace it's kind of hard to pinpoint the issue. Could you please run:
|
Beta Was this translation helpful? Give feedback.
-
I have just tried another thing with a different result. In my project, I use different GLSP diagrams related to the same server/model. On the client side, I have created each glsp-client in a separate theia extension. To try, I have removed all glsp-theia extensions except one, and the frontend issue is gone. I can see the menu bar on the top part again, and pressing F1 triggers the command bar as well. There are still some migration-related issues on the java-server side which I haven't addressed yet, so I can't confirm it is working end-to-end. Having more than 1 glsp clients in theia was not an issue in version 1.x.x. Do you have any hint how to get this back on the road with GLSP v2.0.0? |
Beta Was this translation helpful? Give feedback.
Hi @dmm9,
sorry for the late reply. I missed your question.
This could be related to #804 (comment)
Did you try to disable the
enableCopyPaste
,enableLayoutCommands
andenableMarkerNavigationCommands
in one of your modules? This should avoid any issues with potential double registration and broken menus. Other than that I'm not aware of any known issues.