writer icon indicating copy to clipboard operation
writer copied to clipboard

Generated lines are not commented

Open mdavis199 opened this issue 2 years ago • 4 comments

The extension is generating remarkably informative text. But, oddly, none of the generated text is commented:

Language c++. Happens in in headers and cpp files. OS: Windows 10, VSCode 1.68.1

The output looks like this:

protected:
    A function that is called when the button is drawn.
    void draw_self() override;

mdavis199 avatar Jul 06 '22 17:07 mdavis199

@mdavis199 that's really weird because we do add comments to functions generated in C++. Do you know when docstring format you have selected?

handotdev avatar Jul 09 '22 16:07 handotdev

I tried them all. The formats I focused on were "Auto" and "Doxygen" (which I think is the default for CPP files.). At no time were the generated lines commented. I also tried disabling clang-format to see if that was the problem; but it made no difference either way.

mdavis199 avatar Jul 09 '22 16:07 mdavis199

I have exactly the same problem now, but it worked perfectly till last november. I have just tried reinstalling an old version of Mintlify but it does not fix the problem. Such a pity.

therealiacobina avatar Apr 05 '23 17:04 therealiacobina

@therealiacobina I had the same issue when i install v2.1.* or v2.2.*; I reinstalled v2.0 it worked fine.

v2.1 and v2.2

The code `int add(int a, int b){ return a+b; }` is defining a function named `add` that takes two integer parameters `a` and `b`. Inside the function, it adds the values of `a` and `b` together and returns the result.
int add(int a, int b){
  return a+b;
}

v2.0

/**
 * The function "add" takes two integers as input and returns their sum.
 * 
 * @param a The first parameter is "a", which is an integer.
 * @param b The parameter "b" is an integer that represents the second number to be added.
 * 
 * @return the sum of the two input integers, `a` and `b`.
 */
int add(int a, int b){
  return a+b;
}

Adam-Al-Rahman avatar Sep 02 '23 05:09 Adam-Al-Rahman