je-editor 0.0.168__py3-none-any.whl → 0.0.170__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- je_editor/pyside_ui/code/code_process/code_exec.py +4 -2
- je_editor/pyside_ui/main_ui/editor/editor_widget.py +1 -2
- je_editor/pyside_ui/main_ui/menu/python_env_menu/build_venv_menu.py +7 -4
- je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/build_debug_menu.py +1 -1
- je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/build_program_menu.py +1 -1
- je_editor/utils/file/save/save_file.py +1 -1
- {je_editor-0.0.168.dist-info → je_editor-0.0.170.dist-info}/METADATA +1 -1
- {je_editor-0.0.168.dist-info → je_editor-0.0.170.dist-info}/RECORD +11 -11
- {je_editor-0.0.168.dist-info → je_editor-0.0.170.dist-info}/LICENSE +0 -0
- {je_editor-0.0.168.dist-info → je_editor-0.0.170.dist-info}/WHEEL +0 -0
- {je_editor-0.0.168.dist-info → je_editor-0.0.170.dist-info}/top_level.txt +0 -0
@@ -178,10 +178,12 @@ class ExecManager(object):
|
|
178
178
|
|
179
179
|
def read_program_output_from_process(self) -> None:
|
180
180
|
while self.still_run_program:
|
181
|
-
program_output_data = self.process.stdout.raw.read(self.program_buffer).decode(self.program_encoding
|
181
|
+
program_output_data: str = self.process.stdout.raw.read(self.program_buffer).decode(self.program_encoding,
|
182
|
+
errors="replace")
|
182
183
|
self.run_output_queue.put_nowait(program_output_data)
|
183
184
|
|
184
185
|
def read_program_error_output_from_process(self) -> None:
|
185
186
|
while self.still_run_program:
|
186
|
-
program_error_output_data = self.process.stderr.raw.read(self.program_buffer).decode(
|
187
|
+
program_error_output_data: str = self.process.stderr.raw.read(self.program_buffer).decode(
|
188
|
+
self.program_encoding, errors="replace")
|
187
189
|
self.run_error_queue.put_nowait(program_error_output_data)
|
@@ -187,7 +187,6 @@ class EditorWidget(QWidget):
|
|
187
187
|
if self.code_save_thread is not None:
|
188
188
|
self.code_save_thread.still_run = False
|
189
189
|
self.code_save_thread = None
|
190
|
-
|
191
|
-
file_is_open_manager_dict.pop(str(Path(self.current_file)), None)
|
190
|
+
file_is_open_manager_dict.pop(str(Path(self.current_file)), None)
|
192
191
|
auto_save_manager_dict.pop(self.current_file, None)
|
193
192
|
return super().close()
|
@@ -67,7 +67,8 @@ def create_venv(ui_we_want_to_set: EditorMain) -> None:
|
|
67
67
|
widget.python_compiler = ui_we_want_to_set.python_compiler
|
68
68
|
venv_path = Path(os.getcwd() + "/venv")
|
69
69
|
if not venv_path.exists():
|
70
|
-
create_venv_shell = ShellManager(main_window=widget, after_done_function=widget.code_edit.check_env
|
70
|
+
create_venv_shell = ShellManager(main_window=widget, after_done_function=widget.code_edit.check_env,
|
71
|
+
shell_encoding=ui_we_want_to_set.encoding)
|
71
72
|
create_venv_shell.later_init()
|
72
73
|
create_venv_shell.exec_shell(
|
73
74
|
[f"{create_venv_shell.compiler_path}", "-m", "venv", "venv"]
|
@@ -98,7 +99,7 @@ def shell_pip_install(ui_we_want_to_set: EditorMain, pip_install_command_list: l
|
|
98
99
|
language_wrapper.language_word_dict.get("python_env_menu_install_package_messagebox_label")
|
99
100
|
)
|
100
101
|
if press_ok:
|
101
|
-
pip_install_shell = ShellManager(main_window=widget)
|
102
|
+
pip_install_shell = ShellManager(main_window=widget, shell_encoding=ui_we_want_to_set.encoding)
|
102
103
|
pip_install_shell.later_init()
|
103
104
|
pip_install_shell.exec_shell(
|
104
105
|
pip_install_command_list
|
@@ -127,7 +128,8 @@ def pip_install_package_update(ui_we_want_to_set: EditorMain) -> None:
|
|
127
128
|
language_wrapper.language_word_dict.get("python_env_menu_install_or_update_package_messagebox_label")
|
128
129
|
)
|
129
130
|
if press_ok:
|
130
|
-
pip_install_shell = ShellManager(main_window=widget, after_done_function=widget.code_edit.check_env
|
131
|
+
pip_install_shell = ShellManager(main_window=widget, after_done_function=widget.code_edit.check_env,
|
132
|
+
shell_encoding=ui_we_want_to_set.encoding)
|
131
133
|
pip_install_shell.later_init()
|
132
134
|
pip_install_shell.exec_shell(
|
133
135
|
[f"{pip_install_shell.compiler_path}", "-m", "pip", "install", f"{package_text}", "-U"]
|
@@ -146,7 +148,8 @@ def pip_install_package(ui_we_want_to_set: EditorMain) -> None:
|
|
146
148
|
language_wrapper.language_word_dict.get("python_env_menu_install_package_messagebox_label")
|
147
149
|
)
|
148
150
|
if press_ok:
|
149
|
-
pip_install_shell = ShellManager(main_window=widget, after_done_function=widget.code_edit.check_env
|
151
|
+
pip_install_shell = ShellManager(main_window=widget, after_done_function=widget.code_edit.check_env,
|
152
|
+
shell_encoding=ui_we_want_to_set.encoding)
|
150
153
|
pip_install_shell.later_init()
|
151
154
|
pip_install_shell.exec_shell(
|
152
155
|
[f"{pip_install_shell.compiler_path}", "-m", "pip", "install", f"{package_text}"]
|
@@ -41,7 +41,7 @@ def run_debugger(ui_we_want_to_set: EditorMain) -> None:
|
|
41
41
|
if widget.exec_python_debugger is None:
|
42
42
|
widget.python_compiler = ui_we_want_to_set.python_compiler
|
43
43
|
if choose_file_get_save_file_path(ui_we_want_to_set):
|
44
|
-
code_exec = ExecManager(widget)
|
44
|
+
code_exec = ExecManager(widget, program_encoding=ui_we_want_to_set.encoding)
|
45
45
|
code_exec.later_init()
|
46
46
|
code_exec.code_result = widget.debugger_result
|
47
47
|
code_exec.exec_code(
|
@@ -40,7 +40,7 @@ def run_program(ui_we_want_to_set: EditorMain) -> None:
|
|
40
40
|
if widget.exec_program is None:
|
41
41
|
widget.python_compiler = ui_we_want_to_set.python_compiler
|
42
42
|
if choose_file_get_save_file_path(ui_we_want_to_set):
|
43
|
-
code_exec = ExecManager(widget)
|
43
|
+
code_exec = ExecManager(widget, program_encoding=ui_we_want_to_set.encoding)
|
44
44
|
code_exec.later_init()
|
45
45
|
code_exec.exec_code(
|
46
46
|
widget.current_file
|
@@ -19,7 +19,7 @@ def write_file(file_path: str, content: str) -> None:
|
|
19
19
|
try:
|
20
20
|
lock.acquire()
|
21
21
|
if file_path != "" and file_path is not None:
|
22
|
-
with open(file_path, "w+") as file_to_write:
|
22
|
+
with open(file_path, "w+", encoding="utf-8") as file_to_write:
|
23
23
|
file_to_write.write(content)
|
24
24
|
except JEditorSaveFileException:
|
25
25
|
raise JEditorSaveFileException
|
@@ -15,7 +15,7 @@ je_editor/pyside_ui/code/auto_save/auto_save_thread.py,sha256=LHfWKNVE1Rmd1MHbub
|
|
15
15
|
je_editor/pyside_ui/code/code_format/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
je_editor/pyside_ui/code/code_format/pep8_format.py,sha256=YVaoZX4AxL-FUgvlMFr4m4Da_ZsXaymW5jJrbOA-V0A,2920
|
17
17
|
je_editor/pyside_ui/code/code_process/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
|
-
je_editor/pyside_ui/code/code_process/code_exec.py,sha256=
|
18
|
+
je_editor/pyside_ui/code/code_process/code_exec.py,sha256=CymmxcHMgKXsKW_Ox4CIx3t4Fq3pScLfVvO6zArdKF0,8588
|
19
19
|
je_editor/pyside_ui/code/plaintext_code_edit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
20
20
|
je_editor/pyside_ui/code/plaintext_code_edit/code_edit_plaintext.py,sha256=G61PzFj72zf4gFSRU0IwB9liWHBiw9wuXuKJwmr5FFg,12341
|
21
21
|
je_editor/pyside_ui/code/shell_process/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -38,7 +38,7 @@ je_editor/pyside_ui/main_ui/main_editor.py,sha256=mJ05HEyvSLAvSWjGsye4t8W7OPETx5
|
|
38
38
|
je_editor/pyside_ui/main_ui/dock/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
39
|
je_editor/pyside_ui/main_ui/dock/destroy_dock.py,sha256=c1tAbW52cpNRSaxeElAnnszlJ4sKvFkwDo_yy2ryx4g,414
|
40
40
|
je_editor/pyside_ui/main_ui/editor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
41
|
-
je_editor/pyside_ui/main_ui/editor/editor_widget.py,sha256=
|
41
|
+
je_editor/pyside_ui/main_ui/editor/editor_widget.py,sha256=RDZ8wQFiINdRAsWeeGthOTYbwYK7VNO3aa09E2y3pqI,8958
|
42
42
|
je_editor/pyside_ui/main_ui/editor/editor_widget_dock.py,sha256=50LLscBlI8gSxd1wELb54hhagKOqTIbov7NWXTaIjlU,1702
|
43
43
|
je_editor/pyside_ui/main_ui/editor/process_input.py,sha256=mUne3mKcPsINag3m__cWI54n2bUUnKN9bnc5D6nrspw,2962
|
44
44
|
je_editor/pyside_ui/main_ui/ipython_widget/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -56,12 +56,12 @@ je_editor/pyside_ui/main_ui/menu/help_menu/build_help_menu.py,sha256=osBm5UXS8if
|
|
56
56
|
je_editor/pyside_ui/main_ui/menu/language_menu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
57
57
|
je_editor/pyside_ui/main_ui/menu/language_menu/build_language_server.py,sha256=uWMfVHAkDGkeul7hoNUsD6aseyH26mZJrylJ0AzlQds,1970
|
58
58
|
je_editor/pyside_ui/main_ui/menu/python_env_menu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
59
|
-
je_editor/pyside_ui/main_ui/menu/python_env_menu/build_venv_menu.py,sha256=
|
59
|
+
je_editor/pyside_ui/main_ui/menu/python_env_menu/build_venv_menu.py,sha256=O8HhxQZ564QrNnrOOpvjz--C-dHwTE9NcY5i91lhc_o,7978
|
60
60
|
je_editor/pyside_ui/main_ui/menu/run_menu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
61
61
|
je_editor/pyside_ui/main_ui/menu/run_menu/build_run_menu.py,sha256=T_4GwQyRBp49qSuu06P07yGAbBJ0H68f1kJbEgTFdOA,4719
|
62
62
|
je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
63
|
-
je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/build_debug_menu.py,sha256=
|
64
|
-
je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/build_program_menu.py,sha256=
|
63
|
+
je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/build_debug_menu.py,sha256=4qpfky-BZrp-OO1AuovihIqYQq3vX8TQoGftJPnYhkQ,2949
|
64
|
+
je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/build_program_menu.py,sha256=Uq3szsVhnYpUAJQBKU4Rc3k007GUY9aSE9Xavu-_KQU,2739
|
65
65
|
je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/build_shell_menu.py,sha256=IiFgupnEivXGi3MmbPIqleSbyXmlI04WOloM5hCTL-E,2521
|
66
66
|
je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/utils.py,sha256=5ODFU8KevBPMDTc-p1G8vcoSB1T9AB4VsjBQ09ar1t8,673
|
67
67
|
je_editor/pyside_ui/main_ui/menu/style_menu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -86,7 +86,7 @@ je_editor/utils/file/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
86
86
|
je_editor/utils/file/open/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
87
87
|
je_editor/utils/file/open/open_file.py,sha256=tGEyL8-ApqsGp9CNmZyGMlk4_KqTNW6E3wx0f56rDMY,1068
|
88
88
|
je_editor/utils/file/save/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
89
|
-
je_editor/utils/file/save/save_file.py,sha256=
|
89
|
+
je_editor/utils/file/save/save_file.py,sha256=QJaHiKKm4418mvQ2vn5sduwvPRRMX8x0208RGSrkrfs,778
|
90
90
|
je_editor/utils/json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
91
91
|
je_editor/utils/json/json_file.py,sha256=pr_4K_xjz7nKG1Yd-2dhwLZzxXCeE4C7n52NgATm_5c,1370
|
92
92
|
je_editor/utils/json_format/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
@@ -99,8 +99,8 @@ je_editor/utils/redirect_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
99
99
|
je_editor/utils/redirect_manager/redirect_manager_class.py,sha256=RulOP6Udyna3q01iti_BuMpmhEIObnTJq3G5MIu1Rwo,1750
|
100
100
|
je_editor/utils/venv_check/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
101
101
|
je_editor/utils/venv_check/check_venv.py,sha256=3HjMwqJzqY8Ir6auniyZMlL0h0TAvP3nZkOI-bR4_jA,798
|
102
|
-
je_editor-0.0.
|
103
|
-
je_editor-0.0.
|
104
|
-
je_editor-0.0.
|
105
|
-
je_editor-0.0.
|
106
|
-
je_editor-0.0.
|
102
|
+
je_editor-0.0.170.dist-info/LICENSE,sha256=KMhUHh6pnIUvmXDW-49L_Sz63bqkOlPDqsecaqKiitU,1091
|
103
|
+
je_editor-0.0.170.dist-info/METADATA,sha256=WsAxWq7YbtfQxJyZWPs0rYxPtU4IMQuO306ukqsNvgw,3298
|
104
|
+
je_editor-0.0.170.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
105
|
+
je_editor-0.0.170.dist-info/top_level.txt,sha256=_9YA7BgxpkmdLs-5V_UQILxClcMRgPyG1a3qaE-Bkcs,10
|
106
|
+
je_editor-0.0.170.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|