-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 verible_formatter_verilog package #8950
Conversation
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.
Automated testing result: ERROR
Repo link: verible_formatter_verilog
Results help
Packages added:
- verible_formatter_verilog
Processing package "verible_formatter_verilog"
- ERROR: Branch-based releases are not supported for new packages; please use "tags": true
- ERROR: The binding ['f11'] unconditionally overrides a default binding
- File: Default.sublime-keymap
Please reread that bit about keybindings in the PR template You might not want to have a sublime-project file in your package. If you do want to check it in, exclude it from the final package by using a gitattributes file. Your package is now called "verible_formatter_verilog" so that should also be the filename for the settings file. You can use capitals and spaces to create a more readable package name though. Snake_case is a bit unusual here. Since you're just wrapping a formatter executable, I wonder if Fmt might also be able to handle that. At the very least your readme should explain how to install any programs your package relies on. You try to expose all formatting options via your package settings file. Wouldn't it be more flexible for endusers to use the standard settings file used by these tools, so that the same settings are also used outside of Sublime Text? |
Can you translate the status messages to English? I think "Verible Formatter" is a nice name btw. |
Thank you for your time. Following your advice, I have removed unnecessary files and default key bindings, and renamed plugin to Fmt is an excellent plugin. When searching for Sublime plugins under "Verilog," I initially overlooked this plugin. However, due to Verible's limitations, when there are syntax errors in the Verilog code, Verible fails to format it, and fmt cannot display error messages, which complicates corrections. Additionally, Verible cannot parse As Chinese is my native language, I prioritize using it. I will endeavor to add English support 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.
Automated testing result: ERROR
Repo link: VeribleFormatterVerilog
Results help
Packages added:
- VeribleFormatterVerilog
Processing package "VeribleFormatterVerilog"
- ERROR: Branch-based releases are not supported for new packages; please use "tags": true
|
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.
Automated testing result: SUCCESS
Repo link: VeribleFormatterVerilog
Packages added:
- VeribleFormatterVerilog
Processing package "VeribleFormatterVerilog"
- All checks passed
Thanks for your advise. I have modified my plugin according to your advise and added some feature. |
Final comments, you're welcome to have a look at these at some later time:
for clarity perhaps change to
You expect the global_flags_file_path to be place inside the user's Sublime Text packages directory. That's not usually a good place for file like that. It's intended for plugins and settings for ST itself, whereas this is a config file for the command line utility you're making available. At the very least it should be in the User package directory. But more commonly you would put these in the user's home directory (e.g. |
Thank you for your advice. I’ve updated the comments based on your suggestions. However, I must stick with the current location of the configuration file because it ensures an out-of-the-box experience—users can start using the plugin right after installation without needing to modify it according to the README. Users who prefer a different configuration can still manually change the location of the configuration file. Therefore, I believe the current setup is more suitable. |
My package is unique, and there are no packages like it in Package Control.