Code Monkey home page Code Monkey logo

yedit's People

Contributors

gnat42 avatar kdvolder avatar oyse avatar pulse00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yedit's Issues

Freeze when opening .yml file in Symfony compatibility mode

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

Folding in source code

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).

more clear license info ?

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 installing Plugin using marketplace

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.

Syntax warning on '@' sign

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.

Auto-Format: Wrap string scalars to line width

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.

Auto indent new line after mapping without scalar value

Hi

I'd like to propose some small improvement:
Given

mymappings:|

with cursor position at |

  1. Invoke enter

Is:

mymappings:
|

Should:

mymappings:
   |

Reason: Because the key node is not a scalar it is very likely that a collection will follow.

Thank you.

YEdit appears to cause null pointer exception crash of Oxygen

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?

RFE: Add support for eclipse's Task Tags (e.g. TODO)

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!!

Eclipse installation issue and solution

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!

Ask for permission to redestribute

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.

Odd formatter behaviour

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

Does not do anything when installed

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.

OSX shortcuts

On OSX toggle command should be cmd+/ rather than ctrl+/.

In general all ctrl+* shortcuts should be replace by cmd+* (format etc...).

Syntax error - false positive

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.

Add ability to extend completion proposals

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.

Clarify license (EPL) on source code and/or README of the project

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

Syntax warning on ':' sign

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.

Cannot find YEDIT in the list of eclipse editors

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.

source format removes all comments

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

Ship yedit with the symfony updatesite

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.