jakexsv / language-groovy Goto Github PK
View Code? Open in Web Editor NEWGroovy language support in Atom
License: Other
Groovy language support in Atom
License: Other
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.
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.
new File(/c:\Users\myself\SomeFile.txt/)
there won't be any backslash translation done by anything.
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"}%
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.
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.
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());
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)
After installing the language-groovy package, attempting to open a .groovy file causes Atom to hang.
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.
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
Viewing a groovy language file in a project, hangs the entire editor.
After adding 'groovy.inc' to the list of extensions and restarting atom, i was able to convince it to recognize the files. Before that it was recognizing them as PHP.
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
I installed the plugin and tried to open this *.groovy
file:
https://github.com/groovy/groovy-core/blob/master/src/test/groovy/WhileLoopTest.groovy
This raised CPU usage up to 100% and made Atom unusable.
Seems there is some quirks in the grammar (or maybe some general performance issue in Atom) that causes this behaviour. Syntax highlighting orks only with very basic Groovy files for me.
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.
"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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.