WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
142520
Web Inspector: Inline Error / Warning message for Issues
https://bugs.webkit.org/show_bug.cgi?id=142520
Summary
Web Inspector: Inline Error / Warning message for Issues
Joseph Pecoraro
Reported
2015-03-09 19:19:21 PDT
* SUMMARY Inline Error / Warning message for Issues. Currently we highlight lines red/yellow for errors/warnings but we should show the warning itself inline. Likewise, they should work with pretty printing, since right now issues don't!
Attachments
[PATCH] Proposed Fix
(28.71 KB, patch)
2015-03-09 19:33 PDT
,
Joseph Pecoraro
timothy
: review+
Details
Formatted Diff
Diff
[IMAGE] Pre-Pretty-Printing
(175.58 KB, image/png)
2015-03-09 19:34 PDT
,
Joseph Pecoraro
no flags
Details
[IMAGE] Post-Pretty-Printing
(213.33 KB, image/png)
2015-03-09 19:34 PDT
,
Joseph Pecoraro
no flags
Details
[IMAGE] Expanded Errors/Warnings
(214.88 KB, image/png)
2015-03-09 19:35 PDT
,
Joseph Pecoraro
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2015-03-09 19:20:32 PDT
<
rdar://problem/19525240
>
Joseph Pecoraro
Comment 2
2015-03-09 19:33:46 PDT
Created
attachment 248309
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 3
2015-03-09 19:34:29 PDT
Created
attachment 248310
[details]
[IMAGE] Pre-Pretty-Printing
Joseph Pecoraro
Comment 4
2015-03-09 19:34:44 PDT
Created
attachment 248311
[details]
[IMAGE] Post-Pretty-Printing
Joseph Pecoraro
Comment 5
2015-03-09 19:35:42 PDT
Created
attachment 248312
[details]
[IMAGE] Expanded Errors/Warnings Note: Only truncated issues, or lines with multiple issues, are expandable. This cuts down on the awkwardness. Maybe we would want to do this when issues overlap content, but I didn't go that far. The developer can just resize.
Timothy Hatcher
Comment 6
2015-03-09 19:45:50 PDT
Comment on
attachment 248309
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=248309&action=review
> Source/WebInspectorUI/UserInterface/Models/LineWidget.js:26 > +WebInspector.LineWidget = function(codeMirrorLineWidget, widgetElement)
SourceCodeLineWidget? Something about the short class name makes me think it needs to be longer.
> Source/WebInspectorUI/UserInterface/Models/LineWidget.js:42 > + get codeMirrorLineWidget()
Makes me wonder if this class should have CodeMirror in the class name. But we don't use CodeMirror in this file so hmm...
> Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.css:75 > + padding-right: calc(9px + 3px);
Just flatten to 12px?
> Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js:811 > + // FIXME: Issue should have a SourceCodeLocation.
Yep!
> Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js:899 > + errorsCount++;
Prefix ++.
> Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js:901 > + warningsCount++;
Ditto.
> Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js:1217 > + for (var [lineNumber, widget] of this._widgetMap)
Maybe use .values() or [, widget]?
> Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js:1230 > + for (var i = 0; i < issues.length; ++i) { > + var issue = issues[i];
for (..of..)
Joseph Pecoraro
Comment 7
2015-03-09 19:55:28 PDT
(In reply to
comment #6
)
> Comment on
attachment 248309
[details]
> [PATCH] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=248309&action=review
> > > Source/WebInspectorUI/UserInterface/Models/LineWidget.js:26 > > +WebInspector.LineWidget = function(codeMirrorLineWidget, widgetElement) > > SourceCodeLineWidget? Something about the short class name makes me think it > needs to be longer. > > > Source/WebInspectorUI/UserInterface/Models/LineWidget.js:42 > > + get codeMirrorLineWidget() > > Makes me wonder if this class should have CodeMirror in the class name. But > we don't use CodeMirror in this file so hmm...
Hmm, yeah. This is mostly modeled after Models/TextMarker.js. Both should move to CodeMirror names eventually. For now I'll leave as is because it is nice that they are simple.
Joseph Pecoraro
Comment 8
2015-03-09 20:02:00 PDT
<
http://trac.webkit.org/changeset/181306
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug