Skip to content

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

@bsutton

Description

@bsutton

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions