Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Camel] Save action breaks the camel file #4380

Open
iliyan-velichkov opened this issue Oct 21, 2024 · 0 comments
Open

[Camel] Save action breaks the camel file #4380

iliyan-velichkov opened this issue Oct 21, 2024 · 0 comments

Comments

@iliyan-velichkov
Copy link
Contributor

iliyan-velichkov commented Oct 21, 2024

Editor detects changes when there are no such changes and saving the file results in broken camel file.
In the following screen recording I'm just opening the camel file and clicking on some step fields without modifying them.
However, the editor detects changes and when I save the file using CMD+S the camel file doesn't work anymore. It contains invalid id for the step.

issue-on-save.mov

It looks. that changes are detected only if I select the id field of the step:

id-checked.mov
id-field-breaks-the-editor.mov

Sometimes the change of id field doesn't break the yaml file like in the example bellow:

id-changed-yaml-ok.mov

Initial camel file version:

- route:
    id: route-1927
    nodePrefixId: route-8bc
    from:
      id: from-fbe0
      description: Expose testPath
      uri: rest
      parameters:
        method: get
        path: testPath
      steps:
        - log:
            id: log-a37e
            description: Log started
            message: 'Execution started with body: ${body}'
            loggingLevel: INFO
            logName: CamelLogger
        - split:
            id: split-9dd8
            expression:
              simple:
                id: simple-3b39
                expression: ${body}
            steps:
              - log:
                  id: log-03a1
                  description: Log in split
                  message: Log in split
                  loggingLevel: INFO
                  logName: CamelLogger
        - log:
            id: log-cded
            description: Log completed
            message: Completed!
            loggingLevel: INFO
            logName: CamelLogger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant