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

OpenRewrite for code migration #119

Closed
phodal opened this issue Oct 11, 2024 · 0 comments
Closed

OpenRewrite for code migration #119

phodal opened this issue Oct 11, 2024 · 0 comments
Assignees

Comments

@phodal
Copy link
Owner

phodal commented Oct 11, 2024

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Integration with OpenRewrite

Describe alternatives you've considered
https://www.jetbrains.com/help/idea/openrewrite.html
https://plugins.jetbrains.com/plugin/23814-openrewrite

Additional context
No

@phodal phodal self-assigned this Oct 11, 2024
phodal added a commit to shire-lang/shire-demo that referenced this issue Oct 12, 2024
phodal added a commit that referenced this issue Oct 12, 2024
- Enhance RunCodeProcessor to handle retry running of code files.
- Rename and generalize createDefaultTestConfigurations to createDefaultConfigurations in FileRunService.
- Introduce a retryRun method in FileRunService to handle unsupported file types.
phodal added a commit that referenced this issue Oct 12, 2024
Add the new OpenRewrite toolset, including service implementation and plugin configuration.
This allows for running OpenRewrite scripts within the IDE and integrating it with the existing codebase.
Also includes necessary adjustments to the RunCodeProcessor and WiremockFunction, along with project and settings updates.
phodal added a commit that referenced this issue Oct 12, 2024
This commit renames the `openwrite` project to `openrewrite` and updates all references accordingly. The changes include updating build and settings files, renaming source files, and adjusting plugin.xml and project configuration files to reflect the new name. Additionally, there are improvements to the `OpenRewriteFileRunService` class, including a more specific check for applicable files and updates to the run configuration process.
@phodal phodal closed this as completed in c667354 Oct 12, 2024
@phodal phodal reopened this Oct 12, 2024
phodal added a commit that referenced this issue Oct 12, 2024
Update `OpenRewriteFileRunService` to handle the absence of OpenRewrite configuration by dynamically creating one. This prevents a runtime exception and allows for a more seamless execution flow.
phodal added a commit that referenced this issue Oct 12, 2024
…vice access #119

Enhance the OpenRewriteFileRunService by utilizing reflection to gain access to the OpenRewriteRecipeService and its methods. This allows for retrieving local descriptors and setting active recipes in the OpenRewriteRunConfiguration, improving the overall functionality of the toolset.
@phodal phodal closed this as completed in 0cae453 Oct 12, 2024
phodal added a commit that referenced this issue Oct 12, 2024
…119

Wrapped potentially throwing code blocks in try-catch blocks to gracefully handle exceptions. Additionally, simplified the lambda expression and removed redundant else statements to enhance code readability in OpenRewriteFileRunService.kt.
iptton pushed a commit to iptton/shire that referenced this issue Dec 6, 2024
phodal#119

Update the Shire language compiler to include argument support for foreign function calls. This modification allows for passing a list of arguments to external scripts, facilitating more versatile interactions. The changes include:

- Amending the `ForeignFunctionProcessor` to process and prepare arguments for the foreign function call.
- Enhancing the `FileRunService` to accept and pass along arguments to the external scripts when executing them via CLI.
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