bitst0rm-pub / Formatter

🧜‍♀️ A Sublime Text plugin to beautify and minify source code: CSS, SCSS, Sass, HTML, XML, SVG,JS,JavaScript, JSON, GraphQL, Markdown, TypeScript, Vue, Lua, YAML, Go, Perl, PHP, Python, Ruby, Rust, Haskell, Dart, Swift, Crystal, Bash, Shell, SQL, CSV, C, C++, C#, Objective-C, D, Java, Pawn, Julia, Proto, LaTeX, D2, Graphviz, Mermaid, PlantUML, etc
Other
100 stars 20 forks source link

warning messages in console #49

Closed asparc closed 6 months ago

asparc commented 6 months ago

Hi!

I'm noticing a continuous stream of warning messages popping up in the Sublime console:

warning: mnemonic F not found in menu caption formatR
warning: mnemonic P not found in menu caption pgFormatter

These two messages appear each time when click in the Menu bar (the bar with File, Edit, Selection, Find, ...)

I tried a fresh Sublime install with a fresh Formatter install, and can confirm that these warning messages are really caused by Formatter in default settings.

I'm using Linux.

Could you remove these warning messages?

bitst0rm commented 6 months ago

Hi @asparc

Thank you for your bug report. Much appreciated! I have mistakenly used the lower case instead of the capitalized one (formatR != FormatR) for the menu caption.

It has been fixed now in the master branch.

You can ignore this as it is just a minor cosmetic issue until the next release 1.3.0, scheduled for this week along with an new implementation: Text-to-Image working in the same way as Text-to-Text

Off-topic: Assuming everything is working well as expected: The "debug" option in the settings includes a new flag named: "status" (minimal info). It only prints formatting results on the 3rd-party level instead of verbose on the Formatter level. Verbose output may contain excessive information for everyday use.

Lastly, I forgot to tell that you can omit the file extension to make the "executable_path" system-wide:

//   Basename can be with or without dot.extension as both variants are the same.
//   For example: "fiLe.exe" (Windows only), "fiLe" (Windows + Unix + Linux)

Update: I released 1.3.0 with this fix. Please just feel free to re-open it.

asparc commented 6 months ago

Hi @bitst0rm,

Thanks a lot for addressing my issue so very fast!! And yes, I got everything working cross-platform, but the new extension omission feature could come in handy as well :-)

bitst0rm commented 5 months ago

Hi @asparc It is not useful for today but might be useful for tomorrow. Version 1.4.1 includes 2 new features: Auto-detect Formatting Per-project Formatting so you can now use .sublime-project Just info, best regards

asparc commented 5 months ago

Oh, I like this! Especially the per-project formatting I find useful! Thanks :-)