Skip to content

Comments

✨ zb: Add a function to create a builder for IBus#1040

Closed
SummerGram wants to merge 4 commits intoz-galaxy:mainfrom
SummerGram:add-ibus
Closed

✨ zb: Add a function to create a builder for IBus#1040
SummerGram wants to merge 4 commits intoz-galaxy:mainfrom
SummerGram:add-ibus

Conversation

@SummerGram
Copy link

  • Create a function ibus in conn::builder which calls ibus address and then create the builder

Fixs #964.

Copy link
Contributor

@zeenix zeenix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much. It looks good for a first-time contributions but it will need a bit of work still. Would be great to also add a test case and enable that in the CI (only for the Linux part). You'll probably need to try and install the appropriate ibus package.

@zeenix
Copy link
Contributor

zeenix commented Oct 4, 2024

Oh and I really like that you added an emoji as per our practices. However a 💥 isn't that best choice here since it's not a breaking change.

@SummerGram
Copy link
Author

Oh and I really like that you added an emoji as per our practices. However a 💥 isn't that best choice here since it's not a breaking change.

Haha! I just follow the repo practice. I tried to add long and detailed message in a commit but not work.

@SummerGram SummerGram changed the title 💥 zb: Add a function to create a builder for IBus ➕ zb: Add a function to create a builder for IBus Oct 5, 2024
@zeenix
Copy link
Contributor

zeenix commented Oct 5, 2024

Oh and I really like that you added an emoji as per our practices. However a 💥 isn't that best choice here since it's not a breaking change.

Haha! I just follow the repo practice. I tried to add long and detailed message in a commit but not work.

Cool. Can you tell me how your'e choosing/selecting the emojis? The one is for addition of new dependency and you're not adding one. I think you want either ✨ or 🔌. If you're using gimji, it should have a description to guide your selection.

@SummerGram SummerGram changed the title ➕ zb: Add a function to create a builder for IBus ✨ zb: Add a function to create a builder for IBus Oct 5, 2024
@SummerGram
Copy link
Author

Oh and I really like that you added an emoji as per our practices. However a 💥 isn't that best choice here since it's not a breaking change.

Haha! I just follow the repo practice. I tried to add long and detailed message in a commit but not work.

Cool. Can you tell me how your'e choosing/selecting the emojis? The one is for addition of new dependency and you're not adding one. I think you want either ✨ or 🔌. If you're using gimji, it should have a description to guide your selection.

I just go to web and pick emoji. Now I install gimoji. Definitely use it!

@SummerGram
Copy link
Author

I rebase it and stash it.

Please comment it

@zeenix
Copy link
Contributor

zeenix commented Oct 10, 2024

@SummerGram Oh, nm my previous comment (now deleted). I forgot that you were asked to rebase on #325. Unfortunately, that branch/PR needs rebasing too now. I'll ask the author if they'd still be moving the PR forward..

@SummerGram
Copy link
Author

I see. I guess that PR will merge to the current main. And what I do is rebase to that new merged main.

Please tell me when it is merged here or in matrix. I do not check that PR often.

@zeenix
Copy link
Contributor

zeenix commented Oct 11, 2024

I see. I guess that PR will merge to the current main. And what I do is rebase to that new merged main.

Yes. :)

Please tell me when it is merged here or in matrix. I do not check that PR often.

Sure thing!

@zeenix
Copy link
Contributor

zeenix commented Oct 23, 2024

@SummerGram seems you're not around on Matrix so just to let you know #976 has been merged. Please rebase and address the comments so we could get this merged too. 🙏

@SummerGram
Copy link
Author

@SummerGram seems you're not around on Matrix so just to let you know #976 has been merged. Please rebase and address the comments so we could get this merged too. 🙏

Mind if I create a new PR?

@zeenix
Copy link
Contributor

zeenix commented Oct 23, 2024

@SummerGram seems you're not around on Matrix so just to let you know #976 has been merged. Please rebase and address the comments so we could get this merged too. 🙏

Mind if I create a new PR?

Even if you start fresh, you can just force push to the same branch so there's no need. It'll only create noise.

@SummerGram
Copy link
Author

@zeenix

Can you please check the base branch correct or not?

@zeenix
Copy link
Contributor

zeenix commented Oct 23, 2024

@zeenix

Can you please check the base branch correct or not?

Given that the PR now only has commits from your iBus work, I think it's a pretty safe bet the base is now the main branch. 👍

I'll have a look soon but please make sure that commits that are fixups to previous commits (in the same PR/branch), are squashed into those previous commits.

Create a helper function in `conn::builder` to build a connection to IBues daemon

Fixes #964
Copy link
Contributor

@zeenix zeenix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting very close, I think. Apart from these minor things, you need to check the CI. The error is very strange since ibus address on my machine does have a : in it, as it should.

Comment on lines +104 to +114
#[cfg(not(feature = "tokio"))]
let output = child_process
.output()
.await
.expect("Fail to run `ibus address`");

#[cfg(feature = "tokio")]
let output = child_process
.wait_with_output()
.await
.expect("Fail to run `ibus address`");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, just noticed this part. Why do they need to be different? tokio::process::Command also has output method, which should be good enough for us?

Actually, abstractions::process::Command::output can do most stuff already for us here? 🤔 You don't even need to bother with piping etc.

@zeenix
Copy link
Contributor

zeenix commented Oct 28, 2024

Apart from these minor things, you need to check the CI. The error is very strange since ibus address on my machine does have a : in it, as it should.

Did you try to fix this?

@SummerGram SummerGram closed this by deleting the head repository Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants