Giter VIP home page Giter VIP logo

language-groovy's People

Contributors

alberthier avatar awanoodle avatar bakharal avatar bhuddleston42 avatar christianmurphy avatar glaforge avatar jakexsv avatar kpitt avatar sjurgemeyer avatar ssbarnea avatar

Stargazers

 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

language-groovy's Issues

Issue regarding to Jump to next symbol

It would be nice if this support jumping to next symbol. In java, which has the most similar syntax with groovy, you can go to the line where a function is declared just by pressing Ctrl + R and type the name of the function.

Slashy strings backslash syntax highlighting - by purpose?

First of all: Thanks for the groovy syntax highlighting in Atom!
About this issue: I found that the syntax highlighting of slashy strings probably should not highligh backslash sequences as they will not be handled the same as for single and double quotet strings.
It's up to the receiver of these strings how the backslash sequences are handled.

  • If the receiver is a regex it will translate the backslash sequences
  • If the receiver e.g. is a windows file path, e.g.
new File(/c:\Users\myself\SomeFile.txt/)

there won't be any backslash translation done by anything.

Can't install using CLI

Trying to install and getting this error. If it's a simple issue I would appreciate some help. Thanks

10/25/22_19:00:24 /Users/john
0-zsh% apm install language-groovy
Installing language-groovy to /Users/john/.atom/packages โœ—
Request for package information failed: Application error
10/25/22_19:10:57 /Users/john
1-zsh% curl "https://www.atom.io/api/packages/language-groovy/versions/0.7.0/tarball"
{"message":"Application error"}%   

GDSL support

does this support GDSL (ala Jenkins GDSL)? If so can it be documented on the readme of how to configure it? If not this is a request to add support.

Division operator interpreted as regex starter

The slash for the division operator will greedily consume slashes on its right (such as a slash inside a string) to form a regex, which is incorrect.
groovyfail

Note the blue text from the division to slash in the string.

Interestingly, even the syntax highlighter in GitHub has this problem:

Map x = [foo: 1, bar: 2]
println((x.foo / x.bar).toString() + "/bar");
" // to reset the string glob
// This works
println("/bar" + (x.foo / x.bar).toString());

toggle comment

When ussing toggle comment, a line comment is supposed to be inserted.
When i do so, the comment inserted is a block comment (which can't be neasted, which can cause issue)

No support for SimpleTemplateEngine groovy templates

It seems that there is no support for parsing templateangine template files, the ones described at http://docs.groovy-lang.org/next/html/documentation/template-engines.html and looking like
<% print city %>

Usually these files have the .template file extension. You can find few examples at https://github.com/jenkinsci/email-ext-plugin/tree/master/src/main/resources/hudson/plugins/emailext/templates

Considering that SimpleTemplateEngine is part of groovy language itself it seems logical to support them as part of this plugin. I tried to look for another language that is similar but I was not not able to find any other atom plugin that can parse these.

language-groovy not detecting shebang

Hi,

I have some non-standard named Groovy files that are not being detected by the plugin even with a #!/usr/bin/env groovy shebang.

Atom fails to correctly set the syntax. Would you be able to add in syntax detection based off of a groovy shebang?

Either

#!/usr/bin/env groovy

or

#!groovy

Hangs editor

Viewing a groovy language file in a project, hangs the entire editor.

key value Hash Pair snippet after colon is very annoying

I have a lot of scripts where I add some metadata to the top of the script like this:

/*
Description:    blah
App Version:    3
Updates:        none
*/

I'll often use tabs after the colons to get the data values to line up neatly.

After updating Atom today, attempting to tab here adds key: "value" to the line, even if I add an additional space after the colon. This is difficult to work around, and I don't seem to be able to disable it. At the end of the day, all I really want is syntax highlighting and it's frustrating to not be able to type freely.

Note that there was a similar issue for the language-ruby package and they modified the trigger: atom/language-ruby#127

Not able to use language-groovy package.

Issue 1:
Atom without safe mode: When I try to fetch, pull and push, I'm getting this error.
error: cannot spawn ssh: No such file or directory
fatal: unable to fork

Issue 2:
So I tried this command:
atom --safe. then I'm able to do fetch, pull and push. but not able to use packages.

Syntax highlighting fails with more complex structures

Syntax highlighting fails with more complex structures. I've attached a part of the script with Jenkins Pipeline checkout plugin example. All parts highlighted green are correct, script has no warnings/errors during execution.

atom groovy syntax failure

investigate 'methods' match

"When Atom matches 'methods', it stops highlighting keywords in the method declaration, so I've commented out the method block for now. I honestly don't know if the 'methods' block adds anything to Atom, but I didn't notice any special treatment when I had it enabled."

Here's the 'methods' block: sjurgemeyer@b92dd1c

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.