[ome-users] Bioformats java error: "illegal character: \92"

Roger Leigh r.leigh at dundee.ac.uk
Tue Apr 15 23:12:55 BST 2014


On 15/04/2014 10:14, John Webber (NBI) wrote:

> I am trying to build openmicroscopy, but am encountering an error.  I
> see the following errors:
>
> D:\GitHub\openmicroscopy\components\bioformats\components\ome-xml\build\src\ome\
>
> xml\meta\AggregateMetadata.java:602: error: illegal character: \92
>
> When I look into the java file, I see “\” characters throughout the
> code, which are all resulting in the above error.
>
> As per the advice from Melisa on the following page:
> http://www.openmicroscopy.org/community/viewtopic.php?f=6&t=7386,  I
> have tried to configure Git to respect the repository’s line endings
> with the following commands:
>
> git config --global --add core.autocrlf input
>
> git rm --cached -r .
> git reset --hard

Maybe also do this for each of the submodules?

> However, I am still seeing the same issue:  a huge number of the
> “illegal character” errors.
>
> I have tried to remove these characters and re-run the build, but these
> files are re-generated with the incorrect “\” characters.
>
> Please can someone give me any pointers as to what has gone wrong?

This should be sufficient to fix the problem with the trailing
backslashes.  Maybe also try running git config --local as well just in
case the global settings are being explitly overridden?  Additionally,
you could try switching branches in case the above didn't force a
complete re-checkout of the sources.  Worst case, maybe re-clone the
repo to be sure you're not running into any other issues with local
configuration inside the existing clone.

You might also wish to pick up:
   https://github.com/openmicroscopy/bioformats/pull/1052/files
which corrects an additional line-ending problem on Windows which you
might run into /after/ getting the above problem resolved.


Regards,
Roger

--
Dr Roger Leigh -- Open Microscopy Environment
Wellcome Trust Centre for Gene Regulation and Expression,
College of Life Sciences, University of Dundee, Dow Street,
Dundee DD1 5EH Scotland UK   Tel: (01382) 386364

The University of Dundee is a registered Scottish Charity, No: SC015096



More information about the ome-users mailing list