You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
providers.v:151:3: error: `errors.PeonyError` doesn't implement method `create` of interface `providers.BlobProvider`
149 | fn (mut app App) get_blob_provider_instance() !&providers.BlobProvider {
150 | mut entry := app.providers.blob or {
151 | return errors.internal('No blob provider is installed', 'app.providers.blob is none')
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
152 | }
153 |
providers.v:151:3: error: `errors.PeonyError` doesn't implement method `delete` of interface `providers.BlobProvider`
149 | fn (mut app App) get_blob_provider_instance() !&providers.BlobProvider {
150 | mut entry := app.providers.blob or {
151 | return errors.internal('No blob provider is installed', 'app.providers.blob is none')
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
152 | }
153 |
providers.v:156:4: error: `errors.PeonyError` doesn't implement method `create` of interface `providers.BlobProvider`
154 | instance := entry.instance or {
155 | new_instance := entry.factory() or {
156 | return errors.internal('Failed to get new blob provider instance', err.msg())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
157 | }
158 | return new_instance
providers.v:156:4: error: `errors.PeonyError` doesn't implement method `delete` of interface `providers.BlobProvider`
154 | instance := entry.instance or {
155 | new_instance := entry.factory() or {
156 | return errors.internal('Failed to get new blob provider instance', err.msg())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
157 | }
158 | return new_instance
errors.PeonyError implements IError, but this function thinks I am returning providers.BlobProvider instead.
Reproduction Steps
git clone https://github.com/einar-hjortdal/peony.git
cd peony
git checkout c352965f3b2b446ab0b25444792b6aaccf72237d
v install
v run tests/peony_test.v
Expected Behavior
Other errors, not this one.
Current Behavior
error: errors.PeonyError doesn't implement method delete of interface providers.BlobProvider
Describe the bug
In this function I am getting these compiler errors
errors.PeonyErrorimplements IError, but this function thinks I am returningproviders.BlobProviderinstead.Reproduction Steps
Expected Behavior
Other errors, not this one.
Current Behavior
error:
errors.PeonyErrordoesn't implement methoddeleteof interfaceproviders.BlobProviderPossible Solution
No response
Additional Information/Context
No response
V version
V 0.5.2 667fbb9
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.