[BUG] JEFIT import fails because # characters are not recognised

Open Beginner friendly
#396 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@nihaltp is already working on this.

Since Nov 15, 2026.

  • #397 by @nihaltp — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
dart, flutter
Domain
data, mobile

Research direction

The JEFIT detection and section extraction live in lib/services/workout_import.dart around lines 346-348; start by reading that file and locating where the ### EXERCISE LOGS ### heading is matched and where section bodies are extracted. Adjust both regexes to allow extra decorative # characters, then test with a JEFIT CSV whose headings look like ### EXERCISE LOGS ####. Done means the file is detected as a JEFIT export and the expected date, exercise, reps and weight columns are parsed.

Written by the indexing model from the issue text.

Description

bug

What's wrong?

Importing a workout history CSV exported from JEFIT fails with the following error:

That file needs date, exercise, reps and weight columns

The exported file contains valid workout data, but GymMane does not recognise it as a JEFIT export.

I inspected the export and found that JEFIT uses section headings with decorative # characters.

### EXERCISE LOGS ####################################

JEFIT detection regex in workout_import.dart currently expects the heading to end immediately after three closing # characters CODE

RegExp(
  r'^\s*###\s*EXERCISE LOGS\s*###\s*$',
  multiLine: true,
  caseSensitive: false,
)

Because the actual headings contain additional # characters, the file is not detected as a JEFIT export. It subsequently falls back to the generic CSV importer, which cannot find the expected columns.

Suggested fix:

Make both JEFIT detection and section extraction tolerate additional decorative # characters.

Where in the app:

Settings → Import from another app

Dominant language
Dart
Stars
844
Forks
98
Avg merge
1d 2h
Merged PRs (30d)
11

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from InlitX/GymMane

All issues in InlitX/GymMane

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.