atom-community / atom-community/atom-script

Issues with excuting c++ files contained in directories with white space in directory name.

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

Description

![Screenshot (71)](https://user-images.githubusercontent.com/46621001/64543526-057f2900-d343-11e9-8b02-b1eef357c58d.png)

I am having issues while compiling and executing C++ files.
I know the issue - C++ file is stored in a folder which has spaces.

Solution - include the file path in quotes.

But How do I modify the plugin parameter so that it includes full path with quotes and successfully compiles and executes the file ?

The error -
`g++: error: /mnt/c/Users/HP/github/CodersPack/C++: No such file or directory
g++: error: programs/task8.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
[Finished in 0.416s]`

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with the C++ file at /mnt/c/Users/HP/github/CodersPack/C++ programs/task8.cpp and inspect the atom-script plugin parameter handling for the generated compiler command. Use the reported g++ error as the baseline; done means the same file compiles and executes successfully when its directory path contains spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.