openframeworks / openframeworks/projectGenerator

Electron version uses wrong project generator command line executable

Open
#114 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CSS
Stars
90
Forks
79
Avg merge
2d 9h
Merged PRs (30d)
5

Description

Hi,

I was testing the new project generator done with Electron and found a bug.
I followed the readme to install it, I built an updated version of commandLine project beforehand, then moving the binary to frontend/app folder.

Then in the PG, when generating/updating a project, it uses frontend/app/projectGenerator...which gave me error such as:

'projectGenerator' is not recognized as an internal or external command, operable program or batch file.

To fix this, I had to change in frontend/index.js (line 650):

pgApp = pathTemp.normalize(pathTemp.join(pathTemp.join(__dirname, "app"), "projectGenerator"));

to this:

pgApp = pathTemp.normalize(pathTemp.join(pathTemp.join(__dirname, "app"), "commandLine"));

So that it uses commandLine instead of projectGenerator. Then it was generating/updating projects correctly.

I am on Windows 7 also, not sure if it matters.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at frontend/index.js around line 650 and inspect how the project generator executable path is assembled. Build the commandLine project, place its binary in frontend/app, and verify that generating and updating a project works on Windows without the executable-not-found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript
Domain
desktop, tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.