-
Notifications
You must be signed in to change notification settings - Fork 45
Redesign downstream integration with Cthulhu #662
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
Merged
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
e07c6a5
Initial implementation
serenity4 ffad20f
WIP: Overhaul internal architecture & user-facing API
serenity4 c6f97a9
Bump major version
serenity4 0470ed3
Merge branch 'master' of https://github.com/JuliaDebug/Cthulhu.jl int…
serenity4 4bc563e
Fix highlighter command naming
serenity4 ca0f87a
Merge branch 'low-level-interface' of github.com:serenity4/Cthulhu.jl…
serenity4 0f95942
Implement initial external AbstractInterpreter support
serenity4 ff7f047
Separate commands and their values
serenity4 58a85de
Properly implement way to conditionally disable commands
serenity4 30604b1
Move quit/bookmark commands to beginning of action list
serenity4 e52eefa
Fix a few tests
serenity4 44effa5
Adjust conditional Command printing
serenity4 566f1fe
`with_effects` -> `effects`, re-enable remark/effect/exception type a…
serenity4 79ce64d
Re-enable VSCode diagnostics & inlay types
serenity4 644bd69
Add backspace shortcut to go back (ascend)
serenity4 f1195f8
Refactor bookmark functionality
serenity4 a5c7412
Remove disabled AbstractCursor interface
serenity4 10f3268
Fix & clarify IRCode/CodeInfo interactions in LookupResult
serenity4 1eaf064
Minor interface refactors
serenity4 fc25117
Move terminal utility functions to a separate file
serenity4 0bbb892
Start testing various AbstractProvider implementations
serenity4 e0ffb6c
Start adding docs
serenity4 9ffeb95
Re-enable Compiler extension, test DefaultProvider with both
serenity4 311c6e5
Prevent terminal tests from hanging
serenity4 a45e47a
Fix test_terminal.jl
serenity4 ef4b8b2
FakeTerminal -> VirtualTerminal
serenity4 54f56b0
Revert minor printing changes
serenity4 1928271
Fix AbstractInterpreter tests
serenity4 2e746cf
Merge branch 'master' of github.com:JuliaDebug/Cthulhu.jl into low-le…
serenity4 6b0c795
Fix test_codeview
serenity4 b70e724
Use unoptimized lookup if source is not available
serenity4 b3d7325
More fixes, add a few more tests
serenity4 a99d1a9
Reimplement `descend_code_`typed/warntype
serenity4 7e0f4fe
Attempt to fix tests for 1.13
serenity4 358f4cc
Remove dead code
serenity4 3be6ceb
Add ExternalProvider example
serenity4 c905499
Improve interface documentation
serenity4 9b0cd54
exception_type -> exception_types
serenity4 282ea51
inline_cost -> inlining_costs
serenity4 8261cca
Update example `descend` usage in README
serenity4 b521524
Test fixes, avoid corrupting the global method table
serenity4 c7508de
Remove `interruptexc`, add a few more docs
serenity4 f3b18a4
Merge branch 'master' of github.com:JuliaDebug/Cthulhu.jl into low-le…
serenity4 5bb1f11
Merge remote-tracking branch 'upstream/master' into low-level-interface
serenity4 370efc1
Remove dead code
serenity4 8b9931e
Improve config utilities
serenity4 6367864
Fix horrific bug
serenity4 1f59bee
Address review comments
serenity4 d5b6337
Misc fixes
serenity4 0b3c640
Restore precompilation workload
serenity4 0b4301b
Add CHANGELOG.md
serenity4 924765e
Fixes/clarifications/minor refactors after self-review
serenity4 fa2c699
Remove `should_regenerate_code_instance`
serenity4 1552fbd
Restore module delimitation for `test_provider`
serenity4 79bad48
Test both with and without the Compiler extension
serenity4 c77f657
Bump version for TypedSyntax
serenity4 ef20d26
Fixes for nightly, slight hack to partially fix Revise functionality
serenity4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,20 @@ | ||
| # Changelog for Cthulhu | ||
|
|
||
| ## `v3.0.0` | ||
|
|
||
| ### Improvements | ||
|
|
||
| - The way that packages integrate with Cthulhu to customize the behavior of code introspection has been redesigned (see https://github.com/JuliaDebug/Cthulhu.jl/pull/662 for more details). | ||
| - A new UI command mapped to `DEL` (backspace, `'\x7f'`) now allows to go back (ascend) with a single key press. | ||
|
|
||
| ### Breaking changes | ||
|
|
||
| - The `AbstractCursor` interface was removed, deleting or changing the signature of most associated methods (`Cthulhu.AbstractCursor`, `Cthulhu.lookup`, `Cthulhu.lookup_constproped`, `Cthulhu.get_ci`, `Cthulhu.update_cursor`, `Cthulhu.navigate`) | ||
| - The `Cthulhu.custom_toggles` interface was removed, along with `Cthulhu.CustomToggle`, replaced by `Cthulhu.menu_commands` and `Cthulhu.Command`, respectively. | ||
| - `CthulhuConfig` is no longer mutable (but `CthulhuState`, the new state structure holding it, is mutable). `CONFIG` was therefore changed to a global typed but non-const variable, which may be reassigned by users (instead of mutating its fields) with `Cthulhu.CONFIG = my_new_config`. See [`set_config`] and [`set_config!`] to modify an existing configuration, and [`save_config!`] to persist a configuration with Preferences.jl. | ||
| - The `annotate_source` configuration option was removed in favor of a `view::Symbol` configuration option, with the `:source|:ast|:typed|:llvm|:native` available views by default (more may be defined by providers). | ||
| - The `exception_type` configuration option was renamed to `exception_types` for consistency with `remarks`. | ||
| - The `with_effects` configuration option was renamed to `effects` for consistency with `remarks` and `exception_types`. | ||
| - The `inline_cost` configuration option was renamed to `inlining_costs`, also for consistency reasons. | ||
| - The `interruptexc` configuration option was removed. It used to control whether `q` exited (by throwing an `InterruptException`) or ascended, but now that backspace was added as a shortcut to ascend, we can now unconditionally exit with `q` (which actually matches its action description). | ||
|
|
This file contains hidden or 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 |
|---|---|---|
| @@ -1,24 +1,10 @@ | ||
| authors = ["Valentin Churavy <[email protected]> and contributors"] | ||
| name = "Cthulhu" | ||
| uuid = "f68482b8-f384-11e8-15f7-abe071a5a75f" | ||
| version = "2.17.10" | ||
|
|
||
| [compat] | ||
| CodeTracking = "0.5, 1, 2" | ||
| Compiler = "0.1" | ||
| FoldingTrees = "1" | ||
| InteractiveUtils = "1.9" | ||
| JuliaSyntax = "1" | ||
| PrecompileTools = "1" | ||
| Preferences = "1" | ||
| REPL = "1.9" | ||
| TypedSyntax = "1.3.0" | ||
| UUIDs = "1.9" | ||
| Unicode = "1.9" | ||
| WidthLimitedIO = "1" | ||
| julia = "1.12" | ||
| version = "3.0.0" | ||
| authors = ["Valentin Churavy <[email protected]> and contributors"] | ||
|
|
||
| [deps] | ||
| Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697" | ||
| CodeTracking = "da1fd8a2-8d9e-5ec2-8556-3022fb5608a2" | ||
| FoldingTrees = "1eca21be-9b9b-4ed8-839a-6d8ae26b1781" | ||
| InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" | ||
|
|
@@ -37,14 +23,32 @@ Compiler = "807dbc54-b67e-4c79-8afb-eafe4df6f2e1" | |
| [extensions] | ||
| CthulhuCompilerExt = "Compiler" | ||
|
|
||
| [compat] | ||
| Accessors = "0.1.42" | ||
| CodeTracking = "0.5, 1, 2" | ||
| Compiler = "0.1" | ||
| FoldingTrees = "1" | ||
| InteractiveUtils = "1.9" | ||
| JuliaSyntax = "1" | ||
| PrecompileTools = "1" | ||
| Preferences = "1" | ||
| REPL = "1.9" | ||
| TypedSyntax = "1.3.0" | ||
| UUIDs = "1.9" | ||
| Unicode = "1.9" | ||
| WidthLimitedIO = "1" | ||
| julia = "1.12" | ||
|
|
||
| [extras] | ||
| CthulhuCompilerExt = "a0401a94-d28a-5d0d-bd4d-a83640b62d95" | ||
| DeepDiffs = "ab62b9b5-e342-54a8-a765-a90f495de1a6" | ||
| LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
| Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" | ||
| PerformanceTestTools = "dc46b164-d16f-48ec-a853-60448fc869fe" | ||
| Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
| Revise = "295af30f-e4ad-537b-8983-00126c2a3abe" | ||
| StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" | ||
| Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
|
||
| [targets] | ||
| test = ["Test", "DeepDiffs", "PerformanceTestTools", "Random", "Revise", "StaticArrays"] | ||
| test = ["Test", "Compiler", "DeepDiffs", "LinearAlgebra", "Logging", "PerformanceTestTools", "Random", "Revise", "StaticArrays"] | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| name = "TypedSyntax" | ||
| uuid = "d265eb64-f81a-44ad-a842-4247ee1503de" | ||
| authors = ["Tim Holy <[email protected]> and contributors"] | ||
| version = "1.5.2" | ||
| version = "1.5.3" | ||
|
|
||
| [deps] | ||
| CodeTracking = "da1fd8a2-8d9e-5ec2-8556-3022fb5608a2" | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.