armarx-setup init appears to sometimes "lose" characters of provided workspace directory
I tried to create a new workspace in the following path ~/projects/armarx/ethercat_dev_ws
. However for some reason the setup-script changed this path to ~/projects/arx/ethercat_dev_ws
.
A little bit of testing revealed that this seems to only be happening with that specific string. The command works fine with for example ~/projects/armarx/test_ws
.
@dreher Is aware of this strange bug
10:15:24 reither@i61nb085:~/projects/armarx/ethercat_dev_ws
$ armarx-setup init
Initialize a new workspace.
Specify the workspace.
Enter the workspace directory (leave empty for '~/code/'): ~/projects/armarx/ethercat_dev_ws
Enter the workspace name (leave empty for 'ethercat_dev_ws'):
Set 'ARMARX_WORKSPACE=/home/reither/projects/arx/ethercat_dev_ws'
Set 'ARMARX_USER_CONFIG_DIR=/home/reither/projects/arx/ethercat_dev_ws/armarx_config'
You can source '/home/reither/projects/arx/ethercat_dev_ws/armarx-workspace.rc' to activate the workspace.
Among others, this sets the $ARMARX_WORKSPACE environment variable.
Should I add 'source /home/reither/projects/arx/ethercat_dev_ws/armarx-workspace.rc' to your '~/.bashrc'? (y/n) n
Creating workspace at '/home/reither/projects/arx/ethercat_dev_ws' with config:
Creating workspace 'ethercat_dev_ws'.
Create directory '/home/reither/projects/arx/ethercat_dev_ws'.
Write config at '/home/reither/projects/arx/ethercat_dev_ws/armarx-workspace.json'.
Write env file '/home/reither/projects/arx/ethercat_dev_ws/armarx-workspace.rc'.
10:16:13 reither@i61nb085:~/projects/armarx/ethercat_dev_ws
10:18:14 reither@i61nb085:~/projects/armarx/ethercat_dev_ws
$ ..
10:18:29 reither@i61nb085:~/projects/armarx
$ ..
10:18:31 reither@i61nb085:~/projects
$ l
total 52
drwxr-xr-x 13 reither reither 4096 Dez 23 10:16 .
drwxr-xr-x 88 reither reither 4096 Dez 21 14:05 ..
drwxrwxr-x 5 reither reither 4096 Dez 23 10:15 armarx
drwxrwxr-x 4 reither reither 4096 Sep 29 14:45 armarx_integration_old
drwxrwxr-x 3 reither reither 4096 Dez 23 10:16 arx
drwxrwxr-x 3 reither reither 4096 Nov 19 10:16 cubeide-workspace-temp
drwxrwxr-x 6 reither reither 4096 Jan 13 2020 FPGA
drwxrwxr-x 8 reither reither 4096 Nov 5 11:24 h2t
drwxrwxr-x 13 reither reither 4096 Nov 15 10:32 Imagine
drwxrwxr-x 7 reither reither 4096 Feb 19 2021 KITHand
drwxrwxr-x 9 reither reither 4096 Sep 6 13:54 MyProjects
drwxrwxr-x 4 reither reither 4096 Mai 31 2021 python_environments
drwxrwxr-x 11 reither reither 4096 Nov 15 12:13 redmine
10:18:31 reither@i61nb085:~/projects
$ cd arx/
10:18:39 reither@i61nb085:~/projects/arx
$ l
total 12
drwxrwxr-x 3 reither reither 4096 Dez 23 10:16 .
drwxr-xr-x 13 reither reither 4096 Dez 23 10:16 ..
drwxrwxr-x 2 reither reither 4096 Dez 23 10:16 ethercat_dev_ws
(.venv) 10:18:41 reither@i61nb085:~/projects/arx
$ cd ethercat_dev_ws/
10:18:45 reither@i61nb085:~/projects/arx/ethercat_dev_ws
$ l
total 16
drwxrwxr-x 2 reither reither 4096 Dez 23 10:16 .
drwxrwxr-x 3 reither reither 4096 Dez 23 10:16 ..
-rw-rw-r-- 1 reither reither 57 Dez 23 10:16 armarx-workspace.json
-rw-rw-r-- 1 reither reither 268 Dez 23 10:16 armarx-workspace.rc
10:18:45 reither@i61nb085:~/projects/arx/ethercat_dev_ws