je-editor 0.0.169__py3-none-any.whl → 0.0.170__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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(self.program_encoding)
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)
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: je-editor
3
- Version: 0.0.169
3
+ Version: 0.0.170
4
4
  Summary: JEditor is basic but powerful editor include GPT
5
5
  Author-email: JE-Chen <jechenmailman@gmail.com>
6
6
  License: MIT
@@ -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=VfxqKrz90aUozmFP2bX8ZXtWvvotTwGLeQnLkLQ0fQ4,8427
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
@@ -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=1zlsom_RHEF5Z8TwcWrPisxTHcGdJgFcCq9KbxykENo,7660
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=clRvEly9L5X9vpwXSfrI0eBTzB7sVnle7bWKIp4ncCI,2904
64
- je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/build_program_menu.py,sha256=vMwxBr4ANHEGGzoOWiK-psN-R2E0AFTJHFmRFBqDdLQ,2694
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
@@ -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.169.dist-info/LICENSE,sha256=KMhUHh6pnIUvmXDW-49L_Sz63bqkOlPDqsecaqKiitU,1091
103
- je_editor-0.0.169.dist-info/METADATA,sha256=oe5-m91Z-txxTJ6-yzdsn8Fi4WzXzlW4ytiGLlV7xQQ,3298
104
- je_editor-0.0.169.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
105
- je_editor-0.0.169.dist-info/top_level.txt,sha256=_9YA7BgxpkmdLs-5V_UQILxClcMRgPyG1a3qaE-Bkcs,10
106
- je_editor-0.0.169.dist-info/RECORD,,
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,,