You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/10/01 10:52:19 UTC
[PR] chore: camel-jbang - source editor: problems marked when a file opens, placeholder values and bean jumps, usages of an endpoint [camel]
davsclaus opened a new pull request, #27200:
URL: https://github.com/apache/camel/pull/27200
_Claude Code on behalf of davsclaus_
Three source editor improvements: the editor now tells you more about a line from the rest of the project.
### 1. Problems are marked as soon as a file opens
Before, the problems of a route showed only in the editor, and only after the first change. Now a Camel file (YAML, Java, XML routes and properties) is checked once when it loads:
- the view marks problem lines with a red `✗`;
- the title shows `errors: N`;
- the panel at the bottom shows the problem of the selected line;
- **F9** goes to the next problem.
The editor (F4) starts with the same problems, before the first change. Process-sourced views (a running integration's route dump) are not checked.
### 2. Placeholder values and bean jumps in the quick doc
The quick doc of a line now starts with what the project knows about it:
- **Placeholders:**
- `{{refund.period}} = 2000 (application.properties)`;
- for a key that is not set, the default it falls back to (`{{key:default}}`) or that it is not in the project's `.properties` files;
- `{{env:X}}` and `{{sys:X}}` are said to come from the environment / JVM.
- **Beans:** `orderService (OrderService) is declared in OrderService.java:3 — Enter goes there`.
- A line that refers to a bean shows a `↵ name` jump link, and **Enter** goes to its declaration, as for the jump links between routes.
- Bean references: `bean:name`, `.bean(MyBean.class)`, `.bean("name")`, `.process(new X())`, `ref:` / `beanType:` in YAML and XML, `#class:` / `#type:`.
- Declarations: `@BindToRegistry`, `@Named`, `@Component`, `@Service`, `@Bean` (also fully qualified), and the beans of YAML and XML files, read by a new `ProjectBeans` index. The index looks at the project files at most every 2 seconds, as the quick doc asks on every frame.
### 3. Usages of an endpoint
**u** on a line with an endpoint lists its usages across the project: the routes that consume from it and the steps that send to it, in YAML, Java and XML. **Enter** goes there. It reuses the Go to Route popup, which now takes a list and a title (`Usages of seda:shipping (3)`). Before, a `from` showed only one of its callers as a reverse jump link.
### Tested
Live in the TUI, on a project with a Java route, two YAML routes and a bean class:
- a YAML file with an option typo shows `errors: 1` and the `✗` as it opens;
- the placeholder and bean docs show;
- Enter on `bean:orderService` opens `OrderService.java` at `@BindToRegistry`;
- `u` on `seda:shipping` lists its consumer and both producers, and opens the Java one at its line.
New test: `SourceEditorProjectInfoTest` (markers on open and F9, placeholders, bean references, bean jump links, usages). The full camel-jbang-plugin-tui module (1463) passes. F1 help and the doc page are updated. The Source Editor page in #27196 will get these too once both are in.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: camel-jbang - source editor: problems marked when a file opens, placeholder values and bean jumps, usages of an endpoint [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27200:
URL: https://github.com/apache/camel/pull/27200#issuecomment-5930075439
<!-- ci-tested-modules -->
:test_tube: **CI tested the following changed modules:**
- `docs`
- `dsl/camel-jbang/camel-jbang-plugin-tui`
---
<details><summary>:microscope: Scalpel shadow comparison — Scalpel: 2 of 697 tested, 1 compile-only — current: 2 all tested</summary>
[Maveniverse Scalpel](https://github.com/maveniverse/scalpel) detected **2 affected modules** (current approach: 2).
**Skip-tests mode would test 2 modules** (2 direct + 1 downstream), **skip tests for 1** (generated code, meta-modules)
<details><summary>Modules Scalpel would test (2)</summary>
- `camel-jbang-plugin-tui` ← dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/GotoRoutePopup.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/ProjectBeans.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/SourceEditAssist.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/SourceTab.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/SourceViewer.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/resources/tui/help/source.md, dsl/camel-jbang/camel-jbang-plugin-tui/src/test/java/org/apache/camel/dsl/jbang/core/commands/tui/SourceEditorProjectInfoTest.java
- `camel-launcher-container` ← downstream of org.apache.camel:camel-launcher
</details>
<details><summary>Modules with tests skipped (1)</summary>
- `camel-launcher`
</details>
> :information_source: Shadow mode — Scalpel observes but does not affect test execution. [Learn more](https://github.com/maveniverse/scalpel)
</details>
<details><summary>All tested modules (4 modules, 1m 40s total)</summary>
**Total reactor time:** 1m 40s
| Module | Duration | Status |
| --- | --- | --- |
| Camel :: JBang :: Plugin :: TUI | 44.1s | SUCCESS |
| Camel :: Launcher | 35.1s | SUCCESS |
| Camel :: Docs | 20.0s | SUCCESS |
| Camel :: Launcher :: Container | 0.8s | SUCCESS |
**Top 20 slowest modules:**
- `Camel :: JBang :: Plugin :: TUI` (44.1s)
- `Camel :: Launcher` (35.1s)
- `Camel :: Docs` (20.0s)
- `Camel :: Launcher :: Container` (0.8s)
</details>
---
:gear: [View full build and test results](https://github.com/apache/camel/actions/runs/36851812627)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: camel-jbang - source editor: problems marked when a file opens, placeholder values and bean jumps, usages of an endpoint [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27200:
URL: https://github.com/apache/camel/pull/27200#issuecomment-5929864022
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
* You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
:warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: camel-jbang - source editor: problems marked when a file opens, placeholder values and bean jumps, usages of an endpoint [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #27200:
URL: https://github.com/apache/camel/pull/27200
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org