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

improve offline capability #1153

Closed
hohwille opened this issue May 11, 2023 · 1 comment · Fixed by #1364
Closed

improve offline capability #1153

hohwille opened this issue May 11, 2023 · 1 comment · Fixed by #1364
Assignees
Labels
enhancement New feature or request setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup) software software-package with 3rd party products update related to updating software or the entire devonfw-ide

Comments

@hohwille
Copy link
Member

As a devonfw-ide user, I want to be able to work offline so that I remain productive in environments with bad or no internet connection (e.g. on business trips).

Obviously, I can not setup new tools or upgrade tools when I am offline.
However, when all has been setup but some setting has changed, I cannot run tools like eclipse when I am offline and get blocked.

$ devon eclipse
Updating eclipse from version 2023-03 to version 2023‑03...
Success: run command mkdir
Starting installation of eclipse in version 2023‑03 to /d/projects/MusicDoc/software/eclipse
fatal: unable to access 'https://github.com/devonfw/ide-mirrors.git/': Could not resolve host: github.com

******** ATTENTION ********
Can not update git repository: /d/projects/MusicDoc/mirrors
See above error for details - check your network connectivity and retry.
We are sorry for the inconvenience. Please check the above errors, resolve them and try again.

I see two issues here:

  1. why is he "updating" from version 2023-03 to version 2023‑03 as both versions seem identical?
  2. if we are offline we should allow the user a fallback option to continue. My suggestion would be to ask for confirmation by default in such case and add a CLI option (-o or --offline) that can suppress the interactive confimation/question (one could also use batch mode but somehow I think our approach with that is kind of flawed. Do we want to ask all questions with yes or with no in batch mode? If there is a question like "failed to update download urls - maybe you are offline. Do you want to skip the update?" the answer might be different than in case of "your settings folder does not have a .git folder and seems corrupted. Do you want to delete it and do a fresh clone?". Ideally we could ask the operating system if we are offline or not but that seems to be a general problem that is not so easy as you would expect it.
@hohwille hohwille added enhancement New feature or request software software-package with 3rd party products setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup) update related to updating software or the entire devonfw-ide labels May 11, 2023
@hohwille
Copy link
Member Author

For the record: my eclipse installation was still fully present and I could manually run devon and then eclipse to launch eclipse but first of all a user has to know such workaround and second this way you are losing features as we are doing more than just calling eclipse without args.

@hohwille hohwille assigned dendmicap and diiinesh and unassigned dendmicap Jun 6, 2023
diiinesh added a commit to diiinesh/ide that referenced this issue Oct 16, 2023
…adjusted the conditions for executing the functions doGitPullOrClone, DoUpdateUrls and doDownload when user is online, otherwise skip these functions.

Signed-off-by: diiinesh <63147290+diiinesh@users.noreply.github.com>
@hohwille hohwille added this to the release:2024.01.001 milestone Jan 5, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Jan 29, 2024
@tobka777 tobka777 moved this from 🆕 New to 🏗 In progress in IDEasy board Jan 29, 2024
@tobka777 tobka777 removed the status in IDEasy board Jan 29, 2024
@tobka777 tobka777 moved this to 🏗 In progress in IDEasy board Jan 29, 2024
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in IDEasy board Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup) software software-package with 3rd party products update related to updating software or the entire devonfw-ide
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants