Skip to content

path error on code runner extension for C/C++ #186

@temco

Description

@temco

code-server version: 0.2 alpha
OS Version: Mac 10.14.3

Description

When I'd installed the extensions C/C++ and Code Runner, and ran the C++ code with Code Runner, an error /bin/sh 1:g++: not found was raised. However, when I copied the command cd "/projects/cppTest/" && g++ core.cpp -o core && "/projects/cppTest/"core to the terminal and ran it, it worked.

Steps to Reproduce

  1. Install the Extensions C/C++ v0.21.0 and Code Runner v0.9.7
  2. New Project and create a simple cpp file with a main function
  3. Click the > button provided by the Code Runner
  4. An error shown in the output-code window as follows:
[Running] cd "/projects/cppTest/" && g++ core.cpp -o core && "/projects/cppTest/"core
/bin/sh: 1: g++: not found
[Done] exited with code=127 in 0.044 seconds
  1. Copy the command cd "/projects/cppTest/" && g++ core.cpp -o core && "/projects/cppTest/"core to the terminal window and run it, and everything is OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions