-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit abaef02eaaec44234b331dec0395ee2b63740d05 Author: Moosems <[email protected]> Date: Sat Jun 1 13:59:59 2024 +0300 Final tests for 0.3.0 commit 114270dac0f18c2efaac73cc020950b6b5e17454 Author: Moosems <[email protected]> Date: Sat Jun 1 13:04:19 2024 +0300 Fix highlighting matching commit 01025ad000f03ae5e2c60a20c0aaf640c919fb14 Author: Moosems <[email protected]> Date: Fri May 31 23:27:18 2024 +0300 Update docs and example commit 1ebc628f2849be64fee46e064b19e3cef42991eb Author: Moosems <[email protected]> Date: Fri May 31 23:24:25 2024 +0300 Update tests commit d24db4f3f245230c768f500a9101d93d06c9ef0e Author: Moosems <[email protected]> Date: Fri May 31 23:01:48 2024 +0300 Reformat, upgrade version, add example commit 767cd367344b13df6c48fc3a0f6f0002eed8e557 Author: Moosems <[email protected]> Date: Fri May 31 22:55:02 2024 +0300 Convert to tmp_files commit daf49770a7e2c9471bbd510d5cea03a8cebd0f6c Author: Moosems <[email protected]> Date: Fri May 31 21:00:24 2024 +0300 Improve highlight and add examples commit 139814aa2bb789c0ace1094fbe30a4b32323421f Author: Moosems <[email protected]> Date: Fri May 31 20:35:30 2024 +0300 Remove reasoning commit 5986e6da85c735d1f4043055a694d022c76d5941 Author: Moosems <[email protected]> Date: Fri May 31 20:34:20 2024 +0300 Update readme with intriguing findings On my system the first usage takes up to 3x longer for the same input while it waits for the server process to initialize (due to the need to start up the python interpreter) commit 4a7bb51ebe0e00b2bc92fa95f36922eea29ae2bc Author: Moosems <[email protected]> Date: Fri May 31 20:20:46 2024 +0300 Have responses written to tmp files commit ada8506328f078bde448b2c4d7f642d4a739cb69 Author: Moosems <[email protected]> Date: Fri May 31 17:53:29 2024 +0300 Return with temp_file commit b2e88075dda42d78e28271de6a57977884be5ac4 Author: Moosems <[email protected]> Date: Fri May 31 17:49:41 2024 +0300 Set better example Not killing the IPC when using it for a short amount of time causes issues (when the python interpreter closes before the server sends its last output) commit 4ac82c9d3c63b394de33fb7a164992e455cb8a8f Author: Moosems <[email protected]> Date: Fri May 31 17:27:02 2024 +0300 Add temp file to mesage type Required adding temp files to messages (even if not used yet) commit 279a60ee6784f180729bd6d06aafae824f4c0e16 Author: Moosems <[email protected]> Date: Fri May 31 17:21:40 2024 +0300 Use all_ids in ipc.py commit 2870c57ee8e81eefaf17a0507a498b30ca3e866c Author: Moosems <[email protected]> Date: Fri May 31 17:19:15 2024 +0300 Add tempfile to ids in ipc, server confirm id commit 2f88b05153348c21fc48385bc1f9c20b5abfeab8 Author: Moosems <[email protected]> Date: Fri May 31 16:38:06 2024 +0300 Create failing example commit 46a6271e4ab402676835fae703f022d49adc4f6a Author: Moosems <[email protected]> Date: Fri May 31 16:37:45 2024 +0300 Squashed commit of the following: commit f9b3c7b Author: Moosems <[email protected]> Date: Fri May 31 16:36:36 2024 +0300 Reformat commit 4c18c0d Author: Moosems <[email protected]> Date: Fri May 31 16:34:04 2024 +0300 Squashed commit of the following: commit 9fb8a906d6a17da7996406ab58c4d2ca3a4e9f21 Author: Moosems <[email protected]> Date: Fri May 31 16:33:54 2024 +0300 Update docs commit cec86a408c7b30194b23aa4388359da81c638ac0 Author: Moosems <[email protected]> Date: Fri May 31 16:30:02 2024 +0300 Use tuples commit 6218eb1dce635f5cb40d5723f7c5c2455eb195de Author: Moosems <[email protected]> Date: Fri May 31 16:34:21 2024 +0300 Squashed commit of the following: commit 4c18c0d Author: Moosems <[email protected]> Date: Fri May 31 16:34:04 2024 +0300 Squashed commit of the following: commit 9fb8a906d6a17da7996406ab58c4d2ca3a4e9f21 Author: Moosems <[email protected]> Date: Fri May 31 16:33:54 2024 +0300 Update docs commit cec86a408c7b30194b23aa4388359da81c638ac0 Author: Moosems <[email protected]> Date: Fri May 31 16:30:02 2024 +0300 Use tuples
- Loading branch information
Showing
15 changed files
with
327 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,5 @@ | |
# Write response | ||
stdout.write(str(output) + "\n") | ||
stdout.flush() | ||
|
||
context.kill_IPC() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,4 @@ def ping_loop() -> None: | |
|
||
root.after_idle(ping_loop) | ||
root.mainloop() | ||
context.kill_IPC() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from time import sleep | ||
|
||
from salve_ipc import IPC, Response, tokens_from_result | ||
|
||
context = IPC() | ||
|
||
context.update_file( | ||
"test", | ||
open(__file__, "r+").read(), | ||
) | ||
|
||
context.request( | ||
"autocomplete", | ||
file="test", | ||
expected_keywords=[], | ||
current_word="t", | ||
) | ||
|
||
sleep(1) | ||
|
||
output: Response = context.get_response("autocomplete") # type: ignore | ||
print(tokens_from_result(output["result"])) # type: ignore | ||
context.kill_IPC() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from time import sleep | ||
|
||
from salve_ipc import IPC, Response, tokens_from_result | ||
|
||
context = IPC() | ||
|
||
context.update_file( | ||
"test", | ||
open(__file__, "r+").read(), | ||
) | ||
|
||
context.request("highlight", file="test", language="python") | ||
|
||
sleep(1) | ||
output: Response | None = context.get_response("highlight") | ||
print(tokens_from_result(output["result"])) # type: ignore | ||
context.kill_IPC() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from time import sleep | ||
|
||
from salve_ipc import IPC, Response | ||
|
||
context = IPC() | ||
|
||
context.update_file( | ||
"test", | ||
open(__file__, "r+").read(), | ||
) | ||
|
||
context.request( | ||
"replacements", file="test", expected_keywords=[], current_word="contest" | ||
) | ||
|
||
sleep(1) | ||
output: Response | None = context.get_response("replacements") | ||
print(output["result"]) # type: ignore | ||
context.kill_IPC() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.