Almenon / Almenon/AREPL-vscode

#$save macro does not work in many cases

Abierto
#53 2 comentarios 0 reacciones 0 asignados Ver en GitHub
bug help wanted
Lenguaje dominante
TypeScript
Estrellas
301
Forks
46
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.