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
![image](https://private-user-images.githubusercontent.com/49318/327803058-6f9507b6-2e88-4c01-a069-cb6c70e18713.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzQ2MDc2ODksIm5iZiI6MTczNDYwNzM4OSwicGF0aCI6Ii80OTMxOC8zMjc4MDMwNTgtNmY5NTA3YjYtMmU4OC00YzAxLWEwNjktY2I2YzcwZTE4NzEzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjE5VDExMjMwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFkYzg0ZjVhZWUzYzU1YTc1MzI2MmY4NzE4MzdhMmZmNmM0MDllNmFhMTM0NzJmNWViNzA4OTE0ZWIxOTE4N2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.PLuKVeNbk2O9Rshmxq9Tca4GHGevaQc06KHczHubveg)
It handles Github MFA
From Github Desktop I selected a folder in my WSL2 filesystem
![image](https://private-user-images.githubusercontent.com/49318/327804649-ad79b108-a307-497b-97bb-6b26c625543e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzQ2MDc2ODksIm5iZiI6MTczNDYwNzM4OSwicGF0aCI6Ii80OTMxOC8zMjc4MDQ2NDktYWQ3OWIxMDgtYTMwNy00OTdiLTk3YmItNmIyNmM2MjU1NDNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjE5VDExMjMwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1OTg4Yjk1NTI0OGM2Yjk4NWNmMzFjNGJiNjhiOWM1ZjEwM2E3NjYyMjM3ZTQzNDMzMTk5N2EyYmQ5MTM2MDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wXI3wqAbx7ULV7YFfLmU0j8CSllTvV8bZJ990BJZQbk)
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: