Error Occurs When Following Instructions in development.md
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- node.js, typescript, webpack
- Lĩnh vực
- build-system, devtools
Hướng nghiên cứu
Bắt đầu với development.md và tái hiện lỗi bằng script/bootstrap, npm i và npm run build -ws. Kiểm tra src/context-providers/secrets.ts quanh dòng 138 và src/workflow/languageServer.ts quanh dòng 6, sau đó so sánh các bước cài đặt dependency với các lỗi TypeScript được báo cáo. Hoàn tất khi quá trình thiết lập được ghi lại hoàn thành và các workspaces build thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
Upon following the instructions in the development.md file for creating my own local development environment, after running npm run build -ws it begins building the workspaces and then eventually fails.
The first error that occurs is:
src/context-providers/secrets.ts:138:7 - error TS2769: No overload matches this call.
Overload 1 of 9, '(route: keyof PaginatingEndpoints, parameters: { per_page?: number | undefined; cursor?: string | undefined; redelivery?: boolean | undefined; } | { per_page?: number | undefined; page?: number | undefined; } | ... 219 more ... | ({ ...; } & { ...; }), mapFn: MapFunction<...>): Promise<...>', gave the following error.
Argument of type '{ (params?: (RequestParameters & Omit<ToOctokitParameters<{ parameters: { query?: { per_page?: number | undefined; page?: number | undefined; } | undefined; path: { owner: string; repo: string; }; }; responses: { ...; }; }>, "baseUrl" | ... 1 more ... | "mediaType">) | undefined): Promise<...>; defaults: <O extends ...' is not assignable to parameter of type 'keyof PaginatingEndpoints'.
Overload 2 of 9, '(request: RequestInterface<object>, parameters: string, mapFn: MapFunction<NormalizeResponse<OctokitResponse<any, number>>, StringData[]>): Promise<...>', gave the following error.
Argument of type '{ (params?: (RequestParameters & Omit<ToOctokitParameters<{ parameters: { query?: { per_page?: number | undefined; page?: number | undefined; } | undefined; path: { owner: string; repo: string; }; }; responses: { ...; }; }>, "baseUrl" | ... 1 more ... | "mediaType">) | undefined): Promise<...>; defaults: <O extends ...' is not assignable to parameter of type 'RequestInterface<object>'.
The types of 'defaults(...).defaults(...).endpoint.DEFAULTS' are incompatible between these types.
Type 'object & O & O & import("/Users/nico/vscode/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/RequestParameters").RequestParameters & { ...; }' is not assignable to type 'object & O & O & import("/Users/nico/vscode/node_modules/@octokit/types/dist-types/RequestParameters").RequestParameters & { baseUrl: string; method: import("/Users/nico/vscode/node_modules/@octokit/types/dist-types/RequestMethod").RequestMethod; url?: string | undefined; headers: import("/Users/nico/vscode/node_mod...'.
Type 'object & O & O & RequestParameters & { baseUrl: string; method: RequestMethod; url?: string | undefined; headers: RequestHeaders & { ...; }; mediaType: { ...; }; }' is not assignable to type '{ baseUrl: string; method: RequestMethod; url?: string | undefined; headers: RequestHeaders & { accept: string; "user-agent": string; }; mediaType: { format: string; previews: string[]; }; }'.
The types of 'mediaType.previews' are incompatible between these types.
Type 'string[] | undefined' is not assignable to type 'string[]'.
Type 'undefined' is not assignable to type 'string[]'.
138 octokit.actions.listRepoSecrets,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The last messages in my console are:
ERROR in /Users/nico/vscode/vscode-github-actions/src/workflow/languageServer.ts
6:40-73
[tsl] ERROR in /Users/nico/vscode/vscode-github-actions/src/workflow/languageServer.ts(6,41)
TS2307: Cannot find module '@actions/languageserver/request' or its corresponding type declarations.
18 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.97.0 compiled with 18 errors in 5492 ms
npm error Lifecycle script `build` failed with error:
npm error code 1
npm error path /Users/nico/vscode/vscode-github-actions
npm error workspace @github/vscode-github-actions@0.27.0
npm error location /Users/nico/vscode/vscode-github-actions
npm error command failed
npm error command sh -c webpack --mode production
Here is a pastebin of the full console output: https://pastebin.com/mSmvakEM
To Reproduce
Steps to reproduce the behavior (follow instructions in development.md)
mkdir ~/vscode
cd ~/vscode
git clone https://github.com/github/vscode-github-actions.git # Note I used `git clone` instead of `gh repo clone`
cd vscode-github-actions
script/bootstrap
cd ~/vscode
npm i
npm run build -ws
When this threw an error, I followed the instructions further:
If npm run build -ws fails because packages are not installed correctly with npm i, re-run script/bootstrap and run npm ci to get working packages.
cd vscode-github-actions
script/bootstrap
cd ~/vscode
npm install
npm ci
Expected behavior
According to the development.md file, setting up the workspace should just work:
Launching and debugging the extension should just work.
So I should be able to just run these commands, install the necessary packages, and build the necessary workspaces.
Screenshots
Extension Version
According to release-notes.txt the version is 0.25.6
- Ngôn ngữ chính
- TypeScript
- Star
- 661
- Fork
- 214
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/vscode-github-actions
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
github/vscode-github-actions#627 · 1 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
github/vscode-github-actions#630 ·
-
long work Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
github/vscode-github-actions#628 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
github/vscode-github-actions#625 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
github/vscode-github-actions#621 · 3 bình luận ·
Tất cả issue của github/vscode-github-actions
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
mksglu/context-mode#1200 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anthropics/claude-code#96687 ·
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
AOSSIE-Org/DebateAI#582 · 2 bình luận ·