-
Notifications
You must be signed in to change notification settings - Fork 11
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
Refactor generate messages codes pojiro #185
Conversation
ff6b495
to
dc1b1ea
Compare
|
|
ddeaf01: package.txt の削除 で対応しました。 |
mix task として実行する場合、task 実行前に |
現行の rclex が抱えている課題で、本PRでも解消していないものです。コード生成により自己改変的であるため回避できていません。 https://qiita.com/usamik26/items/56d0d3ba7a1300625f92 ただし、設定していることを忘れてしまうと嵌りそうだと思います。 |
はい、そのとおりです。 |
hex publish の話しと mix task の話しはOKです.後者はそういうものだと認識しました. |
ROS2 -> ROS 2 の修正をしたときにVSCodeの auto-formatter が走ったらしく,生成先コードとテストコードとの不整合が発生したみたいです. 47e771d#diff-b3997e2b41c0ee0df58c81ab0409b89d8f927e10de2b061a942afe2fa1b471c5L655 |
コード生成の話は悩ましいです.私はうっかり
|
0c8d28e
to
02491e9
Compare
02491e9
to
64e8061
Compare
上記の3も不要にできるような対応を 64e8061 として考えてみました。 |
64e8061 is perfect for me!! |
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.
awesome thanks!! go merging!!!
コード生成機能を Makefile、msgtype.sh x2 から
mix rclex.gen.msgs
(lib/mix/tasks/rclex/gen/msgs.ex) に切り出しました。mix format
の整形が異なるため落ちています。then
がないため msgs.ex が動作しません。コミットは開発の進捗に合わせ刻んでしまったため、ヒストリーとしては汚くなってしまいました。
変更を行ったコードにいくつかコメントを行っています。 File changed からご確認をお願いいたします。
質疑を通したレビューが必要であれば打ち合わせをご検討下さい。
使用方法
add rclex to deps of mix.exs
add rclex config to config/config.exs
Sampe repo is here, https://github.com/pojiro/use_rclex