Skip to content

Can't insert a AgileReview comment in code comment #5

Open

Description

Is it possible to add an Agile Review comment just in a line in a code comment? I didn't mark the lines 3-8 it's just a code comment and the plugin inserts two Agile Review comments (c2), see picture.
commentwarning

Thank you, regards

Activity

  1. maybeec commented on Feb 14, 2018

    @maybeec
    Member

    No, you cannot comment a single line in a multi-line comment due to the fact, that the AgileReview comment hooks are also introduced by the same syntax, which would break multi-line comments.

    The "two comments" added by agilereview are just the starting and ending tag for the AgileReview comment. They automatically wrap the whole comment as of the previous described issue.

    Introducing the comment hooks in the code, we enabled refactoring safety. You can move the file, write new code into the file without loosing track of the AgileReview comments.

  2. biancode commented on Mar 1, 2018

    @biancode

    Hi Malte,

    a suggestion on that topic - shouldn't the end of the tag be a group of characters to parse exactly?
    like: /*-?|SAPFin|lands|c1|?-*/

    In you up to date release we have ?*/ for end tag, which also could come from a question in comments like /How are you?/

    What do you think?

    cya
    Klaus

  3. maybeec commented on Mar 1, 2018

    @maybeec
    Member

    No, the tags have to have the complete structure including the pipes separating the metadata to be interpreted by AgileReview. It is most uncommon, that you will have such a structure.
    So your example of a question should not be handled by AgileReview in any case.

  4. biancode commented on Mar 1, 2018

    @biancode

    hm, but it looks like a wrong parsing for your tags, because of the smashing if I add two review comments in one file, which has regular comments inside

    grafik

    the above comment was added in line 79, but goes up where it is now

  5. maybeec commented on Mar 1, 2018

    @maybeec
    Member

    indeed, this warning and the upcoming adaption is nonsense and could be prevented. Can you raise an issue in https://github.com/AgileReview-Project/AgileReview-Legacy-Plugin as well? Thanks!

  6. biancode commented on Mar 1, 2018

    @biancode

    I've added the line 85 review before and than I added the line 79 and boom - all is marked and that is wrong

  7. maybeec commented on Mar 1, 2018

    @maybeec
    Member

    please describe the steps to reproduce and the failure and intended behavior in the new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions