-
Notifications
You must be signed in to change notification settings - Fork 2
refactor connection logic [CPP-322][CPP-329] #169
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
25 commits
Select commit
Hold shift + click to select a range
cb43116
add make task to run the console with gdb
notoriaga 52d1f64
replace mutex with arcbool
notoriaga 8afedc7
refactor connection logic
notoriaga e9c1e70
lint
notoriaga 38629a4
benches
notoriaga 5d42257
cache standalone py
notoriaga 4dd5fce
cleanup
notoriaga 7deba8a
log
notoriaga 3e73134
don't cache py build
notoriaga 60b73d6
fix pause toggle
notoriaga ea499ef
fix run gdb
notoriaga 89b9e74
use rust-gdb
notoriaga 56bf91f
auth download req
notoriaga 4fbd7c0
cleanup
notoriaga ff49d7c
remove pause
notoriaga 9311cf2
Merge remote-tracking branch 'origin' into steve/connection
notoriaga d8f7508
makefile
notoriaga c909a35
bench
notoriaga c56f7b4
bench
notoriaga 57150a8
bench
notoriaga 43a8071
remove log
notoriaga c8c5830
rename
notoriaga 3785eea
rename
notoriaga 00e216a
benches?
notoriaga 3c08ef0
cleanup
notoriaga 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
|---|---|---|
|
|
@@ -147,6 +147,18 @@ Get-ChildItem .\console_backend -Recurse -Include @("*.egg-info", "*.dist-info") | |
| command = "${PYTHON}" | ||
| args = ["-m", "swiftnav_console.main", "${@}"] | ||
|
|
||
| [tasks.start-console-gdb] | ||
| command = "rust-gdb" | ||
| args = [ | ||
| "-ex", | ||
| "run", | ||
| "--args", | ||
| "${PYTHON}", | ||
| "-m", | ||
| "swiftnav_console.main", | ||
| "${@}", | ||
| ] | ||
|
|
||
| [tasks.qml-run] | ||
| dependencies = ["generate-resources"] | ||
| run_task = "start-console" | ||
|
|
@@ -161,6 +173,16 @@ dependencies = [ | |
| ] | ||
| run_task = "start-console" | ||
|
|
||
| [tasks.gdb-run] | ||
| dependencies = [ | ||
| "copy-capnp", | ||
| "generate-resources", | ||
| "remove-egg-dist", | ||
| "store-version", | ||
| "install-backend", | ||
| ] | ||
| run_task = "start-console-gdb" | ||
|
|
||
| [tasks.prod-run] | ||
| dependencies = [ | ||
| "copy-capnp", | ||
|
|
@@ -214,7 +236,6 @@ command = "${PYTHON}" | |
| args = ["setup.py", "bdist_wheel"] | ||
|
|
||
| [tasks.get-get-pip] | ||
| condition = { files_not_exist = ["${WORKSPACE}/get-pip.py"] } | ||
| script_runner = "@duckscript" | ||
| script = ''' | ||
| wget -O ./get-pip.py https://bootstrap.pypa.io/get-pip.py | ||
|
|
@@ -248,7 +269,6 @@ cm_run_task generate-resources | |
| ''' | ||
|
|
||
| [tasks.prep-dist] | ||
| dependencies = ["get-standalone-py"] | ||
| script_runner = "@duckscript" | ||
| script = ''' | ||
| cm_run_task copy-capnp | ||
|
|
@@ -502,7 +522,7 @@ args = ["clippy", "--all-targets", "--", "--deny", "warnings"] | |
| dependencies = ["store-version", "copy-capnp"] | ||
| command = "cargo" | ||
| cwd = "console_backend" | ||
| args = ["test", "--features", "tests", "--", "--nocapture"] | ||
| args = ["test", "--features", "tests", "${@}", "--", "--nocapture"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So you can run |
||
|
|
||
| [tasks.rust-type-check] | ||
| dependencies = ["store-version", "copy-capnp"] | ||
|
|
||
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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How I've been debugging. Not sure if anyone has a better incantation but seems useful to have a command in the makefile for debugging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could get python-pretty print for Rust using "rust-gdb".