Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the walker in active instance #1257

Merged
merged 31 commits into from
Sep 10, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5b9eaed
[Draft] Updating Walker
AshishMahendra Aug 20, 2024
2011c25
sys.module update
AshishMahendra Aug 27, 2024
ba31cee
main merge
AshishMahendra Aug 28, 2024
69b970f
Update: a working version
AshishMahendra Aug 29, 2024
b5cb6a4
path fix
AshishMahendra Aug 29, 2024
4f75369
formatting fix
AshishMahendra Aug 30, 2024
05a32de
Main merge
AshishMahendra Aug 30, 2024
95e5a67
Update foo.jac
AshishMahendra Aug 30, 2024
ccc16dd
Update bar.jac
AshishMahendra Aug 30, 2024
89b476a
Update bar.jac
AshishMahendra Aug 30, 2024
69dada0
code udpates
AshishMahendra Aug 30, 2024
66d8976
Merge branch 'update_walker' of https://github.com/Jaseci-Labs/jaclan…
AshishMahendra Aug 30, 2024
14531f3
test_fix for walker update
AshishMahendra Aug 30, 2024
33cf8a6
lint_fix: machine.py
AshishMahendra Aug 30, 2024
d826780
bar.jac fix white space
AshishMahendra Aug 30, 2024
2cd6179
path_fix
AshishMahendra Aug 30, 2024
e5fa3dc
update: test has update walker feature
AshishMahendra Aug 30, 2024
356179a
Delete jaclang/tests/fixtures/walker_reload/bar.jac
AshishMahendra Aug 30, 2024
6c91b77
Delete jaclang/tests/fixtures/walker_reload/foo.jac
AshishMahendra Aug 30, 2024
69245a9
main merge
AshishMahendra Sep 6, 2024
cc00d19
updated test_language and add walker update code
AshishMahendra Sep 6, 2024
ae7f63c
main_merge
AshishMahendra Sep 9, 2024
6c0afdf
Update
AshishMahendra Sep 9, 2024
bacf7cb
Merge branch 'main' into update_walker
AshishMahendra Sep 10, 2024
9b1f5dd
Merge branch 'main' into update_walker
marsninja Sep 10, 2024
07d1081
config: update pre-commit
marsninja Sep 10, 2024
2b9a5df
refactor: small tweak
marsninja Sep 10, 2024
64d9b90
Merge branch 'main' into update_walker
AshishMahendra Sep 10, 2024
fd83053
Merge branch 'update_walker' of https://github.com/Jaseci-Labs/jaseci…
AshishMahendra Sep 10, 2024
15d59d9
Updated docs
AshishMahendra Sep 10, 2024
e0cf2b1
linting fix
AshishMahendra Sep 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test_fix for walker update
AshishMahendra committed Aug 30, 2024
commit 14531f38078267060acd693802ba002f3da0c59c
14 changes: 1 addition & 13 deletions jaclang/tests/fixtures/walker_reload/bar.jac
Original file line number Diff line number Diff line change
@@ -30,17 +30,5 @@ walker bar_walk {
disengage;
}
}

# New behavior added during runtime
can end with `root exit {
"bar_walk has been updated with new behavior!" |> print;
disengage;
}

# New behavior added during runtime
can end with `root exit {
"bar_walk has been updated with new behavior!" |> print;
disengage;
}
}
}

2 changes: 1 addition & 1 deletion jaclang/tests/fixtures/walker_reload/foo.jac
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ can update_bar_walker {
}
}
''';
bar_file_path = os.path.abspath(
bar_file_path = os.path.join(os.path.abspath("."),
'jaclang/tests/fixtures/walker_reload/bar.jac'
);
with open(bar_file_path, 'r') as bar_file {
7 changes: 3 additions & 4 deletions jaclang/tests/test_language.py
Original file line number Diff line number Diff line change
@@ -957,10 +957,9 @@ def test_walker_dynamic_update(self) -> None:
captured_output = io.StringIO()
sys.stdout = captured_output

# cli.run(
# filename=self.fixture_abs_path("walker_reload/foo.jac"),
# )
jac_import("foo", base_path=self.fixture_abs_path("walker_reload"))
cli.run(
filename=self.fixture_abs_path("walker_reload/foo.jac"),
)
sys.stdout = sys.__stdout__
stdout_value = captured_output.getvalue()
print(f"Stdout: {stdout_value}")