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 retested the issue in windows with version 3.3.1 in my windows VM.
There I added a new variable foo=bar without newline to the end of ${DEVON_IDE_HOME}/conf/devon.properties.
In CMD the error does not occur and after calling devon the variable is properly set what can be verified with echo %foo% showing bar.
However, when I use git-bash the error does happen on windows and echo $foo does not display bar. If I add the new line at the end of devon.properties it does work.
On MacOS I tested the same both with bash and zsh and the error does not happen.
So the error only happens on in MSYS only due to some incompatibility of bash/gnu/POSIX emulation.
I am quite clueless how to fix the bug while parsing the file. However, I could add a fix by checking every existing devon.properties if it ends with newline and otherwise just add the missing newline automatically before parsing the file.
Expected behavior
When I set variables in
devon.properties
they should properly apply whendevon
command was called.Actual behavior
When the variable is defined in the last line of
devon.properties
and the file does not end with a newline, the variable is not considered/set.Steps to reproduce (bug) / Use Case of feature request (enhancement)
KEY=value
(without any newline)devon
commandecho $KEY
(orecho %KEY%
in CMD)Related/Dependent Issues
Comments/Hints:
Affected version:
3.3.1
The text was updated successfully, but these errors were encountered: