de-jcup / eclipse-yaml-editor

Eclipse YAML editor
https://marketplace.eclipse.org/content/yaml-editor
Apache License 2.0
34 stars 10 forks source link

How to associate with .yaml files #89

Closed stpruitt closed 3 years ago

stpruitt commented 4 years ago

What is the trick to get the editor associated with .yaml files? The File Associations -> Editor Selection list does not show the editor.

I installed the plugin and restarted Eclipse.

j-ulrich commented 4 years ago

It should simply work if you go to Preferences -> General -> Editors -> File Associations and then:

  1. If .yaml or .yml is not in the list of file types, add it with the "Add..." button and then select it in the "File types:" list
  2. Click "Add..." next to "Associated editors:"
  3. Select "Internal Editors"
  4. Select "Yaml Editor"

Bildschirmfoto 2020-05-08 um 21 38 51

stpruitt commented 4 years ago

That's exactly what I did and Yaml Editor doesn't show up. In fact, nothing shows up.

Thanks.


From: Jochen Ulrich notifications@github.com Sent: Friday, May 8, 2020 3:44 PM To: de-jcup/eclipse-yaml-editor eclipse-yaml-editor@noreply.github.com Cc: Steve Pruitt bpruitt@opentext.com; Author author@noreply.github.com Subject: [EXTERNAL] - Re: [de-jcup/eclipse-yaml-editor] How to associate with .yaml files (#89)

It should simply work if you go to Preferences -> General -> Editors -> File Associations and then:

  1. If .yaml or .yml is not in the list of file types, add it with the "Add..." button and then select it in the "File types:" list
  2. Click "Add..." next to "Associated editors:"
  3. Select "Internal Editors"
  4. Select "Yaml Editor"

[Bildschirmfoto 2020-05-08 um 21 38 51]https://urldefense.com/v3/__https://user-images.githubusercontent.com/1260380/81442825-94fc0680-9174-11ea-83fb-59a6d2d1fc55.png__;!!Obbck6kTJA!NS-b0xBu4hx4RZf9vIICRmrWj7FstXMAoWHknozAI7u7YS2l2dsK7M7aPuHfFma1$

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/de-jcup/eclipse-yaml-editor/issues/89*issuecomment-625986195__;Iw!!Obbck6kTJA!NS-b0xBu4hx4RZf9vIICRmrWj7FstXMAoWHknozAI7u7YS2l2dsK7M7aPoUOF_NC$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AFJV6YY66AQBPO35GTLTQRDRQROKBANCNFSM4M2QQAOQ__;!!Obbck6kTJA!NS-b0xBu4hx4RZf9vIICRmrWj7FstXMAoWHknozAI7u7YS2l2dsK7M7aPoGtTIya$.

de-jcup commented 4 years ago

@stpruitt : Hmm..this is strange. Another user had mentioned a similar problem with another jcup plugin (bash editor) - but it was not reproducable. Please restart your eclipse and check inside error view if there are any entries related to yaml editor. If you find something, please add it to this issue.

You could try to uninstall the yaml plugin and do a new install by eclipse marketplace.

aaiezza commented 4 years ago

I've uninstalled and reinstalled thrice now. Still no YAML editor showing up in my list. I'm using Eclipse 2020-06 on macOS. This used to work on version 2019-12

de-jcup commented 4 years ago

Hello @aaiezza , I just tried out with a fresh Eclipse Java IDE 2020-06 and recorded as video https://youtu.be/AJw4WKSqQdc - I have no such issues. Have you tried out a fresh eclipse 2020-06 package from https://eclipse.org/downloads like shown in next screen and try to install the editor?

image

There was a similar issue at https://github.com/de-jcup/eclipse-yaml-editor/issues/60 and there is a description how to get more information (error logs etc.) - if you have more information please add to this issue.

aaiezza commented 4 years ago

@de-jcup The video is great! Thank you for that.

But sadly, I’m not sure what could be wrong.

This plugin worked like a charm in Eclipse 2019-12. Then I installed 2020-06 fresh and opened up my existing workspace. Everything worked, except this plugin. Then I tried another fresh install of Eclipse 2020-06 and a fresh workspace. Still nothing. It is just missing from the internal editors list.

You also shot this video on a Windows machine. Could this have anything to do with me being on macOS?

aaiezza commented 4 years ago

@de-jcup the plugin works perfectly for me on fresh eclipse installations on Ubuntu and Windows 10.

I’m assuming it could be a macOS thing…

de-jcup commented 4 years ago

Unfortunately I have currently no access to a Mac, but normally it should not be an OS specific problem. The only OS specific components are SWT - all other stuff in eclipse is normally platform independent.

Have you tried a fresh eclipse installation on your mac as well?

agmckee commented 4 years ago

I just experienced this on Eclipse 2020-03 on Linux (Debian). It is odd, it works fine on my Ubuntu laptop but not on my Debian desktop.

Eclipse IDE for Java Developers Version: 2020-03 (4.15.0) Build id: 20200313-1211 OS: Linux, v.4.19.0-10-amd64, x86_64 / gtk 3.24.5 Java version: 11.0.8

de-jcup commented 3 years ago

@vogella - Those problems were mentioned in some of my plugins, was not able to find an issue at eclipse bugtracking. Do you know a bug inside the platform?

de-jcup commented 3 years ago

Long time no changes here - so closing this issue