babakks / vscode-juju-charmcraft-ide

VS Code extension for Juju Charm development
MIT License
4 stars 1 forks source link

Extension doesn't pick up action #13

Closed kian99 closed 11 months ago

kian99 commented 1 year ago

I think I'm seeing an unexpected error from the extension. It's reporting an "undefinedEvent" for an action. The offending line is the following:

        # create-authorization-model action
        self.framework.observe(
            self.on.create_authorization_model_action,
            self._on_create_authorization_model_action,
        )

Screenshot from 2023-10-12 11-04-16

Screenshot from 2023-10-12 11-04-35

Inside actions.yaml

create-authorization-model:
  description: |
    Creates the authorization model using the content of the
    specified file and returns the authorization model ID.
  params:
    model:
      type: string
      description: |
        The JSON string containing the authorization model.
  required: [model]
babakks commented 1 year ago

Thanks for reporting this @kian99. Could you please confirm the error shows when there's no line break (i.e., when the entire framework.observe call is in a single line)?

kian99 commented 1 year ago

Yes, the issue remains even with everything on the same line

babakks commented 11 months ago

The cause of this bug is still unknown. I'll close it for now, but will reopen when we had more clues.

Romek-cloud commented 2 months ago

Path