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

Unhandled Exception: FileSystemException: Cannot open file, path = '/Users/apple/Library/Preferences/io.wiredash/wiredash_example #575

Open
gedw99 opened this issue Mar 10, 2021 · 1 comment
Labels
plugin Issue about an existing or possible plugin

Comments

@gedw99
Copy link

gedw99 commented Mar 10, 2021

I am porting https://github.com/wiredashio/wiredash-sdk to work with go-flutter.

There were zero changes to do.
When compiling with the standard flutter compiler it works.

But, when compiling it with hover it fails with :
Unhandled Exception: FileSystemException: Cannot open file, path = '/Users/apple/Library/Preferences/io.wiredash/wiredash_example

The fix was to make the folder and then everything works

mkdir -p /Users/apple/Library/Preferences/io.wiredash/wiredash_example

SO makes me wonder if the hover plugin has a bug ?
Maybe add creation of the Folders as part of the code generated code below ?

package main

// DO NOT EDIT, this file is generated by hover at compile-time for the path_provider plugin.

import (
	flutter "github.com/go-flutter-desktop/go-flutter"
	path_provider "github.com/go-flutter-desktop/plugins/path_provider"
)

func init() {
	// Only the init function can be tweaked by plugin maker.
	options = append(options, flutter.AddPlugin(&path_provider.PathProviderPlugin{
		VendorName:      flutter.ProjectOrganizationName,
		ApplicationName: flutter.ProjectName,
	}))
}
@gedw99
Copy link
Author

gedw99 commented Mar 10, 2021

Everything works btw works fine when compiling with hover on Mac, Windows and Linux

@pchampio pchampio added the plugin Issue about an existing or possible plugin label Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin Issue about an existing or possible plugin
Development

No branches or pull requests

2 participants