Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

[Fix] Edge case of GIT-VS-VERSION-GEN failure.

#48

During rare instances the version generator can fail even though a build would have succeeded. This can happen when a merge was being done that resulted in conflicts, but those conflicts are resolved by a mergetool automatically leaving the previously conflicted file in an 'Unmerged' state.

Add error message output to the version generator script stating that the working tree is not prepared for build testing, and allow for the --force option to start the build anyway.

Reported by Thell Fowler · October 29th, 2010 @ 08:48 PM

State: resolved
Milestone: v2.0.0
Assigned to: nobody

Activity

  1. Thell Fowler
    Thell Fowler
    • State changed from new to open

    Example script error output:

    1>------ Rebuild All started: Project: notepadPlus, Configuration: Release Win32 ------
    1>Deleting intermediate and output files for project 'notepadPlus', configuration 'Release|Win32'
    1>Runtime build and version generation.
    1>>>The working tree index is not prepared for build testing!
    1>>>Please check git status or use --force to ignore the index state.
    1>Project : error PRJ0019: A tool returned an error code from "Runtime build and version generation."
    1>Build Time 0:02
    1>Build log was saved at "file://c:\Users\almostautomated\datastore\repos\git\npp-community-setup\PowerEditor\visual.net\Release\BuildLog.htm"
    1>notepadPlus - 1 error(s), 0 warning(s)
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

    Adding --force to the calling command results in successful version generation.

    October 29th, 2010 @ 09:31 PM

  2. Thell Fowler
    Thell Fowler

    (from [7f5d7630dfc02fa377064cad2b84cbdd42e02f45]) GIT-VS-VERSION-GEN: handle unmerged files index

    • Make unmerged files in index issue an informative message and allow the --force flag to ignore the working tree state and cause the VS build to run anyway.

    [#48 [Fix] Edge case of GIT-VS-VERSION-GEN failure.]

    Signed-off-by: Thell Fowler git@tbfowler.name
    http://github.com/almostautomated/npp-community/commit/7f5d7630dfc0...

    October 29th, 2010 @ 09:51 PM

  3. Thell Fowler
  4. Thell Fowler
    Thell Fowler
    • State changed from open to needs_ack

    October 29th, 2010 @ 11:17 PM

  5. Jocelyn Legault
    Jocelyn Legault
    • State changed from needs_ack to acked

    October 29th, 2010 @ 11:18 PM

  6. Thell Fowler
    Thell Fowler

    (from [513282a3b3307456d6e6f39957c58972bb630aba]) Project Files: remove cache file on project clean

    • When vcbuild cleans the project the cache file should also be removed.

    [#48 [Fix] Edge case of GIT-VS-VERSION-GEN failure.]

    Signed-off-by: Thell Fowler git@tbfowler.name
    http://github.com/npp-community/npp-community/commit/513282a3b33074...

    October 31st, 2010 @ 08:11 PM

  7. Thell Fowler
    Thell Fowler
    • State changed from acked to resolved
    • Assigned user cleared.

    This trivial patch was fast-tracked into master.

    October 31st, 2010 @ 08:13 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.