a2aproject / a2aproject/a2a-java

[Bug]: ran into error code “0x80010135” when unzip the code on Windows 11

Đang mở
#464 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
490
Fork
172
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
55

Mô tả

### What happened?

A bug happened!

I downloaded the code zip (instead of git clone), and when I unzip the code, an error happened

The windows error code is: 0x80010135
And it seems the length of this file's path is way too long: MultiInstanceReplicationApp1AgentExecutorProducer.java

I did some searching. It turns out that the longgest path length in windows is 260 characters. The full path of this file is:

"a2a-java\extras\queue-manager-replicated\tests-multi-instance\quarkus-app-1\src\main\java\io\a2a\extras\queuemanager\replicated\tests\multiinstance\app1\MultiInstanceReplicationApp1AgentExecutorProducer.java"

**The length of this string is as high as 207, which is very close to the system upper limit.**

An easy solution is enable windows' long path support:
1. Win + R: regedit
2. find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
3. create LongPathsEnabled DWORD (32-bit)
4. set the value to 1
5. reboot the system

### Relevant log output

```shell

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.