Start a conversation

Resolving "This cannot be parsed" Warning in G2 Item-Configuration

Overview

The warning "This cannot be parsed" occurs when configuring item-configuration in G2 with multiple mouse gestures differing only by modifier keys (Shift, Control, Alt) for the same action on the same item types. This is due to G2's inability to disambiguate these gestures internally. Solutions include using a single modifier per gesture, different gestures, or a mouse-tracking procedure.

Solution

Follow these steps to resolve the warning:

  1. Use Only One Modifier Per Gesture:
    • Define gestures with a single modifier key per action per item type.
    • Example:
      • Pressing Shift + double-clicking the left mouse button on any selectable-object implies open-so;
      • Pressing Shift + double-clicking the left mouse button on any sfc-msg implies edit;
  2. Use Different Gestures:
    • Instead of using all modifier keys with double-click, use combinations like:
    • Shift + single-click
    • Control + right-click
  3. Employ a Mouse-Tracking Procedure:
    • For handling all modifier variations, use a mouse-tracking procedure to manage modifiers in code.

Verification:

  • Test each configuration change to ensure no warnings appear.
  • Confirm that the desired actions are executed correctly with the new configurations.

Note: If issues persist, consider consulting with the development team for further assistance.

Frequently Asked Questions

1. How do I know if this warning applies to my configuration?
You'll see the error message "This cannot be parsed" when using multiple mouse gestures that only differ by modifier keys for the same action on the same item types in G2.
2. What if I need to use multiple modifiers for the same action?
Consider using a mouse-tracking procedure to handle modifiers in code, allowing for more flexible gesture definitions.
3. The warning persists after making changes. What should I check?
Ensure that each gesture uses only one modifier per action per item type, and verify that all syntax and class names are correct and match your knowledge base.
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments