[JBoss JIRA] (ERT-382) Adding a new value to the JSON file collapses the Outline view [EBZ#497260]
by Friendly Jira Robot (JIRA)
Friendly Jira Robot created ERT-382:
---------------------------------------
Summary: Adding a new value to the JSON file collapses the Outline view [EBZ#497260]
Key: ERT-382
URL: https://issues.jboss.org/browse/ERT-382
Project: Eclipse Release Train
Issue Type: Task
Components: WTP Source Editing
Reporter: Friendly Jira Robot
This is part of the improvements that the Outline view require for JSON Editor
Steps:
Create a JSON file with the following content:
{
"thirdaddition": true,
"name": "JSONEditorTest2",
"secondaddition": 2,
"description": "JSONEditorTest description2",
"version": "1.0.1",
"main": "app.js",
"scripts": {
"start": "node app.js"
},
"anothervalue": 123
}
Put the cursor before "anothervalue" (right after closing "scripts"), and type "value": "test",
Notice that right after entering the comma, the "Outline" view collapses. There is no reason for that to happen, the tree should be expanded and showing the recently inserted node.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (ERT-385) [content assist] Don't show existing JSON keys in popup completion [EBZ#499538]
by Friendly Jira Robot (JIRA)
Friendly Jira Robot created ERT-385:
---------------------------------------
Summary: [content assist] Don't show existing JSON keys in popup completion [EBZ#499538]
Key: ERT-385
URL: https://issues.jboss.org/browse/ERT-385
Project: Eclipse Release Train
Issue Type: Task
Components: WTP Source Editing
Reporter: Friendly Jira Robot
Priority: Trivial
Takes a sample:
--------------------------------
{
"compileOnSave": true,
"compil // Ctrl+Space
}
--------------------------------
The popup completion should show only "compilerOptions" and not "compileOnSave". Today the popup shows "compilerOnSave" and "compilerOptions".
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (ERT-383) JSONEditor: NPE when working with an array of objects [EBZ#497261]
by Friendly Jira Robot (JIRA)
Friendly Jira Robot created ERT-383:
---------------------------------------
Summary: 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
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
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (ERT-384) [content assist] Generate comma if need when completion is applied [EBZ#499537]
by Friendly Jira Robot (JIRA)
Friendly Jira Robot created ERT-384:
---------------------------------------
Summary: [content assist] Generate comma if need when completion is applied [EBZ#499537]
Key: ERT-384
URL: https://issues.jboss.org/browse/ERT-384
Project: Eclipse Release Train
Issue Type: Task
Components: WTP Source Editing
Reporter: Friendly Jira Robot
Take a sample:
--------------------------------
{
"compiler // Ctrl+Space
}
--------------------------------
The completion apply generates (like today) this content:
--------------------------------
{
"compilerOptions": {}
}
--------------------------------
But in the case if user triggers the completion before a JSON key
--------------------------------
{
"compiler // Ctrl+Space
"compileOnSave": true
}
--------------------------------
a comma should be generated:
--------------------------------
{
"compilerOptions": {},
"compileOnSave": true
}
--------------------------------
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (JBDS-3829) Installer does not start properly when the user has control characters in the name
by Denis Golovin (JIRA)
[ https://issues.jboss.org/browse/JBDS-3829?page=com.atlassian.jira.plugin.... ]
Denis Golovin commented on JBDS-3829:
-------------------------------------
The only suspicious character here is #. Everything else is fine to be present in segment of URI.
I replace # to %23, because we know upfront we are not going to use URL's with anchors.
> Installer does not start properly when the user has control characters in the name
> ----------------------------------------------------------------------------------
>
> Key: JBDS-3829
> URL: https://issues.jboss.org/browse/JBDS-3829
> Project: Red Hat JBoss Developer Studio (devstudio)
> Issue Type: Bug
> Components: platform-installer
> Affects Versions: 9.1.0.CR1
> Reporter: Jan Richter
> Assignee: Denis Golovin
> Priority: Minor
> Labels: havoc
> Fix For: 10.1.0.AM3
>
>
> Surprisingly, windows allows usernames such as n&o#t.e-r!u(e)r
> With such a name, the installer does not even load the first page. It looks like it can't load some file, but I didn't get any error message out of it.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (JBIDE-22880) List of modules filtered by "deployed" is always empty on the ServerEditor Deployment tab
by Rob Stryker (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22880?page=com.atlassian.jira.plugi... ]
Rob Stryker updated JBIDE-22880:
--------------------------------
Fix Version/s: 4.4.1.Final
(was: 4.4.1.AM3)
> List of modules filtered by "deployed" is always empty on the ServerEditor Deployment tab
> -----------------------------------------------------------------------------------------
>
> Key: JBIDE-22880
> URL: https://issues.jboss.org/browse/JBIDE-22880
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.2.3.Final, 4.4.0.Final
> Environment: I've observed this problem on a Win7 64 bit machine with Oracle JRE 1.8.0_102 64 bit. It was present in both JBoss Developer Studio 8.1.0.GA and 10.0.0.GA when used in conjunction with embedded Maven installation and JBoss EAP 6.4 target runtime.
> Reporter: Mikhail Kalkov
> Assignee: Rob Stryker
> Fix For: 4.4.1.Final
>
> Attachments: test-projects.zip
>
>
> It is impossible to select "filter by" dropdown or press "Refresh Table" on the deployment tab of ServerEditor in JBoss Developer Studio when anything is deployed. I think it should be possible to change filter configuration but do not edit the table itself. Otherwise, both "Refresh" button and some of filter options becomes useless. See Steps to Reproduce for more details.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (JBIDE-22882) vagrant-sshfs plugin prevents CDK server adapter from starting
by Rob Stryker (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22882?page=com.atlassian.jira.plugi... ]
Rob Stryker resolved JBIDE-22882.
---------------------------------
Resolution: Done
I still can't "install" the new sshfs unless I go through my weird workaround of:
1) install win32-process as a plugin
2) install sshfs plugin
3) remove win32-process as a plugin
However, once the new SSHFS is installed, without win32-process, on linux, then it works and it no longer freezes the server state. So I'd say this is fixed.
> vagrant-sshfs plugin prevents CDK server adapter from starting
> --------------------------------------------------------------
>
> Key: JBIDE-22882
> URL: https://issues.jboss.org/browse/JBIDE-22882
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: cdk, upstream
> Affects Versions: 4.4.0.Final
> Reporter: Alexey Kazakov
> Assignee: Rob Stryker
> Fix For: 4.4.1.AM3
>
>
> This is a follow up issue on JBIDE-22604.
> The problem was fixed in CDK 2.1.0 by removing sshfs setup in the default Vagrant file. The original upstream issue still need to be fixed if we want to enable sshfs setup in the default Vagrant file which is used by devstudio by default.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (JBIDE-22992) OpenShift tools use wrong rest client bits
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22992?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-22992:
-------------------------------------
Fix Version/s: 4.4.1.Final
(was: 4.4.1.AM3)
> OpenShift tools use wrong rest client bits
> ------------------------------------------
>
> Key: JBIDE-22992
> URL: https://issues.jboss.org/browse/JBIDE-22992
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: build, openshift
> Affects Versions: 4.4.1.AM3
> Environment: eclipse.buildId=10.1.0.AM3-v20160810-0441-B5735
> java.version=1.8.0_101
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
> Framework arguments: -product com.jboss.devstudio.core.product
> Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.jboss.devstudio.core.product
> Reporter: Denis Golovin
> Assignee: Fred Bricon
> Priority: Blocker
> Fix For: 4.4.1.Final
>
> Attachments: IU-unchanged-not-published.png, openshift-client-IU-new-timestamp.png, openshift-client-IU.png
>
>
> An internal error occurred during: "Loading service-manager to configure additional frameworks that CDK depends on.".{code}java.lang.NoSuchMethodError: com.openshift.restclient.ClientBuilder.withMaxRequests(I)Lcom/openshift/restclient/ClientBuilder;
> at org.jboss.tools.openshift.core.connection.ConnectionFactory.create(ConnectionFactory.java:53)
> at org.jboss.tools.openshift.core.connection.ConnectionFactory.create(ConnectionFactory.java:1)
> at org.jboss.tools.openshift.cdk.server.core.internal.listeners.CDKOpenshiftUtility.createOpenshiftConnection(CDKOpenshiftUtility.java:77)
> at org.jboss.tools.openshift.cdk.server.core.internal.listeners.CDKOpenshiftUtility.createOpenshiftConnection(CDKOpenshiftUtility.java:55)
> at org.jboss.tools.openshift.cdk.server.core.internal.listeners.ConfigureDependentFrameworksListener.configureOpenshift(ConfigureDependentFrameworksListener.java:91)
> at org.jboss.tools.openshift.cdk.server.core.internal.listeners.ConfigureDependentFrameworksListener.configureFrameworks(ConfigureDependentFrameworksListener.java:56)
> at org.jboss.tools.openshift.cdk.server.core.internal.listeners.ConfigureDependentFrameworksListener$1.run(ConfigureDependentFrameworksListener.java:44)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55){code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months