purcell / sqlformat

Reformat SQL code inside Emacs using sqlformat or pgformatter
107 stars 9 forks source link

Warning (bytecomp): function ‘sqlformat’ defined multiple times in this file #8

Open EdwardIII opened 2 years ago

EdwardIII commented 2 years ago

I'm seeing this error on compilation:

Compiling file /Users/edward/.emacs.d/elpa/sqlformat-20210305.209/sqlformat.el at Mon Jun 20 19:27:40 2022
Entering directory ‘/Users/edward/.emacs.d/elpa/sqlformat-20210305.209/’

Compiling internal form(s) at Mon Jun 20 19:27:41 2022
Warning (bytecomp): function ‘sqlformat’ defined multiple times in this file

Still seems to work OK, but just wanted to post in case it's helpful. I only see defgroup sqlformat and defun sqlformat in sqlformat.el so I guess it's complaining about those being the same.

My emacs:

GNU Emacs 28.1 (build 1, aarch64-apple-darwin21.3.0, NS appkit-2113.30 Version 12.2.1 (Build 21D62))
 of 2022-04-14
purcell commented 2 years ago

Thanks, this should be resolved by https://github.com/purcell/emacs-reformatter/commit/130205bbe2757bcb78c7b6a103febf40f1d5c2f3 but you might need to reinstall or recompile sqlformat.el after updating reformatter.el.