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

Fixed the issue with installing host profiles after moving .visit directory #4026

Merged
merged 2 commits into from Nov 9, 2019

Conversation

griffin28
Copy link
Contributor

@griffin28 griffin28 commented Nov 8, 2019

Description

In rare cases when the user moves or deletes their .visit directory all the directories in the path need to be recreated. The call to mkdir in the previous GetAndMakeUserVisItHostsDirectory called didn't do that and there were no checks for successful creation of the hosts directory. The call to get the hosts directory was split from making the directory so mkpath could be used to create all the parent directories if needed. Successful creation is now checked and if it fails the appropriate debug log message is created.

Resolves #3741

Type of change

Please select one below (Please click check boxes AFTER submitting ticket)

  • Bug fix
  • New feature
  • New Documentation
  • Other (please describe below)

How Has This Been Tested?

Built and ran VisIt with the changes and verified that it worked.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the release notes
  • New and existing unit tests pass locally with my changes
  • I have assigned reviewers (see VisIt's PR procedures for more information).

moving or deleting the .visit directory while VisIt is running.
Copy link
Member

@cyrush cyrush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding the root case and resolving.

Looks good to me!

@@ -27,6 +27,7 @@
<li>Fixed bug with VTK reader parsing .vtm files when 'DataSet' tag doesn't have a 'file' attribute.</li>
<li>Disable VCR play/reverse play buttons when there is not active drawn plot.</li>
<li>Fixed inability to Pick on glyphed points lying near the dataset bounds.</li>
<li>Fixed the issue with installing host profiles after deleting or moving the .visit folder while VisIt is running.</li>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the "while VisIt is running" necessary.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized that VisIt probably creates the ".visit" directory when it runs, so the only way it can be missing is if it deleted or moved while VisIt is running, so the clause is appropriate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes...this issue only happened when VisIt was running since the parent directories need to be recreated which mkdir didn't do. If the .visit dir is moved when VisIt is not running, during startup VisIt would create the parent directories.

@griffin28 griffin28 merged commit 338e15e into 3.0RC Nov 9, 2019
@griffin28 griffin28 deleted the bug/griffin28/hostprofiles branch November 27, 2019 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants