Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

IntelliSense errors with Parsing the .pb.h header file generated from the protobuffer proto file

オープン
#14,116 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, typescript
領域
devtools, tooling

調査の方向性

報告されている cStandard、cppStandard、intelliSenseMode の設定を使用して、最小限の .pb.h スニペットと PROTOBUF_NAMESPACE_OPEN に関する診断から始めます。protobuf-include.zip と、記載されている VS Code および C/C++ 拡張機能のバージョンを使って再現します。生成されたヘッダーにこの IntelliSense エラーが表示されなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug Language Service parser verified Visual Studio
Environment
  • OS and Version: CentOS7
  • VS Code Version: 1.98.2
  • C/C++ Extension Version: 1.29.3
Bug Summary and Steps to Reproduce

Bug Summary:
Opening the .pb.h header file generated from the .proto file of Protobuf, there is IntelliSense error: this declaration has no storage class or type specifier.

  1. My protobuf version is 3.6.0
  2. The minimal case might look like this:
#include <google/protobuf/port_def.inc>
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/port_def.inc>
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
}  // namespace internal
PROTOBUF_NAMESPACE_CLOSE
  1. Error displayed on macro PROTOBUF_NAMESPACE_OPEN

  2. The attachment here is the header file provided by protobuf
    protobuf-include.zip

Configuration and Logs
{
    "configurations": [
        {
            "name": "Linux",
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "cStandard": "c11",
            "cppStandard": "c++11",
            "intelliSenseMode": "linux-gcc-x64"
        }
    ],
    "version": 4
}
Other Extensions

No response

Additional context

No response

主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
1日 4時間
マージ済み PR(30日)
58

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/vscode-cpptools のほかの issue

microsoft/vscode-cpptools の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。