Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not formatting files without *.groovy extension #437

Closed
lucasvc opened this issue Jan 25, 2018 · 2 comments
Closed

Not formatting files without *.groovy extension #437

lucasvc opened this issue Jan 25, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@lucasvc
Copy link

lucasvc commented Jan 25, 2018

Jenkinsfile's is a DSL language based on Groovy, so Groovy editor can be used.
But when editing those files with Groovy editor, if the extension is not .groovy the formatter is not applied.
If renaming file to end with .groovy, the formatter works as expected.

My Eclipse installation:

Eclipse Java EE IDE for Web Developers.

Version: Oxygen.2 Release (4.7.2)
Build id: 20171218-0600

Groovy installation settings:

  Eclipse Groovy Development Tools	3.0.0.xx-201801222116-e47	org.codehaus.groovy.eclipse.feature.feature.group	Codehaus.org
    Groovy Compiler 2.4	3.0.0.xx-201801222116-e47	org.codehaus.groovy24.feature.feature.group	Codehaus.org
    Groovy-Eclipse Compilerless Feature	3.0.0.xx-201801222116-e47	org.codehaus.groovy.compilerless.feature.feature.group	Codehaus.org
      Groovy-Eclipse Headless Feature	3.0.0.xx-201801222116-e47	org.codehaus.groovy.headless.feature.feature.group	Codehaus.org
  Groovy-Eclipse M2E integration	3.0.0.xx-201801222116-e47	org.codehaus.groovy.m2eclipse.feature.feature.group	Codehaus.org
@eric-milles eric-milles added this to the v3.1.0 milestone Apr 19, 2018
@eric-milles eric-milles removed this from the v3.1.0 milestone Aug 18, 2018
@urosvonta
Copy link

urosvonta commented Jul 1, 2020

yes, this is really annoying. I hope that you will solve this ASAP.

@eric-milles
Copy link
Member

You can add "Jenkinsfile" to the list of Groovy content types here:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants