Closed jjjchens235 closed 3 years ago
I tried it in my environment, but could not reproduce the problem. :(
https://user-images.githubusercontent.com/188642/133816145-053f7be8-3b2a-4609-9120-a8ee58e2f680.mp4
Thanks for sharing this video, the side by side was really neat. I'm not sure why mine isn't working, but my workaround of targeting only specific rules should do for now, ie
:CocCommand sqlfluff.fix --rules L011,L012
Thanks again for looking into this.
Take this SQL code
If you run
:CocCommand sqlfluff.fix
none of the issues are fixed. However, if you run this on the command linesqlfluff fix test_file.sql --force
and then open the file, the errors are fixed.:CocCommand sqlfluff.fix
works however, if you update the code to any of the following variations prior to running it: