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

dswitch case error Failed to decode data using encoding 'utf-8', path = '/home/bsutton/.pub-cache/bin/dswitch' #5

Open
bsutton opened this issue Jun 4, 2021 · 0 comments

Comments

@bsutton
Copy link
Collaborator

bsutton commented Jun 4, 2021

After we compile dswitch if you run a pub global activate on any project you get the error:

Failed to decode data using encoding 'utf-8', path = '/home/bsutton/.pub-cache/bin/dswitch'

This is because pub expects dswitch to be a text file (script).

We may need to use a .sh script to launch the exe to get around this problem.

The problem with that approach is that current if you upgrade dswitch pub global replaces our compiled script which dswitch notices and tells the user to upgrade.
By changing to a .sh we will have to do something to check we are running the correct version when ever we launch.

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

No branches or pull requests

1 participant