question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin fails to install if already downloaded

See original GitHub issue

Describe the bug/issue If the plugin zip is already downloaded, installing the plugin will fail. This can happen when python is required for the plugin but it is not found after the user enters its location. When the user puts the correct location of python and tries to install the plugin again, it fails.

To Reproduce Steps to reproduce the behavior:

  1. Install steam plugin
  2. Fail to locate python
  3. Restart flow launcher
  4. Locate python in Settings
  5. Install steam plugin

Your System

Windows build number: 22000.376
Flow Launcher version: 1.9.1

Flow Launcher Error Log

10:49:59.1102+00:00 - ERROR - PluginsManager.InstallOrUpdate - An error occured while downloading plugin
EXCEPTION OCCURS: System.IO.IOException: The file 'C:\Users\me\scoop\apps\flow-launcher\current\app-1.9.1\UserData\Plugins\Steam Search-3.0.4.zip' already exists.
   at SafeFileHandle System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at SafeFileHandle System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at new System.IO.FileStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options) x 2
   at async Task Flow.Launcher.Infrastructure.Http.Http.DownloadAsync(string url, string filePath, CancellationToken token) in C:/projects/flow-launcher/Flow.Launcher.Infrastructure/Http/Http.cs:line 96
   at async Task Flow.Launcher.Plugin.PluginsManager.PluginsManager.InstallOrUpdate(UserPlugin plugin) in C:/projects/flow-launcher/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs:line 154

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
taooceroscommented, Jan 13, 2022

Unless there was an exception during the download & install process leaving behind the unextracted zip file?

Honestly not sure, I can’t find any more info in the logs either. Maybe it’s worth catching such an exception.

(Btw, it’s quite hard to sift through the logs because of hundreds of Flow.Launcher.Plugin.WindowsSettings.Main.TranslateAllSettings - Resource string for [xxx] not found errors!)

We are planning to remove that 🤣. That’s too much.

1reaction
taooceroscommented, Jul 1, 2022

Hey @taooceros you have added this to 1.10.0, is it for reducing the warnings from the WindowsSettings plugin?

I think we should fix both either? I have already finish the resource for windowssetting plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

plugin installations are failing
plugin installations are failing · Download the ZIP file for the plugin from the Plugins Repository. · Navigate to Plugins > Add New....
Read more >
How To Fix the “Installation Failed: Destination Folder ...
One of the most common reasons for this error is that the uploaded software is already installed on your website. If you're installing...
Read more >
Trouble installing the plug-in?
Plug-in download fails · Click Tools > Internet Options. · Click the Security tab > Custom Level. · Scroll down to Downloads and...
Read more >
How to Fix Installation Failed: Destination Folder Already ...
It usually happens when a previous attempt to install or uninstall a theme or a plugin has failed, leaving behind an empty destination...
Read more >
Wordpress plugin install fail
Downloading install package from https://downloads.wordpress.org/plugin/types.1.8.11.zip… Unpacking the package… Installing the plugin… The ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found