boothen / json-eclipse-plugin Goto Github PK
View Code? Open in Web Editor NEWA fork from the json editor on sourceforge
License: Eclipse Public License 1.0
A fork from the json editor on sourceforge
License: Eclipse Public License 1.0
While typing, the plugin randomly selects a block of json and overwrites the block. This renders the plugin unusable.
My environment is:
Ubuntu 14.04
Eclipse Luna
Seems to be related to the outline, if I close the outline the selection stops.
This applies to version 0.9.8 and might be fixed already (migrated issue from sourceforge).
The image for each node is acquired and then leaked. Using the outline view with the Json editor will result in SWT running out of handles eventually. The JsonTreeNode's getImage method is where the problem occurs.
The real problem is that the map of types-to-image should really be using an org.eclipse.jface.resource.ImageRegistry
and put the ImageDescriptor
followed by getting the image from that.
ImageRegistry registry = new ImageRegistry();
registry.put(JsonArrayNode.class.getName(),
ImageDescriptor.createFromURL(JsonNode.getResource("/icons/JsonArray.gif")))
}
public Image getImage() {
return registry.get(jsonNode.getClass().getName());
}
A sub-set of json, json5 is a more relaxed version, aimed to be easier to use by humans.
It would be awesome if this plugin could provide support for this as well; and i think ANTLR4 supports the grammer.
The formatter settings don't seem to allow a conditional use of space, e.g. to make a space show up after a colon for a key only if the corresponding value is neither an array nor an object.
For example, I would like to be able to configure the formatter to produce this layout
{
"key1":
{
"key2": "value2"
}
}
Note how there is a space between the colon following "key2" and before "value" but not after the colon following "key1" and the inner object. The newlines before and after the braces are intentional, so the formatter is configured accordingly as well - I also could not find an option for those to provide the "conditional space" behavior.
If I understand the possible settings correctly, they only allow for either a space after both colons or none at all. Is there a way to achieve this ? If not, please consider this as a request :-)
Using Eclipse 2018-12 (4.10.0) I am no longer able to install the plugin by eclipse marketplace.
The reason is the missing entry of supported eclipse version (4.10 is missing, 4.9 and 4.11 are listed) - see next picture from https://marketplace.eclipse.org/content/json-editor-plugin?mpc=true&mpc_state=#group-details
Could you please enable the checkbox entry for 4.10 in marketplace listing? I missing the plugin on my new eclipse installation...
Best wishes
Albert
o/ I know this project is like basically dead or just on life support,
but if you want to improve it here would be a nice suggestion.
Context aware settings where you can set formatter rules based on the current context.
To define the context I mean what JsonElementType you are right now in.
Optionally also what the previous context you are in.
I know you can set formatter options right now but these usually lead to pretty bad json writing experience.
What I wish that I could do is set rules when a element should be newly lined and when not.
To give you a example of how I like my json to look like is this:
https://github.com/Speiger/PrettyGsonWriter
I know that this isn't easily achievable and is a huge ask, so please don't take it as a "MUST HAVE".
If I had experience in Eclipse Plugin writing I maybe would do it on my own, but right now I rather give input on existing established plugins.
Anyhow thank you for reading my Request even if it stays unfulfilled. :)
P.s: Yes the image is intentionally taken that way.
What I noticed after a quick test on Linux (Ubuntu 16.4):
I am using the Aptana NightLion color theme. I can barely read the key text (green) and the value text (dark blue) is pretty much unreadable. I can't find where your font colors are being set.
Auto bracket creation doesn't take into context the number of brackets already in the document and will create a new one even if there are already an even number.
An IAutoEditStrategy
registered in JsonSourceViewerConfiguration.getAutoEditStrategies()
could provide the context to correctly adjust the whitespace.
Hi,
I like to use your editor in a RCP project. Therefore i need to wrap it in my world. Currently that is not possible because the package where the JsonTextEditor class is located is not exported. Could you add such an export? That would be very great.
Kind Regards,
Patrick
I may just be using it wrong, but when I install it it does not give me the option to use a "Json editor" for my .json files...
Sorry I'm not including very many details. This is truly why I am stumped too. It is not erroring (afaik, I am unsure how to check).
~ Installed via Eclipse Marketplace ~
The following (valid) JSON leads to errors
{ "validatorArguments" : ["regex=^\\\p{Upper}+$"] }
At work, they have implemented a firewall rule against github.io, so I am unable to obtain updates nor able to get a new instance for a new computer because of it. But I don't have such a limit at home, plus can clone from github.com.
So how can I install the plugin from either local repository or create a zip file archive to install from?
(Want to learn more about Eclipse plugins and offline installation)
Looks like a great editor add-on for Eclipse but it just would register as an editor after installation with PDT. Zend Eclipse PDT is a packaged version of Eclipse 3.8 so should work?
Tried installing via marketplace and direct from http://boothen.github.io/Json-Eclipse-Plugin/. Both times it looked like the install finished but json files stay as text in the project explorer editor and there's no mention of the JSON Editor anywhere in preferences or the list of internal editors for files.
Dear Developer,
Thank You for the wonderful plugin.
Kindly add the feature to view the JSON data as a Table in Eclipse Editor.
Thanks and Regards,
Sathish.
I see some options on the formatter settings, but none to make it use spaces instead of tabs.
It would be nice if when you click a "node" in the Outline panel, the editor would move to it.
I have large JSON file as configuration files for some of our applications (several thousands of line) this feature would come in handy.
This is an issue that affects many Eclipse plug-ins, it has gotten worse with the years and become especially acute with Photon (affects about 90% of the plug-ins I use). Eclipse advertises plug-ins from the Marketplace whenever the user opens a particular file type, say JSON, HTML, PHP, SQL, etc. However, when these plug-ins are installed those files become unreadable. I reported this issue against the Workbench itself, but folks there insist that this issue must be reported to the plug-in developers.
This JSON plug-in is one of the many plug-ins affected. Here is a screenshot of a JSON file right after installing the plug-in:
I have a hard time believing so many developers purposely ship plug-ins that do not function out-of-the- box. I am therefore reporting this issue here to understand what is the sentiment this side of the development stack.
Thank you.
During testing of the latest release of Eclipse, v4.11 (release 2019-03)
It appears that when this plugin is installed - JSON Schema Validation (i.e. after registering the file pattern and schema URL via Window > Preferences > JSON > JSON Catalog) no longer works.
I repeated this test several times, by uninstalling the plugin - confirming that Schema Validation worked - and then re-installing the plugin and confirming that Schema Validation no longer worked.
I did not see any errors being logged to the Eclipse log file.
Tested with Java JDK 12, on a Windows 10 laptop
I'd like this features for the formatter (maybe others will too):
{"a":1,"b":{"x":2,"y":3},"c":[4,5,6]}
{
"a": 1,
"b": {
"x": 2,
"y": 3
},
"c": [
4,
5,
6
]
}
get something like:
{
"a": 1,
"b": { "x": 2, "y": 3 },
"c": [ 4, 5, 6 ]
}
{"a":{"b":{"x":2,"y":3,"c":[4,5,6]}}}
, for n = 2
would give:{
"a": {
"b": { "x": 2, "y": 3, "c": [ 4, 5, 6]}
}
}
The icons for the JSON data type (Array, Boolean, etc) in the Outline view are dark blue, so they are very hard to see when using a Dark Theme (as shown in the screenshot below).
Ideally there would be two set of icons the user can choose from (those for the dark theme would be white) or the data type symbols would be plain text with an user selectable color in the preferences window.
Hello, I've installed the plugin on Eclipse for Java Developers (Photon) from the Eclipse Marketplace.
Then I've restarted Eclipse, but now my json files are still being opened with the Text Editor, and I can't find any JSON Editor anywhere by looking through the settings, thus I assume it wasn't installed correctly or something, yet the Marketplace lists it as installed. I don't understand what I did wrong. Is it compatible with Photon?
I am getting following error:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: binary,epp.package.jee.executable.cocoa.macosx.x86_64,4.5.1.20150917-1200
No repository found containing: binary,org.eclipse.platform.ide.executable.cocoa.macosx.x86_64,4.5.1.M20150904-0015
how to install it on eclipse mars on mac?
Thanks,
Amit
I've installed json editor as eclipse plugin in aptana studio, but the feature in subject is not working.
How can I configure it?
How can I test it's working?
I think the time's come.
The default font colors are suitable for light theme but there seems to be no defaults for dark theme. When installing the plugin fresh from marketplace to a dark theme eclipse (4.11) it looks very bad:
I would suggest to provide either a dedicated defaults button in preferences or to provide a css file for dark theme support (e4 style).
Here my suggestions for a good looking defaults:
It would be nice for the validation and autoformat function to accept multi line strings as valid/already formatted (or to allow this via some flags in config etc)
For example:
{"text":"this is some text"}
gets correctly formatted to
{
"text":"this is some text"
}
but
{
"text":"this is
some text"
}
gets transformed to
{
"text":sometext
}
I am using this with SW4STM32 and it is very slow to update the display.
Most of the times it is barely responsive.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.