Difficulties when using from Windows WSL2 Unbuntu #33
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
👀 👀 waiting commiter 👀 👀
Configuration
$ code .
from the repo root folder)Steps
Because having diffuculties with my ssh keys from Ubuntu, from https://github.com/green-code-initiative/ecoCode-common I clicked on the "Code" button and selected the "Open with Github Desktop" option
It handles Github MFA
From Github Desktop I selected a folder in my WSL2 filesystem
From the WSL2 Ubuntu, I went to the ecocode-common folder and launched VSCode
Then I opened the bash terminal from VSCode to do any required command line actions
(like I'm used to when using git or npm command on a project)
Faced issues
File execution property
When trying to execute
check_requirements.sh
the autocomplete didn't work./tools/check_requirements/ #no autocompletion here
I quickly uderstood I had to call
chmod
to make it executableand did the same thing to
_core.sh
Bad interpreter
Now that I could run it
I got a strange issue
It turned out that the file was in
CRLF
, idem for_core.sh
and all the filesIt looks like potentially the Github Desktop turned the files into
CRLF
Note that
CRLF
might be ok for the.bat
windows fileI tried to initiate an .
editorconfig
fileex:
but it may have to be also defined at a git config level
No such file or directory
Now that I was fixed I runned it again
I got a
_core.sh: No such file or directory
errorIt turned out that I had to go first in the script folder to hav it running
cd tools/check_requirements/ ./check_requirements.sh
javap: command not found
I did install Java 11 as I saw it required
but apparently my Java was not complete, What is this
javac
?( I'm a JavaScript developer sorry ;-) )
So I've been told to install the whole SDK coming with
Syntax error: invalid arithmetic operator
Once the JDK is installed (Hourra)
A new error came out
I was not able to fix that one
Maven check display error
A related error apperently also happened when checking the Maven version
The text was updated successfully, but these errors were encountered: