Atom-script: Add Selection Based support for Java

Created on 28 Jan 2016  路  3Comments  路  Source: atom-community/atom-script

Platform: darwin

I am trying to use the Script package to run Java code. And any time I use Cmd-I to run the file, I get the following error:

"Selection Based runner not available for Java."

What confuses me is is that no code is selected. I am trying to run the entire script.
What could the problem be?

duplicate Add support for X

Most helpful comment

I'm having the same issue. Steps to reproduce:

  • Open a new file
  • Set the file type to java
  • Add some code
  • Try to run script

If the file isn't saved it will print

Selection Based runner not available for Java.

If it should exist, add an issue on GitHub, or send your own pull request.

^C

If it is saved in file.java it launches the command line in my home directory, and when I exit the console the error appears in the atom error console.

All 3 comments

Can you provide exact steps to reproduce, a minimal example file of what it breaks on, and screenshots/gifs of what you are doing?

Marking as duplicate of #796, but will keep open since it might actually be a bug of thinking that it should execute as selection based

I'm having the same issue. Steps to reproduce:

  • Open a new file
  • Set the file type to java
  • Add some code
  • Try to run script

If the file isn't saved it will print

Selection Based runner not available for Java.

If it should exist, add an issue on GitHub, or send your own pull request.

^C

If it is saved in file.java it launches the command line in my home directory, and when I exit the console the error appears in the atom error console.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

STRAYKR picture STRAYKR  路  7Comments

ghost picture ghost  路  9Comments

cmdshorty picture cmdshorty  路  5Comments

JohnnyUrosevic picture JohnnyUrosevic  路  5Comments

chenkangcrack picture chenkangcrack  路  5Comments