wakatime / vscode-wakatime

Visual Studio Code plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/vs-code
BSD 3-Clause "New" or "Revised" License
1.21k stars 134 forks source link

Repeating error of "Error: unknown flag: --file-expert" #327

Closed MostHated closed 1 year ago

MostHated commented 1 year ago

Recently, I started getting this error repeatedly. I truncated the flags, as it just shows all of the available cli flags. I thought perhaps it was a mistype of "--file-export", but then that flag doesn't exist in the list either, so I am not sure what it was supposed to be.

2023-02-03 20:44:27.134 [error] [Extension Host] [WakaTime][ERROR] Error: unknown flag: --file-expert
Usage:
  wakatime-cli [flags]

Flags:
      --alternate-branch string          Optional alternate branch name. Auto-detected branch takes priority.
      --alternate-language string        Optional alternate language name. Auto-detected language takes priority.
      --alternate-project string         Optional alternate project name. Auto-detected project takes priority.
      --api-url string                   API base url used when sending heartbeats and fetching code stats. Defaults to https://api.wakatime.com/api/v1/.
      --category string                  Category of this heartbeat activity. Can be "coding", "building", "indexing", "debugging", "running tests", "writing tests", "manual testing", "code reviewing", "browsing", or "designing". Defaults to "coding".
      --config string                    Optional config file. Defaults to '~/.wakatime.cfg'.
      --config-read string               Prints value for the given config key, then exits.
      --config-section string            Optional config section when reading or writing a config key. Defaults to [settings]. (default "settings")
      ...
time="2023-02-03T20:44:27-06:00" level=fatal msg="failed to run wakatime-cli: unknown flag: --file-expert"

2023-02-03 20:45:40.904 [error] [Extension Host] [WakaTime][ERROR] Error: unknown flag: --file-expert
Usage:
  wakatime-cli [flags]

Flags:
      --alternate-branch string          Optional alternate branch name. Auto-detected branch takes priority.
      --alternate-language string        Optional alternate language name. Auto-detected language takes priority.
      --alternate-project string         Optional alternate project name. Auto-detected project takes priority.
      --api-url string                   API base url used when sending heartbeats and fetching code stats. Defaults to https://api.wakatime.com/api/v1/.
      --category string                  Category of this heartbeat activity. Can be "coding", "building", "indexing", "debugging", "running tests", "writing tests", "manual testing", "code reviewing", "browsing", or "designing". Defaults to "coding".
      --config string                    Optional config file. Defaults to '~/.wakatime.cfg'.
      --config-read string               Prints value for the given config key, then exits.
      --config-section string            Optional config section when reading or writing a config key. Defaults to [settings]. (default "settings")
    ...
time="2023-02-03T20:45:40-06:00" level=fatal msg="failed to run wakatime-cli: unknown flag: --file-expert"
alanhamlett commented 1 year ago

Try upgrading the plugin to v24.0.3, that should fix it.