MobileNativeFoundation / MobileNativeFoundation/XCLogParser

Displaying the nearest matching/all available project names when no --project is found

Open
#118 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
1.9k
Forks
138
PR merge metrics
No merged PRs in 30d

Description

Hi!

Right now, if you pass xclogparser the --project option and give it an incorrect project name, LogFinder throws an error

    Error. There is no directory for the project \(name) in the DerivedData
    folder in \(derivedDataDir.path). Please specify the path to the xcactivitylog
    with --file or the right DerivedData folder with --derived_data

Would it be possible to include in the message the nearest matching/all projects available in the DerivedData directory? I would find this helpful if, for example, I incorrectly enter a --project name and don't easily have the ability to inspect the DerivedData directory.

Happy to submit a PR if so, just curious if that's intentionally been omitted and if this would be welcomed. Also - love the project - and thanks for publishing it!

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by locating LogFinder's handling of an invalid --project name and read how projects are found in the DerivedData directory. Done means the existing error identifies the nearest matching or all available project names when no project directory matches.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.