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

Doxygen doesnt generated when function has attribute specifier #10995

Closed
Disservin opened this issue May 23, 2023 · 2 comments
Closed

Doxygen doesnt generated when function has attribute specifier #10995

Disservin opened this issue May 23, 2023 · 2 comments
Assignees
Labels
bug Feature: Doc comments An issue related to code comments shown in hover, completion, and signature help. fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix Works in VS So we'd need to fix it for VS Code to reach parity.
Milestone

Comments

@Disservin
Copy link

Environment

Version: 1.78.2 (user setup)
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No

  • C/C++ Extension Version: v1.15.4

Bug Summary and Steps to Reproduce

Bug Summary:
Doxygen is not auto generated when function has a attribute specifier.

Steps to reproduce:

[[nodiscard]] int f() { return 1; }

int main(int argc, char const *argv[]) {
  int x = f();
  return 0;
}
  1. Start typing /// above f and nothing happens. Works just fine for main..

Expected behavior:

/// @brief 
/// @return 
[[nodiscard]] int f() { return 1; }

/// @brief 
/// @param argc 
/// @param argv 
/// @return 
int main(int argc, char const *argv[]) {
  f();
  return 0;
}

Configuration and Logs

LSP: textDocument/didChange: file:///users/user/Downloads/test.cpp
LSP: cpptools/textEditorSelectionChange
LSP: textDocument/completion: file:///users/user/Downloads/test.cpp (id: 738)
auto_complete::handle_completion: file:///users/user/Downloads/test.cpp (1:2)
LSP: cpptools/getFoldingRanges: file:///users/user/Downloads/test.cpp (id: 739)
LSP: textDocument/didChange: file:///users/user/Downloads/test.cpp
LSP: cpptools/textEditorSelectionChange
LSP: textDocument/completion: file:///users/user/Downloads/test.cpp (id: 740)
auto_complete::handle_completion: file:///users/user/Downloads/test.cpp (1:3)
LSP: cpptools/getFoldingRanges: file:///users/user/Downloads/test.cpp (id: 741)
LSP: cpptools/getCodeActions: file:///users/user/Downloads/test.cpp (id: 742)
LSP: cpptools/getSemanticTokens: file:///users/user/Downloads/test.cpp (id: 743)
LSP: cpptools/getDocumentSymbols: file:///users/user/Downloads/test.cpp (id: 744)
  tag parsing file: C:\Users\user\Downloads\test.cpp
LSP: textDocument/didChange: file:///users/user/Downloads/test.cpp
LSP: cpptools/textEditorSelectionChange
LSP: textDocument/completion: file:///users/user/Downloads/test.cpp (id: 745)
auto_complete::handle_completion: file:///users/user/Downloads/test.cpp (1:4)
LSP: cpptools/getFoldingRanges: file:///users/user/Downloads/test.cpp (id: 746)
LSP: cpptools/getCodeActions: file:///users/user/Downloads/test.cpp (id: 747)
LSP: cpptools/getDocumentSymbols: file:///users/user/Downloads/test.cpp (id: 748)
  tag parsing file: C:\Users\user\Downloads\test.cpp
LSP: cpptools/getInlayHints: file:///users/user/Downloads/test.cpp (id: 749)
Checking for syntax errors: C:\Users\user\Downloads\test.cpp
Queueing IntelliSense update for files in translation unit of: C:\Users\user\Downloads\test.cpp
sending 1 changes to server
sending 1 changes to server
sending 1 changes to server
Error squiggle count: 0
LSP: Request canceled by server (cpptools/getSemanticTokens, id: 743)
Update IntelliSense time (sec): 0.253
LSP: cpptools/getFoldingRanges: file:///users/user/Downloads/test.cpp (id: 750)
LSP: cpptools/getSemanticTokens: file:///users/user/Downloads/test.cpp (id: 751)


### Other Extensions

_No response_

### Additional context

_No response_
@sean-mcmanus sean-mcmanus self-assigned this May 26, 2023
@sean-mcmanus sean-mcmanus added bug Language Service Feature: Doc comments An issue related to code comments shown in hover, completion, and signature help. Works in VS So we'd need to fix it for VS Code to reach parity. labels May 26, 2023
@sean-mcmanus sean-mcmanus added this to the 1.16.1 milestone May 27, 2023
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label May 31, 2023
@michelleangela
Copy link
Contributor

Fixed in pre-release 1.16.1 https://github.com/microsoft/vscode-cpptools/releases/tag/v1.16.1.

@michelleangela
Copy link
Contributor

Fix is now available in release version 1.16.2.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Feature: Doc comments An issue related to code comments shown in hover, completion, and signature help. fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix Works in VS So we'd need to fix it for VS Code to reach parity.
Projects
None yet
Development

No branches or pull requests

3 participants