Git Product home page Git Product logo

yang-eclipse's Introduction

yang-eclipse

An Eclipse Plug-in for YANG using a YANG language server and a YANG diagram based on sprotty.

Install it

YANG for Eclipse is available from the Eclipse Marketplace. Just drag this button to your running Eclipse

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client

Build It Yourself

Requirements: Java 8, node 8, yarn 1.0.2

git clone https://github.com/theia-ide/yang-eclipse.git
cd yang-eclipse/diagram
yarn 
cd ../yang-eclipse
mvn clean install

yang-eclipse's People

Contributors

corneliusludmann avatar jankoehnlein avatar spoenemann avatar svenefftinge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

yang-eclipse's Issues

Updating the Xtext Community Website

Hello Yang-Eclipse team,

The Xtext team would like to update the Xtext community website listing all the cool projects people are building around Xtext/Xtend.

See also the corresponding GitHub issue and Bugzilla ticket.

If you are interested that the Yang-Eclipse project is listed there, please provide the following information as a comment to this issue:

<tr>
	<td><a href="project_link">project_name</a></td>
	<td>project_description_max_2_sentences</td>
	<td>license</td>
	<td>category</td>
	<td>author(s)</td>
</tr>

We will then update the Xtext community website and get it online as soon as possible.

Thanks!
Tamás

[outline] use better icons

The current icons are based on the kind property of a Symbol. The range for these is pretty limited, such that we map YANG concepts to bad matching LSP kinds. We should add better icons.

[diagram] Jump from diagram to code on node click does not work when project lies outside the workspace folder

When you import a project into workspace and do not copy the project into workspace the feature that allows to jump from diagram nodes to the definition in the code does not work.

Steps to reproduce:

  1. Import existing project into workspace (do not check the box that copies the project into workspace)
  2. Open diagram view. Click on a node.
  3. Nothing happens. If the project lies in the workspace folder on filesystem the code fragment that defines the selected node will be selected. But not for imported projects that lies outside.

Make outline work

The hierachy in the outline in Eclipse LSP4E is based on nested ranges.
Since in yang.lsp we return the significiant range (the range of the identifier), they are not nested.
We should check if reveal within monaco (Theia & VsCode) works well with full ranges, too.
See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=520770

[diagram] diagram does not openon windows

From the log:

Caused by: java.lang.IllegalArgumentException: Illegal secondary id (cannot be empty or contain a colon)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:4314)
	at io.typefox.yang.eclipse.diagram.OpenDiagramHandler.openDiagram(OpenDiagramHandler.java:88)
	at io.typefox.yang.eclipse.diagram.OpenDiagramHandler.execute(OpenDiagramHandler.java:41)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291)
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:92)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
	... 36 more

The secondary ID of a view in Eclipe is not allowed to contain a colon, which automatically happens on windows as we take the file URI's path, i.e. file:///C:/some/path/somefile.yang -> C:/some/path/somefile.yang.

We should encode the URIs colons.

yangster sprotty only a single view?

I was testing the yangster marketplace plugin. Nice job with the sprotty diagram, but I was hoping to see a new diagram viewer open for each editor so I could compare diagrams side by side. Is that in future plans? I was testing on eclipse eclipse rap/rcp ide oxy v3 (eclipse-rcp-oxygen-3a-win32-x86_64.zip) clean install on a x86-64 laptop.

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.