-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add protobuf layer #8234
Add protobuf layer #8234
Conversation
This functionality is in the flycheck package now.
This still doesn't enable |
Hi, you have to install |
I've verified that flycheck is enabled automatically for protobuf buffers in stock emacs:
So I'm not sure why it's not being enabled in Spacemacs. Presence or absence of
seems to make no difference. |
@zhexuany thanks for replying. I can enable |
This change updates the `packages.el` file to support automatically enabling flycheck when opening a protobuf file. This is accomplished by adding `flycheck` to the list of packages, as well as defining a `post-init-flycheck()` function. I've tested that this works with spacemacs `0.200.7@25.1.1`.
@edrex I managed to get it to automatically load. But GitHub isn't letting me issue a pull request against your branch. 😒 LMK if this works for you: theckman@a4c5d95 |
@theckman with your change it's automatically enabling the minor mode for me too. It seems that I was missing flycheck from protobuf-packages. I reset my branch to match yours. Thanks! This is ready for review. |
@edrex I'm fairly ignorant to getting layers and things working with Spacemacs (and emacs in general), so I apologize if I'm missing something that should be very obvious. The one thing that seems to not work, and I'm not sure if we have the ability to make it work, is automatic completion around things with braces. For example, if I'm writing type Test struct {} However, in the message Request { I'm not sure if it's even possible to do, but I thought I'd call it out. I think in its current state, even without completion, it's much better than editing |
me too 😄 The brace matching would need to be added to the upstream mode I think: Doesn't seem like a blocker for getting this in, right? |
Yeah, I was just starting to look there to see if maybe that was the case. Bit of a yak shave. 😛 Nope! I do not think that should be considered a blocker at all. |
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.
This has been tested on my personal development environment. When opening .proto
files, the protobuf-mode
is enabled. Also, flycheck-mode
is enabled as well.
👍 on this becoming an official Spacemacs layer
Thanks for the effort! When will this get merged? |
I've been testing this on my local development environment for a few weeks now and it works great! Anything I can do here to help move this along? |
I think it's ready to go and just needs a signoff. Maintainers are always swamped because of the volume of pull requests. Not sure the best way to help. |
Only @syl20bnr merges new layers. So we should ping him. Hopefully, it doesn't take too long to merge this. It seems like a very small start for a new layer. |
It might be slightly inappropriate, but I tried to use Twitter to ping @syl20bnr. Based on the date of Sylvain's last tweet I'm not sure it'll get seen. But I'm hopeful that this will be a small enough PR that he won't need to spend too much personal time on reviewing it. |
With |
Thank you ! 👍 |
Fixes #6973. Based on #7027, but updated to omit the defunct flycheck-protobuf layer.
@amol-mandhane @zhexuany @d12frosted please take a look. Let's get this merged already!