Almenon / Almenon/AREPL-vscode

#$save macro does not work in many cases

Đang mở
#53 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug help wanted
Ngôn ngữ chính
TypeScript
Star
301
Fork
46
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Currently I use deepcopy to save the state: https://docs.python.org/3.6/library/copy.html#copy.deepcopy

This means the types must be serializable by deepcopy, which unfortunately has some major limitations:

* Deepcopy cannot handle the following types:
> "This module does not copy types like module, method, stack trace, stack frame, file, socket, window, array, or any similar types"

* Imports are not saved (although you can still use imports in the saved section, the import will just happen twice)

* Conditional imports and imports in functions may not work

* File I/O does not work (TextIOWrapper is not serializable)

Please comment below if you run into any issues with #$save

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.