Metadata generator fails to generate proper types and does not add method to runtime
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript, objective-c
研究方向
將 issue 中的 Objective-C 宣告與 typings/objc!CouchbaseLite.d.ts#L1965 處產生的宣告以及 L1963 處附近的 andExpression 項目進行比較。追蹤此方法的 metadata-generator 和 runtime 路徑;完成的標準是產生的型別保留 and 引數標籤,且該方法可在 runtime 中使用。
由索引模型根據 Issue 內容生成。
描述
Since always, we are facing a small problem in couchbase plugin API. There is a certain method that is not parsed properly by metadata generator for a strange reason.
This is the definition of method in obj-c:
#pragma mark - Aggregate operators:
/**
Creates a between expression that evaluates whether or not the current expression is
between the given expressions inclusively.
@param expression1 The inclusive lower bound expression.
@param expression2 The inclusive upper bound expression.
@return The between expression.
*/
- (CBLQueryExpression*) between: (CBLQueryExpression*)expression1 and: (CBLQueryExpression*)expression2;
This is the typing that generator creates: https://github.com/triniwiz/nativescript-plugins/blob/master/packages/nativescript-couchbase/typings/objc!CouchbaseLite.d.ts#L1965
You'll notice it's missing and argument label.
Also, this method doesn't exist in runtime at all even if one tries to call between or betweenAnd.
There is also a valid method that happens to be named andExpression and I'm wondering if generator gets confused:
https://github.com/triniwiz/nativescript-plugins/blob/master/packages/nativescript-couchbase/typings/objc!CouchbaseLite.d.ts#L1963
- 主要語言
- JavaScript
- 星號
- 150
- 分支
- 44
- 平均合併
- 1 天 1 小時
- 30 天內合併 PR
- 10
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NativeScript/ios 的其他 Issue
-
難度 5/5 一週以上 新手友好度 38/100
NativeScript/ios#459 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 25/100
NativeScript/ios#445 ·
維護者通常 1 天內回覆
-
難度 3/5 3-5 天 新手友好度 66/100
NativeScript/ios#414 ·
維護者通常 1 天內回覆
-
question
難度 4/5 3-5 天 新手友好度 34/100
NativeScript/ios#364 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 35/100
NativeScript/ios#355 ·
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
invoiceninja/invoiceninja#13320 ·
維護者通常 1 天內回覆
-
NoCode.vue, Task.vue: replace explicit `any` with real types可能已有人在做 @prayas-bit 今天認領。 未關閉area/frontend good first issue kind/cooldown
難度 2/5 1-3 小時 新手友好度 67/100
kestra-io/kestra#20347 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
ubuntu/gnome-shell-extension-appindicator#676 · 1 則留言 ·