fprettify support for -c option #572
-
Hey All! I'm trying to set up fprettify formatting within Modern Fortran and am having trouble using the -c (config file) option. I'm not sure if this should be supported but the error I'm seeing suggests that perhaps it is. The relevant settings I am using are: "fortran.formatting.formatter": "fprettify",
"fortran.formatting.fprettifyArgs": ["-c C:\\Users\\mreno\\fprettify.yaml"], The formatter works fine if I use options other than "-c". However, when using the above settings a pop up opens with the error "Unable to open config file: C:\Users\mreno\prettify.yaml. Error: Invalid argument." If I change to a Unix style path for the argument there is a different error- file not found. It is a valid yaml file path which does work with fprettify on the command line. Thank you for any thoughts on this and happy to provide additional information. Mike |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @mjreno, you need to split the argument flag and the actual argument e.g. "fortran.formatting.fprettifyArgs": ["-c", "C:\\Users\\mreno\\fprettify.yaml"], |
Beta Was this translation helpful? Give feedback.
Hi @mjreno, you need to split the argument flag and the actual argument e.g.