[JBoss JIRA] (ERT-418) JSON Editor improvement: enclose text within quotes [EBZ#501312]
by Ilya Buziuk (JIRA)
[ https://issues.jboss.org/browse/ERT-418?page=com.atlassian.jira.plugin.sy... ]
Ilya Buziuk updated ERT-418:
----------------------------
Sprint: (was: devex #123 November 2016)
> JSON Editor improvement: enclose text within quotes [EBZ#501312]
> ----------------------------------------------------------------
>
> Key: ERT-418
> URL: https://issues.jboss.org/browse/ERT-418
> Project: Eclipse Release Train
> Issue Type: Task
> Components: JSDT
> Reporter: Friendly Jira Robot
> Assignee: Victor Rubezhny
> Priority: Trivial
> Labels: General, bzira
>
> I propose to improve our JSON editor, with nice feature, that also concurrent editors are missing.
> When you write a sequence of characters without quotes, I'd like to press <CTRL+SPACE> and have the JSON editor proposing to "wrap previous text within quotes".
> The Wrap within quotes, should propose to wrap the text from the current position, back to the beginning of the line (or to the first special character), excluding whitespaces before and after the text sequence, but preserving spaces within the words (case of multiple words).
> Examples:
> Case 1:
> "my object":{
> bla bla bla bla|<CTRL+SPACE> ==> <WRAP>
> result:
> "my object":{
> "bla bla bla bla"|
> Case 2 :
> "my-list": [
> {language|<CTRL+SPACE> ==> <WRAP>
> Result:
> "my-list": [
> {"language"|
>
> Case 3 :
> "a value": this is my beautiful text|<CTRL+SPACE> ==> <WRAP>
> Result:
> "a value": "this is my beautiful text"|
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 4 months
[JBoss JIRA] (ERT-214) Validate JSON file with JSON Schema [EBZ#494111]
by Ilya Buziuk (JIRA)
[ https://issues.jboss.org/browse/ERT-214?page=com.atlassian.jira.plugin.sy... ]
Ilya Buziuk updated ERT-214:
----------------------------
Sprint: devex #116 June 2016, devex #118 July 2016, devex #124 December 2017 (was: devex #116 June 2016, devex #118 July 2016, devex #123 November 2016)
> Validate JSON file with JSON Schema [EBZ#494111]
> ------------------------------------------------
>
> Key: ERT-214
> URL: https://issues.jboss.org/browse/ERT-214
> Project: Eclipse Release Train
> Issue Type: Task
> Components: WTP Source Editing
> Reporter: Friendly Jira Robot
> Assignee: Victor Rubezhny
> Priority: Trivial
> Labels: bzira, wst.json
> Fix For: Neon.2 (4.6)
>
>
> It's a very big task, but it should be fantastic if WTP Validator could validate JSON file by using JSON Schema.
> To do that:
> * JSONSchemaDocument should support the full specification of JSON Schema.
> * minimal-json should be improved to collect line, column or perhaps we could use IJSONDocument to validate it with JSON Schema.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 4 months
[JBoss JIRA] (ERT-383) JSONEditor: NPE when working with an array of objects [EBZ#497261]
by Ilya Buziuk (JIRA)
[ https://issues.jboss.org/browse/ERT-383?page=com.atlassian.jira.plugin.sy... ]
Ilya Buziuk updated ERT-383:
----------------------------
Sprint: devex #124 December 2017 (was: devex #123 November 2016)
> JSONEditor: NPE when working with an array of objects [EBZ#497261]
> ------------------------------------------------------------------
>
> Key: ERT-383
> URL: https://issues.jboss.org/browse/ERT-383
> Project: Eclipse Release Train
> Issue Type: Task
> Components: WTP Source Editing
> Reporter: Friendly Jira Robot
> Assignee: Victor Rubezhny
> Labels: bzira, wst.json
> Fix For: Neon.2 (4.6)
>
>
> I have not been able to reproduce this consistently, but here it goes:
> Create a JSON file with following content:
> {
> "thirdaddition": true,
> "name": "JSONEditorTest2",
> "secondaddition": 2,
> "description": "JSONEditorTest description2",
> "version": "1.0.1",
> "main": "app.js",
> "scripts": {
> "start": "node app.js"
> },
> "array_of_objects": [{"abc": 1234}, {"value": 1234 }]]}}}}}}]}],
> "value": "test",
> "anothervalue": "1234"
> }
> When adding and removing (invalid) closing brackets, then modifying the value of the second array element (value), I tend to see this exception:
> java.lang.NullPointerException
> at org.eclipse.wst.json.core.internal.document.JSONModelParser.changeAttrValue(JSONModelParser.java:89)
> at org.eclipse.wst.json.core.internal.document.JSONModelParser.changeRegion(JSONModelParser.java:131)
> at org.eclipse.wst.json.core.internal.document.JSONModelImpl.regionChanged(JSONModelImpl.java:654)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:542)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1180)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1964)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2423)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2408)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$2(JobSafeStructuredDocument.java:1)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$3.run(JobSafeStructuredDocument.java:141)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:144)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replace(BasicStructuredDocument.java:2368)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$0(JobSafeStructuredDocument.java:1)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$1.run(JobSafeStructuredDocument.java:103)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replace(JobSafeStructuredDocument.java:106)
> at org.eclipse.jface.text.projection.ProjectionTextStore.replace(ProjectionTextStore.java:103)
> at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1094)
> at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1119)
> at org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:625)
> at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:233)
> at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7374)
> at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:8225)
> at org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2334)
> at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:7164)
> at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:6022)
> at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:6049)
> at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5733)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4248)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1501)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1509)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1538)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1534)
> at org.eclipse.swt.widgets.Canvas.sendKeyEvent(Canvas.java:515)
> at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:1090)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:5817)
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
> at org.eclipse.swt.internal.cocoa.NSResponder.interpretKeyEvents(NSResponder.java:68)
> at org.eclipse.swt.widgets.Composite.keyDown(Composite.java:610)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:5727)
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
> at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
> at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2140)
> at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2402)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:5789)
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
> at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5218)
> at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5367)
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
> at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3695)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 4 months
[JBoss JIRA] (ERT-428) On projects with builders JavaScript Validator and Validation xml files are validated twice and error markers are duplicated [EBZ#495625]
by Ilya Buziuk (JIRA)
[ https://issues.jboss.org/browse/ERT-428?page=com.atlassian.jira.plugin.sy... ]
Ilya Buziuk updated ERT-428:
----------------------------
Sprint: devex #124 December 2017 (was: devex #123 November 2016)
> On projects with builders JavaScript Validator and Validation xml files are validated twice and error markers are duplicated [EBZ#495625]
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: ERT-428
> URL: https://issues.jboss.org/browse/ERT-428
> Project: Eclipse Release Train
> Issue Type: Task
> Components: JSDT
> Reporter: Friendly Jira Robot
> Assignee: Victor Rubezhny
> Labels: General, bzira
>
> When a project has enabled builders JavaScript Validator and Validation, org.eclipse.wst.xml.core.internal.validation.eclipse.Validator is called twice from org.eclipse.wst.validation.internal.ValManager and all results are summed. As the result, validation error messages are duplicated.
> ValBuilderJob.runInWorkspace() has a loop in which it repeats validation until getRequest() returns null. Then ValManager.validate(IProject,...) calls delete markers, but it works only for the first call, it is designed to accumulate markers created in multiple calls from ValBuilderJob during the same build.
> Two requests that make the same file to be validated twice come independently from
> 1) org.eclipse.wst.validation.internal.operations.ValidationBuilder
> 2) org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder
> by method newBuild().
> When I disable JavaScript Validator in project properties in section Builders, there is no more duplication of markers.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 4 months
[JBoss JIRA] (ERT-424) ClassCastException in JSONModelParser.insertValue [EBZ#502183]
by Ilya Buziuk (JIRA)
[ https://issues.jboss.org/browse/ERT-424?page=com.atlassian.jira.plugin.sy... ]
Ilya Buziuk updated ERT-424:
----------------------------
Sprint: devex #124 December 2017 (was: devex #123 November 2016)
> ClassCastException in JSONModelParser.insertValue [EBZ#502183]
> --------------------------------------------------------------
>
> Key: ERT-424
> URL: https://issues.jboss.org/browse/ERT-424
> Project: Eclipse Release Train
> Issue Type: Task
> Components: WTP Source Editing
> Reporter: Friendly Jira Robot
> Assignee: Victor Rubezhny
> Labels: bzira, wst.json
>
> The following problem was reported via the automated error reporting:
> Message: org.eclipse.wst.json.core.internal.document.JSONDocumentImpl cannot be cast to org.eclipse.wst.json.core.internal.document.JSONPairImpl
> java.lang.ClassCastException: org.eclipse.wst.json.core.internal.document.JSONDocumentImpl cannot be cast to org.eclipse.wst.json.core.internal.document.JSONPairImpl
> at org.eclipse.wst.json.core.internal.document.JSONModelParser.insertValue(JSONModelParser.java:904)
> at org.eclipse.wst.json.core.internal.document.JSONModelParser.insertStructuredDocumentRegion(JSONModelParser.java:854)
> at org.eclipse.wst.json.core.internal.document.JSONModelParser.replaceStructuredDocumentRegions(JSONModelParser.java:1706)
> at org.eclipse.wst.json.core.internal.document.JSONModelImpl.handleRefresh(JSONModelImpl.java:411)
> at org.eclipse.wst.json.core.internal.document.JSONModelImpl.nodesReplaced(JSONModelImpl.java:599)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:600)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1198)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1979)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2423)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2408)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$2(JobSafeStructuredDocument.java:1)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$3.run(JobSafeStructuredDocument.java:141)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:144)
> at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replace(BasicStructuredDocument.java:2368)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$0(JobSafeStructuredDocument.java:1)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$1.run(JobSafeStructuredDocument.java:103)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149)
> at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replace(JobSafeStructuredDocument.java:106)
> at org.eclipse.jface.text.projection.ProjectionTextStore.replace(ProjectionTextStore.java:103)
> at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1094)
> at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1119)
> at org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:625)
> at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:233)
> at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7374)
> at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:8225)
> at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2530)
> at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:6018)
> at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:6049)
> at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5733)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> Bundles:
> | org.eclipse.core.runtime | 3.12.0.v20160606-1342 | 3.12.0.v20160606-1342 |
> | org.eclipse.e4.core.di | 1.6.0.v20160319-0612 | 1.6.0.v20160319-0612 |
> | org.eclipse.jface | 3.12.0.v20160518-1929 | 3.12.0.v20160518-1929 |
> | org.eclipse.jface.text | 3.11.0.v20160505-1301 | 3.11.0.v20160505-1301 |
> | org.eclipse.swt | 3.105.0.v20160603-0902 | 3.105.0.v20160603-0902 |
> | org.eclipse.ui | 3.108.0.v20160518-1929 | 3.108.0.v20160518-1929 |
> | org.eclipse.wst.json.core | 1.0.100.v201608161657 | 1.0.100.v201608161657 |
> | org.eclipse.wst.sse.core | 1.1.1000.v201608061824 | 1.1.1000.v201608061824 |
> | org.eclipse.wst.sse.ui | 1.3.500.v201605120129 | 1.3.500.v201605120129 |
> Operating Systems:
> | Windows | 6.3.0 | 6.3.0 |
> The above information is a snapshot of the collected data. Visit https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/57dd6... for the latest data.
> Thank you for your assistance.
> Your friendly error-reports-inbox.
> Created on behalf of vrubezhny(a)xxxxxx.xxx
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 4 months