GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [doc] Update the docs on adding a new language by atrosinenko · Pull Request #2051 · pmd/pmd

Conversation

@atrosinenko

@atrosinenko atrosinenko commented Oct 5, 2019

Copy link
Copy Markdown
Contributor

Update the docs on adding a new language support for PMD as I understood it while trying to add a support for Modelica. Add a note on using Rule Designer to debug a parser.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

JKRT reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
adangel
adangel reviewed Oct 5, 2019
View reviewed changes
Comment thread docs/pages/pmd/devdocs/major_contributions/adding_new_language.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/pages/pmd/devdocs/major_contributions/adding_new_language.md Outdated

@adangel adangel Oct 5, 2019

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which zip-archive to you mean? Do you mean the normal pmd binary distribution? Then the URL would be https://github.com/pmd/pmd/releases and the file to download is "pmd-bin-.zip". The PMD binary distribution contains the rule designer.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@atrosinenko atrosinenko Oct 5, 2019

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! Do I get it right, it is merely built together with PMD from the main pmd repository. Then this step is not required at all and can be harmful (with respect to some strange bugs because of version mismatch). I just thought that since it resides in a separate repo, it is built separately, but then checked build artifact, and looks like Designer is there too :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@adangel adangel Oct 5, 2019

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It built seperately nowadays, but we ship the latest released version of the designer with the main PMD build. This should provide you a working combination of the two tools.

You can then e.g. update the designer by replacing the pmd-designer-x.y.z.jar in the lib folder, as described on the readme of the designer: https://github.com/pmd/pmd-designer/#updating
We try to keep them compatible version-wise, but bugs might happen.

The step would only be needed, if there is a newer pmd-designer version (like a self built latest snapshot), that is not yet shipped with the pmd-binary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@adangel adangel added this to the 6.19.0 milestone Oct 5, 2019
@adangel adangel changed the title [docs] Update the docs on adding a new language [doc] Update the docs on adding a new language Oct 5, 2019
@adangel adangel added the in:documentation Affects the documentation [doc] label Oct 5, 2019
@ghost

ghost commented Oct 5, 2019

Copy link
Copy Markdown
1 Message
📖 No java rules are changed!

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@atrosinenko

atrosinenko commented Oct 5, 2019

Copy link
Copy Markdown
Contributor Author

Since it is my view of how adding a new language is done in present PMD development state, it would probably evolve together with PR #2041, so it is kind of my notes/WIP for now :) It was done because it looks like the current documentation has gone out of sync with real PMD sources, so any clarifications are very useful.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel

adangel commented Oct 5, 2019

Copy link
Copy Markdown
Member

Thanks for updating the documentation! Then let's keep this PR as WIP as well and you can push more doc improvements to this PR. 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel adangel added the is:WIP For PRs that are not fully ready, or issues that are actively being tackled label Oct 5, 2019
@adangel adangel removed this from the 6.19.0 milestone Oct 5, 2019
@atrosinenko

atrosinenko commented Oct 6, 2019

Copy link
Copy Markdown
Contributor Author

Yes, it seems that just patching the generated AST nodes is much more convenient (when modifications are trivial)! 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@atrosinenko
[doc] Update docs on adding support for a new language
81512f2
@atrosinenko
atrosinenko force-pushed the docs-adding-new-language branch from 3eab1ba to 81512f2 Compare October 12, 2019 08:25
@adangel adangel removed the is:WIP For PRs that are not fully ready, or issues that are actively being tackled label Dec 18, 2019
@adangel adangel added this to the 6.21.0 milestone Dec 18, 2019
adangel added a commit that referenced this pull request Dec 18, 2019
@adangel
[doc] Update release notes, refs #2051
84c9cc8
@adangel
adangel merged commit 81512f2 into pmd:master Dec 18, 2019
@atrosinenko
atrosinenko deleted the docs-adding-new-language branch February 6, 2022 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adangel adangel adangel left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

in:documentation Affects the documentation [doc]

Projects

None yet

Milestone

6.21.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@atrosinenko @adangel
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.