Skip to content

Commit 2874027

Browse files
authored
devonfw#715: Cygwin not supported warning. (devonfw#733)
1 parent d967d69 commit 2874027

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

cli/src/main/package/bin/ide

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ if [ $? = 0 ]; then
1818
echo "IDE environment variables have been set for ${IDE_HOME} in workspace ${WORKSPACE}"
1919
fi
2020
fi
21+
22+
if [ "${OSTYPE}" = "cygwin" ]; then
23+
echo -e "\033[93m--- WARNING: CYGWIN IS NOT SUPPORTED ---\nCygwin console is not supported by IDEasy.\nConsider using the git terminal instead.\nIf you want to use Cygwin with IDEasy, you will have to configure it yourself.\nA few suggestions and caveats can be found here:\nhttps://github.com/devonfw/IDEasy/blob/main/documentation/cygwin.adoc\n\033[39m"
24+
fi
25+
2126
unset _IDEASY
2227
unset ide_env
2328
unset return_code

documentation/cygwin.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
:toc:
2+
toc::[]
3+
4+
= Cygwin not supported
5+
6+
Currently, the Cygwin terminal is not supported by IDEasy. The suggested way of using IDEasy is with the git-bash terminal.
7+
If you, for whatever reason, still intend to use IDEasy with Cygwin, you can find a few caveats and suggestions below.
8+
Be warned that setting Cygwin up for IDEasy could potentially be very time-consuming.
9+
10+
== Caveats
11+
12+
* Not working with Cygwin are the following (note: this list is non-exhaustive):
13+
** Some IDEs are not working as expected. Examples:
14+
*** `ide Intellij` does not open intellij
15+
16+
== Suggestions
17+
18+
* When you installed Cygwin, you might have set your home variable where IDEasy isn't expecting it.
19+
** Do `echo $HOME` to check that it points to path '/cygdrive/c/Users/<your-user-name>'
20+
** If not, change the home variable in your system settings accordingly or load the `.bashrc` file of IDEasy from within the `.bashrc` file of Cygwin: `source /cygdrive/c/Users/<your-user-name>/.bashrc && echo "IDEasy's bashrc loaded"`.
21+

0 commit comments

Comments
 (0)