-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[electron][Windows] Error on app startup in a bundled electron application #2992
Comments
On my end, it crashes with the following error:
(Ubuntu 16.04) |
@marechal-p, please file a separate issue. We can close it as a duplicate later. |
On Windows, we cannot create modules on the fly, the application is sitting in the |
Adjusted the `appProjectPath` for the backend when running from electron. Replaced the on the fly created application module loader with a function. Closes: eclipse-theia#3072. Closes: eclipse-theia#2624. Closes: eclipse-theia#2992. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This is an issue for the binary Theia (#4541) |
Instead of creating a new file on the fly with the corresponding resolve code, we use `require.resolve`'s `paths` option. It was introduced in Node.js `v8.9.0`. https://nodejs.org/api/modules.html#modules_require_resolve_paths_request Closes #2992. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
Instead of creating a new file on the fly with the corresponding resolve code, we use `require.resolve`'s `paths` option. It was introduced in Node.js `v8.9.0`. https://nodejs.org/api/modules.html#modules_require_resolve_paths_request Closes #2992. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
Since we now offer the Theia IDE for download and we haven't heard anyone experience this issue, I'm closing this. It's probably quite outdated after mutliple Electron uplifts. |
It happens on Windows, I do not know if it affects other platforms or not.
Update:It worth to mention, it happened on Windows in the@theia/typescript
extension.This could be related: [windows] It does not work on Windows with Theia typescript-language-server/typescript-language-server#72Update2:
package.json
in case of a bundled electron application. Same reason theAbout Dialog
fails in electron.Related code:
https://github.com/theia-ide/theia/blob/1e747c97ec092ad0cdb73f718cee8c353c0cf240/packages/typescript/src/node/typescript-contribution.ts#L33-L49
The text was updated successfully, but these errors were encountered: