componentFailedToParse error

Đang mở
#388 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
swift, typescript
Lĩnh vực
cli, devtools

Hướng nghiên cứu

Start with the CLI’s component parsing path and the Swift parser invoked by swift run --package-path CodeConnect figma-swift; the issue does not identify the relevant source files or a failing test. Reproduce the command with verbose output and inspect where the parser exits with code 1. Done means identifying the parsing failure and providing a way to debug or fix it; the issue gives no expected behavior or resolution.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

API question
  • Code Connect CLI version: 1.4.3
  • Operating system: mac OS Tahoe
npx figma connect create "https://www.figma.com/design/ourURL?node-id=12345%3A2586&m=dev" --token=xx --verbose
Config file found, parsing CodeConnect using specified include globs
Fetching component information from Figma...
Parsing response
Generating Code Connect files...
Directory enabled for swift run command
Found Code Connect Swift package at CodeConnect, building parser binary. This may take a few minutes if this is the first time you've run Code Connect.
Running parser: swift run --package-path /Users/janedoe/.../CodeConnect figma-swift
Building for debugging...
[0/3] Write swift-version--58304C5D6DBC2206.txt
Build of product 'figma-swift' complete! (0.27s)
Error: componentFailedToParse
Failed to create: Parser exited with code 1
Please raise any bugs or feedback at https://github.com/figma/code-connect/issues.

How do I debug this error?
Figma MCP can fetch the info about the component just fine.

Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
126
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của figma/code-connect

Tất cả issue của figma/code-connect

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.