You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess, if a macro consist exactly of a series of MacroLiterals but without any expressions in them, we could turn that into a String, parse it, then format it.
i have to say, from my point of view, this is a big issue for me, it prevent my to use crystal tool format.
Because most of my web logic code is organized by ???_controller, but kemal is no way to do this, so, i have to use code like this.
# company_controller.crmoduleAdmin::CompanyControllermacroincluded
get path.admin_company_index do |env| # -------------------------------------------------------------------# many line code here ...end
get path.admin_company do |env|
# many line code hereend# all more than 60 lines code nested here could not format corrctly# many many code here
delete path.admin_company_delete do |env|
# many code hereendendend# this file have 68 lines code. -----------------------------------------------------------------------------
Do you know where is the issue come from?
All more than 60 lines crystal code which nested in macro included, could not formatted automatially!
I have to add space manually to make code more neat, so, instead, the result is i never use format tools.
Bug Report
Following is a very simple example
when i run code like this:
because LSP use the advice come from compiler. as this issue.
this make users with LSP enabled in editor, write code about macro, quite annoy.
version
╰─ $ cry version Crystal 1.5.0-dev [ff55fb1bb] (2022-06-22) # <= latest master. LLVM: 13.0.1 Default target: x86_64-pc-linux-gnu
Arch linux.
The text was updated successfully, but these errors were encountered: