oyse / yedit Goto Github PK
View Code? Open in Web Editor NEWYAML Eclipse editor
YAML Eclipse editor
http://dadacoalition.org/yedit is down.
just a suggestion to put license info more visible than within the feature.xml file.
took me a while to realize this is available under EPL :)
problem: Shift+Ctrl+F
removes all comments
origin:
http://dadacoalition.org/yedit/
system:
Eclipse Java EE IDE for Web Developers.
Version: Luna Service Release 1 (4.4.1)
Build id: 20140925-1800
YEdit Feature 1.0.16 org.dadacoalition.yedit.feature.group YEdit Project
java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
uname -a
Linux wks002 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
When I loaded YEdit in a fresh install of Oxygen JEE, I opened one of my Ansible .yaml files and Eclipse gave me a null pointer exception within seconds. Reopening Eclipse caused the same problem seconds after it reopened. Closing the .yaml file before I restarted Eclipse again. Even after having closed the .yaml file that may have contributed to the null pointer exception, I am still getting null pointer exceptions when I open Eclipse. I didn't get any of these exceptions prior to installing YEdit.
Any suggestions/ideas?
On OSX toggle command should be cmd+/ rather than ctrl+/.
In general all ctrl+* shortcuts should be replace by cmd+* (format etc...).
Hi,
I get a syntax warning (exclamation mark in yellow triangle) on the third line of this file:
Foo:
path: /
defaults: { _controller: AppBundle:Foo:index }
Foo:
path: /
defaults: { _controller: AppBundle:Foo:index }
The tooltip says:
found unexpected ':'
It's a Symfony routing file. The reason are the colons in AppBundle:Foo:index
. Oddly enough, the warning is only shown on the first occurrence (third line), not on the second occurrence. In YEdit Preferences I have "Symfony compatibility mode" activated.
Right now, if I add the keyword "TODO" in a .yml file, it isn't listed in eclipse's Tasks View. I'm not sure if this is a YEdit issue at all. But it would be nice if you could integrate this - or just tell me how to activate it.
Thanks!!
I tried downloading the plugin via the marketplace. But an error came up saying..
The following solutions are not available: YEdit 1.0.14 (id=org.dadacoalition.yedit.feature.group, site=http://dadacoalition.org/yedit)
Any reason why? Ask if you need more info
-SenseiTechUS
eclipse.buildId=4.5.0.I20150603-2000
java.version=1.8.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -data file:/home/schlei/workspaces/all-git-projects/ -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
org.eclipse.ui
Warning
Tue Jul 07 13:59:33 CEST 2015
Invalid property category path: (bundle: net.vtst.ow.eclipse.less.ui, propertyPage: net.vtst.ow.eclipse.less.ui.properties.LessProjectPropertyPage)
An exception stack trace is not available.
Currently YEdit is written for Java 5. This is a bit of a pain and the required version should be upgrade to either Java 7 or Java 8.
@kdvolder Do you have any opinions on this?
I have a line in my yaml:
something::else::mode: 0640
The formatter changes this to:
something::else::mode: 416
If I use '0640' the formatter removes the '', if I use 640, it makes no changes.
I can't quite see how 0640 goes to 416.
I'm using:
YEdit Feature 1.0.16 org.dadacoalition.yedit.feature.group YEdit Project
Unable to access http://dadacoalition.org/yedit as of today, please advise.
I installed YEdit Feature 1.0.20.201509041456-RELEASE on Eclipse Mars running on Oracle JRE 1.8.0_60-b27 but unlike previous installations it does not do anything - YAML files can only be edited with the existing editors and there is no syntax highlighting.
From the wiki page the link to the binaries is broken. I would like to download the jar
Hi
I'd like to propose some small improvement:
Given
mymappings:|
with cursor position at |
Is:
mymappings:
|
Should:
mymappings:
|
Reason: Because the key node is not a scalar it is very likely that a collection will follow.
Thank you.
I would like to prepare custom completion proposals for service and class names in php symfony projects.
In theory I could just override YEditSourceViewerConfiguration and introduce own IContentAssistant but I think that should be something more common.
It would be nice to make a more obvious declaration of the license (I gather it is EPL) but this is only inlcuded in one place (the feature.xml). So you do see it on the marketplace or update-site install.
However, it would be nice to at least make mention of the EPL on some obvious place when visiting the github main page (i.e. mention of EPL in readme).
Also it is customary to add license comment headers on each java source file. (I know, I hate that stuff as well, but it makes things easier when corporate lawyers have to look at a project and give their okay to include it in something like STS... which is what I'd like to do :-)
There's a easy way to add CR headers to all your files using Eclipse copyright plugin (https://wiki.eclipse.org/Development_Resources/How_to_Use_Eclipse_Copyright_Tool)
Here's a example of a file with a typical EPL header:
https://github.com/spring-projects/spring-ide/blob/master/plugins/org.springframework.ide.eclipse.boot.properties.editor.yaml/src/org/springframework/ide/eclipse/boot/properties/editor/yaml/SpringYeditSourceViewerConfiguration.java
Would you mind if i added your yedit plugin as an additional (optional) feature to the updatesite of the symfony eclipse plugin? This would ease the yaml integration for symfony users. I could add you as a commiter to the updatesite, so you could remove it anytime you want.
When i open files with the Use symfony compatibility mode
flag turned on and then open any yml file, eclipse freezes. Unfortunately there's no useful output in the .log.
It pretty much looks like if while opening the editor the yedit plugin hangs in an infinite loop somewhere.
Here's a yaml file that causes the issue (from the symfony2 standard edition):
imports:
- { resource: parameters.ini }
- { resource: security.yml }
framework:
#esi: ~
#translator: { fallback: en }
secret: %secret%
charset: UTF-8
router: { resource: "%kernel.root_dir%/config/routing.yml" }
form: true
csrf_protection: true
validation: { enable_annotations: true }
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
session:
default_locale: %locale%
auto_start: true
# Twig Configuration
twig:
debug: %kernel.debug%
strict_variables: %kernel.debug%
# Assetic Configuration
assetic:
debug: %kernel.debug%
use_controller: false
filters:
cssrewrite: ~
# closure:
# jar: %kernel.root_dir%/java/compiler.jar
# yui_css:
# jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
# Doctrine Configuration
doctrine:
dbal:
driver: %database_driver%
host: %database_host%
dbname: %database_name%
user: %database_user%
password: %database_password%
charset: UTF8
orm:
auto_generate_proxy_classes: %kernel.debug%
auto_mapping: true
# Swiftmailer Configuration
swiftmailer:
transport: %mailer_transport%
host: %mailer_host%
username: %mailer_user%
password: %mailer_password%
jms_security_extra:
secure_controllers: true
secure_all_services: false
fos_user:
db_driver: orm
firewall_name: main
user_class: Dubture\Bundle\SymfonyBlogBundle\SymfonyBlogBundle\Entity\User
Hi,
I get a syntax warning (exclamation mark in yellow triangle) on the last line of this file:
services:
gedmo.listener.timestampable:
class: Gedmo\Timestampable\TimestampableListener
tags:
- { name: doctrine.event_subscriber, connection: default }
calls:
- [ setAnnotationReader, [ @annotation_reader ] ]
The tooltip says:
found character @ '@' that cannot start any token. (Do not use @ for indentation)
It's the original Symfony file app/config/services.yml. In YEdit Preferences I have "Symfony compatibility mode" activated.
http://dadacoalition.org/yedit/ is not available.
How the title says, the color is not changing to green if the text is: text.*
Hi! I want to share an experience with the Eclipse installation of YEdit. It might be specific to my installation, but others might run into it too.
When installing through Eclipse Marketplace or update site, the installation may not continue due to a dependency on Apache Commons Lang 2.6.0.
Solution:
You would need to download the library from
http://commons.apache.org/proper/commons-lang/download_lang.cgi
and drop the JAR (extracted from compressed file) in the plugins folder.
Restart Eclipse and check that the library is loaded through Help > About Eclipse > Instalation Details > (Tab) Plugins.
Then try to install YEdit again.
Also: maybe a link to the github wiki from Readme.creole would help as the wiki has a bit more information on requirements.
Thanks for the Plugin!
@oyse every time I have to enter your update site
http://dadacoalition.org/yedit
I am getting scared thatI will be hacked by a mob of angry Dadaists
https://en.wikipedia.org/wiki/Dada
can you please move the update site to a less scary place? :-)
It is possible to fold the entries in the outline view, it would be very useful if this would be possible in the source code, too (like e.g. in xml files).
I'm getting a syntax error expected ',' or '}', but got BlockEntry
in line 6 for the following yaml file:
security:
access_control:
- { path: ^/login_check$, role: IS_AUTHENTICATED_ANONYMOUSLY } # for the case of a failed login
- { path: ^/user/new$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/user/check-confirmation-email$, role: IS_AUTHENTICATED_ANONYMOUSLY }
I'm not 100% sure, but i think this should be a valid yml file.
Note to myself: http://editorconfig.org ;)
Hi,
I cannot find the YEDIT editor in the list of eclipse editors after installing YEDIT.
Please help how to find the editor.
I need YEDIT for editing .yaml files for hiera.
I am using eclipse Kepler.
Thanks
Babu Joy.
Hi,
we have created an Eclipse Plug-In to launch Dropwizard applications. One part of such applications is a config that is written in yaml. We have included the yedit plugin as a separate feature (untouched). Before I submit the plugin to the Eclipse Marketplace I would like to ask for permission to redistribute the yedit feature.
YEdit has a line width setting in auto-format, but it does not seem to be using this to break strings across lines.
At a minimum, I would like this to break strings that use the >
folded string indicator:
/estimates/price:
get:
summary: Price Estimates
description: >
The Price Estimates endpoint returns an estimated price range for each product offered at a given location. The price estimate is provided as a formatted string with the full price range and the localized currency symbol.<br><br>The response also includes low and high estimates, and the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code for situations requiring currency conversion. When surge is active for a particular product, its surge_multiplier will be greater than 1, but the price estimate already factors in this multiplier.
This should become:
/estimates/price:
get:
summary: Price Estimates
description: >
The Price Estimates endpoint returns an estimated price range for
each product offered at a given location. The price estimate is
provided as a formatted string with the full price range and the
localized currency symbol.<br><br>The response also includes low
and high estimates, and the
[ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code
for situations requiring currency conversion. When surge is active
for a particular product, its surge_multiplier will be greater
than 1, but the price estimate already factors in this multiplier.
It would also be helpful to have the option to convert inline strings to block-style wrapped strings, where the inline string exceeds the line length. So the example below would be auto-formatted the same as in the example above:
/estimates/price:
get:
summary: Price Estimates
description: The Price Estimates endpoint returns an estimated price range for each product offered at a given location. The price estimate is provided as a formatted string with the full price range and the localized currency symbol.<br><br>The response also includes low and high estimates, and the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code for situations requiring currency conversion. When surge is active for a particular product, its surge_multiplier will be greater than 1, but the price estimate already factors in this multiplier.
NOTE: My knowledge of YAML is somewhat incomplete, so it's possible that I'm misunderstanding some of the rules. If someone thinks this looks incomplete or off-target, please chime in.
I have just installed YEdit on my Eclipse Neon configured with the dark theme.
I think, default foreground color for this theme should be review, especially the value (black).
Also I didn't find how to change this color in the Eclipse preferences page.
Do you have a workaround ?
Thx.
Hey, any interest in contributing this to eclipse foundation so we can use it in base Eclipse IDE ?
We got a new json editor for Mars - would be great to see a yaml editor too.
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.