Bug 182302 - [PATCH] some display fixes
Summary: [PATCH] some display fixes
Status: RESOLVED FIXED
Alias: None
Product: Linux Tools
Classification: Tools
Component: RPM (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: RPM Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-04-13 07:17 EDT by Alphonse Van Assche CLA
Modified: 2009-01-23 10:26 EST (History)
1 user (show)

See Also:


Attachments
some-display-fixes-on527 (4.48 KB, patch)
2007-04-13 07:18 EDT, Alphonse Van Assche CLA
overholt: iplog+
Details | Diff
clean-check-section.png (4.97 KB, image/png)
2007-04-13 07:19 EDT, Alphonse Van Assche CLA
no flags Details
comment-not reconize-in-packages-context.png (3.59 KB, image/png)
2007-04-13 07:20 EDT, Alphonse Van Assche CLA
no flags Details
Name-not correcly-parsed.png (13.94 KB, image/png)
2007-04-13 07:20 EDT, Alphonse Van Assche CLA
no flags Details
patch-printscreen.png (10.52 KB, image/png)
2007-04-13 07:21 EDT, Alphonse Van Assche CLA
no flags Details
requires(hint).png (8.48 KB, image/png)
2007-04-13 07:22 EDT, Alphonse Van Assche CLA
no flags Details
underscore-in-package.png (4.62 KB, image/png)
2007-04-13 07:22 EDT, Alphonse Van Assche CLA
no flags Details
package names as sub-names of other package names (3.83 KB, image/png)
2007-04-13 10:05 EDT, Andrew Overholt CLA
no flags Details
Fix: package names as sub-names of other package names (1.70 KB, text/x-patch)
2007-04-14 07:26 EDT, Alphonse Van Assche CLA
overholt: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alphonse Van Assche CLA 2007-04-13 07:17:51 EDT
This patch try to remove all the display bugs that I have see, so I have make printscreens of it and try to solve these bugs 1 by 1.

Just one bug is not fixed see patch-printscreen.png. Patch: is used in more than 40 Fedora extras specfiles. If somebody with knowledge of the SpecfileParser code can take a look, he should certainly easily fix him as me.

Have remove (commented) the License acronym warning but I'm not sure if that's a good thing, IMHO not acronym License is too widely used to show this warning.

Cheers,

2007-04-14  Alphonse Van Assche  <alcapcom@gmail.com>

	* src/org/eclipse/linuxtools/rpm/ui/editor/PackageWordDetector.java 
	(isWordPart): Detect packages contain '_' char.
	* src/org/eclipse/linuxtools/rpm/ui/editor/parser/SpecfileParser.java
	(parseLine): Fix tags parsing.
	(parseSimpleDefinition): Don't show warning about acronym error.
	* src/org/eclipse/linuxtools/rpm/ui/editor/SpecfileScanner.java 
	(sections): Add %clean and %check section.
	* src/org/eclipse/linuxtools/rpm/ui/editor/SpecfilePackagesScanner.java 
	(PACKAGES_TAGS): Add Requires(hint)
	(SpecfilePackagesScanner): Add comment support.
Comment 1 Alphonse Van Assche CLA 2007-04-13 07:18:49 EDT
Created attachment 63719 [details]
some-display-fixes-on527
Comment 2 Alphonse Van Assche CLA 2007-04-13 07:19:39 EDT
Created attachment 63720 [details]
clean-check-section.png
Comment 3 Alphonse Van Assche CLA 2007-04-13 07:20:07 EDT
Created attachment 63721 [details]
comment-not reconize-in-packages-context.png
Comment 4 Alphonse Van Assche CLA 2007-04-13 07:20:38 EDT
Created attachment 63722 [details]
Name-not correcly-parsed.png
Comment 5 Alphonse Van Assche CLA 2007-04-13 07:21:06 EDT
Created attachment 63723 [details]
patch-printscreen.png
Comment 6 Alphonse Van Assche CLA 2007-04-13 07:22:04 EDT
Created attachment 63724 [details]
requires(hint).png
Comment 7 Alphonse Van Assche CLA 2007-04-13 07:22:33 EDT
Created attachment 63725 [details]
underscore-in-package.png
Comment 8 Andrew Overholt CLA 2007-04-13 10:05:57 EDT
Created attachment 63748 [details]
package names as sub-names of other package names

I've got another display issue:  partial RPM package names within others (ex. 'at' in the middle of 'java-gcj-compat').  Here's a screenshot.
Comment 9 Alphonse Van Assche CLA 2007-04-14 07:26:40 EDT
Created attachment 63817 [details]
Fix: package names as sub-names of other package names


With this patch we check packages in a more close way and fix that kind of bug.
I'm not sure, but that can slow down the scanning.

Have a nice weekend,
Alphonse

	* src/org/eclipse/linuxtools/rpm/ui/editor/PackageWordDetector.java 
	(isWordStart): Add support for packages begining with ' ' | ',' | '\t' | ':' char
	* src/org/eclipse/linuxtools/rpm/ui/editor/SpecfilePackagesScanner.java 
	(SpecfilePackagesScanner): Detect packages that begin with ' ' | ',' | '\t' | ':' char
Comment 10 Andrew Overholt CLA 2007-04-16 15:56:18 EDT
It would be great if we could have tests accompanying bug fixes like this so we can ensure that the fix actually does fix the issue.  Also, that will hopefully prevent the same issues from happening again :).

I see what you're saying about the Patch with no number issue:

Exception in thread "org.eclipse.jface.text.reconciler.MonoReconciler" java.lang.NumberFormatException: For input string: ""

Can you file a separate bug about that one?  Thanks.

Otherwise, all of the images you submitted seem to have been fixed!

Thanks for the patch.  Committed as rev. 612.
Comment 11 Alphonse Van Assche CLA 2007-04-17 06:59:54 EDT
(In reply to comment #10)
> It would be great if we could have tests accompanying bug fixes like this so we
> can ensure that the fix actually does fix the issue.  Also, that will hopefully
> prevent the same issues from happening again :).
:) 
> 
> I see what you're saying about the Patch with no number issue:
> 
> Exception in thread "org.eclipse.jface.text.reconciler.MonoReconciler"
> java.lang.NumberFormatException: For input string: ""
> 
> Can you file a separate bug about that one?  Thanks.

Ok, I do that now.

> Thanks for the patch.  Committed as rev. 612.
> 
Great!

Comment 12 Andrew Overholt CLA 2009-01-23 10:25:59 EST
Comment on attachment 63719 [details]
some-display-fixes-on527

Setting iplog flag.
Comment 13 Andrew Overholt CLA 2009-01-23 10:26:27 EST
Comment on attachment 63817 [details]
Fix: package names as sub-names of other package names

Setting iplog flag.