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

u3d/install: improve messages #231

Merged
merged 2 commits into from
Jan 15, 2018

Conversation

niezbop
Copy link
Member

@niezbop niezbop commented Jan 15, 2018

This improves the output of the installer by making it more obvious what is happening, and make it similar to the downloader output.

@@ -63,7 +63,8 @@ def self.sanitize_installs(installer)
def self.install_modules(files, version, installation_path: nil)
installer = Installer.create
files.each do |name, file, info|
UI.verbose "Installing #{name}#{info['mandatory'] ? ' (mandatory package)' : ''}, with file #{file}"
Copy link
Member

Choose a reason for hiding this comment

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

We could use info['title'] as well somewhere.

Note: do this make the console much more verbose?

Copy link
Member Author

Choose a reason for hiding this comment

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

Regarding verbose, this adds a few extra lines, but I really feel like the added cost is overweight by the increase readability, ie
Before:

$ C:/Users/pniez/Downloads/Unity_Packages/2018.1.0b2/UnitySetup64.exe -UI=reduced /S /D=C:\Program Files\Unity_2018.1.0b2
No pty implementation found. Falling back to popen. Output might be buffered
Successfully installed Unity 2018.1.0b2

After:

--------------------------------
--- Installing Documentation ---
--------------------------------
Installing with C:/Users/pniez/Downloads/Unity_Packages/2017.1.2f1/UnityDocumentationSetup.exe
$ C:/Users/pniez/Downloads/Unity_Packages/2017.1.2f1/UnityDocumentationSetup.exe /S /D=C:\Program Files\Unity_2017.1.2f1
No pty implementation found. Falling back to popen. Output might be buffered
Successfully installed Documentation

WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

OK. Any use of info['title']?

Copy link
Member Author

Choose a reason for hiding this comment

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

Already implemented :)

@niezbop niezbop merged commit 1858029 into DragonBox:master Jan 15, 2018
@niezbop niezbop deleted the install/better_messages branch January 15, 2018 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants