ignatov/intellij-erlang

Run Configuration: bad command when function arguments contains list of strings

david-kubecka opened this issue · 0 comments

Environment:

IntelliJ IDEA 2021.1 (Ultimate Edition)
Build #IU-211.6693.111, built on April 6, 2021

This is my sample Run Configuration:
image

Then the generated command is (notice the extra comma after last list item):

/usr/local/Cellar/erlang/23.2/lib/erlang/bin/erl -pa /Users/davidkubecka/git/gdc/gdc-nas/out/production/aqe -pa /Users/davidkubecka/git/gdc/gdc-nas/microservices/aqe/aqe-erlang -eval "lists:max([\"1\", \"2\", ])." -s init stop -noshell

Of course this gives syntax error during parsing.

Note that if I change the last argument to integer 2 it suddenly starts working:

/usr/local/Cellar/erlang/23.2/lib/erlang/bin/erl -pa /Users/davidkubecka/git/gdc/gdc-nas/out/production/aqe -pa /Users/davidkubecka/git/gdc/gdc-nas/microservices/aqe/aqe-erlang -eval "lists:max([\"1\", 2])." -s init stop -noshell