Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup fails on windows: repository '_isNew' does not exist #921

Closed
hohwille opened this issue Oct 4, 2022 · 3 comments · Fixed by #922
Closed

Setup fails on windows: repository '_isNew' does not exist #921

hohwille opened this issue Oct 4, 2022 · 3 comments · Fixed by #922
Labels
bug Something isn't working setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup) windows specific for Microsoft Windows OS

Comments

@hohwille
Copy link
Member

hohwille commented Oct 4, 2022

Expected behavior

Installation of devonfw-ide works.

Actual behavior

Running from cmd.exe...
Setting up your devonfw-ide in D:\projects\myProject
Creating main workspace directory
devonfw-ide environment variables have been set for /d/projects/myProject in workspace main
Installing devon autocompletion
fatal: repository '_isNew' does not exist

******** ATTENTION ********
Failed to run command git
We are sorry for the inconvenience. Please check the above errors, resolve them and try again.
Exit code was 128
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
Setup of devonfw-ide completed
Press any key to continue . . .

D:\projects\myProject>devon ide setup
/usr/bin/bash: ./devon: No such file or directory
Installing devon autocompletion

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. download devonfw-ide-scripts-2022.08.002.tar.gz
  2. extract it to a new folder (I used D:\projects\myProject).
  3. run setup.bat

Related/Dependent Issues

#866

Comments/Hints:

See my review concerns in PR #883

Affected version:

  • OS: Windows
@hohwille hohwille added the bug Something isn't working label Oct 4, 2022
@hohwille hohwille added this to the release:2022.08.003 milestone Oct 4, 2022
@hohwille
Copy link
Member Author

hohwille commented Oct 4, 2022

The "hack" with the _isNew parameter breaks the setup as setup.bat is intentionally passing all parameters to devon ide setup so that e.g. the settings URL can be passed as argument.
I tried to add a shift command but in CMD everything is strange and odd so shift or shift 1 has no effect on the parameters and %1 remains to be _isNew.

Therefore I come back to what I initially suggested in the PR review to not use this "hack" of passing parameters but instead modify PSModulePath to prevent infinity loop.

@hohwille
Copy link
Member Author

hohwille commented Oct 4, 2022

As always CMD is an incredible collection of flaws:
https://ss64.com/nt/shift.html

SHIFT will not affect the value of %* which holds all the original arguments %1 %2 %3...

hohwille added a commit to hohwille/ide that referenced this issue Oct 4, 2022
@hohwille hohwille added the windows specific for Microsoft Windows OS label Oct 4, 2022
hohwille added a commit to hohwille/ide that referenced this issue Oct 4, 2022
hohwille added a commit that referenced this issue Oct 4, 2022
@hohwille hohwille linked a pull request Oct 4, 2022 that will close this issue
@hohwille
Copy link
Member Author

hohwille commented Oct 4, 2022

Done with PR #922.

@hohwille hohwille closed this as completed Oct 4, 2022
@hohwille hohwille added the setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup) label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup) windows specific for Microsoft Windows OS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant