atom-community / atom-community/atom-script

Error running java when space in filename

Open
#2,677 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

Hi everyone,

I can't run java files, which have a space in their filename. At first I want to say that this seems closely related to [#1455 ](https://github.com/atom-community/atom-script/issues/1455)
But because this is closed although I think no real solution was found, I hereby try it again. So when I want to run a java file with spaces in the file name, I get

``
error: invalid flag: C:\Users\Me\dir
Usage: javac
use --help for a list of possible options
``

while the file is located in "C:\Users\Me\dir with spaces", so it ignores the " with spaces" and I think this is treaded as the arguments thereafter. There was [#2428](https://github.com/atom-community/atom-script/pull/2428) marked, but this didn't solve it. I also tried the comment therein. I'm just guessing, but the problem seems to be before the argument formatting.

If anyone has ideas or if I should try something, let me know.

Best regards

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.