Commit Graph

70 Commits

Author SHA1 Message Date
Maarten Fonville
6ab5500d25 Electron todo cleanups (#21816)
* cleanup TodoElectronIssue for GCM initVector
* cleanup TodoElectronIssue drop manual set of random value for debugging-port
* Remove workaround for slow crypto.randomBytes
* produceCachedData --> script.createCachedData()
* Remove arguments from childProcess.removeAllListeners()

Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2021-01-18 19:29:34 +03:00
Rafael Oleza
166e7d2386 Add TODOs to remember to fix this when upgrading to electron v4 2019-05-06 21:35:45 +02:00
David Wilson
cc7a1d036a Remove listeners for specific events in Task class
This change is necessary for Electron 3 to a bug in Node.js 10.2.x which causes
the `removeAllListeners` method to no longer remove all listeners for any event
name when no argument is passed:

https://github.com/nodejs/node/pull/20924

This issue has been fixed in Node.js 10.3.0+ so we will have to remove this
workaround when we move to Electron 4.0 to avoid future event handler leaks.
2019-05-06 21:33:38 +02:00
Jason Rudolph
c9e6d04e8c Revert "Merge #18603 from atom/electron-3-0"
This reverts commit b92ae2ad04, reversing
changes made to d4fe5ccfeb.
2019-02-25 13:41:59 -05:00
David Wilson
7b7fd7b264 Remove listeners for specific events in Task class
This change is necessary for Electron 3 to a bug in Node.js 10.2.x which causes
the `removeAllListeners` method to no longer remove all listeners for any event
name when no argument is passed:

https://github.com/nodejs/node/pull/20924

This issue has been fixed in Node.js 10.3.0+ so we will have to remove this
workaround when we move to Electron 4.0 to avoid future event handler leaks.
2019-01-18 15:13:24 -08:00
Lee Dohm
0842106203 📝 Document Task.cancel 2017-05-22 16:42:03 -07:00
Nathan Sobo
c28685c816 Don't use --eval when forking child process in Task
There seems to be an Electron bug or something where the child process
isn't receiving messages when --eval is used. It isn't necessary anyway
if we we convert task-bootstrap.coffee to vanilla JS.
2017-05-03 14:21:24 +02:00
Antonio Scandurra
0e1bc58310 ⬆️ electron-link 2017-04-04 11:36:49 +02:00
Antonio Scandurra
ccbb276bf5 Bake source maps into the snapshot 2017-03-17 13:25:00 +01:00
Antonio Scandurra
ebe725de4d Assign globals to snapshotResult only if present 2017-03-06 13:36:41 +01:00
Antonio Scandurra
adb0e39166 WIP 2017-02-28 15:44:02 +01:00
Antonio Scandurra
9b8c7973d7 WIP 2017-02-28 09:34:55 +01:00
Antonio Scandurra
5dbae1c317 Copy the generated snapshot into the app bundle 2017-02-24 10:39:05 +01:00
Antonio Scandurra
77b8089e3a Use the snapshot result to require core modules 2016-11-15 18:03:36 +01:00
Nathan Sobo
52a2c6725b Remove emissary dependency in Task 2015-09-22 10:37:14 -06:00
Max Brunsfeld
49e37f5410 Use source-map-support to handle stack trace conversion
Previously, our Error.convertStackTrace function was provided by coffeestack,
which only works for coffee-script. This adds a dependency on 'source-map-support',
which works for any source file with inline source maps.

This also refactors the code for registering our compilers (coffee-script,
typescript, and babel) so that caching logic is shared.
2015-08-19 17:55:29 -07:00
Kevin Sawicki
b371b2f0c9 Guard against missing stdout/stderr 2015-07-07 09:50:07 -07:00
Michael Bolin
3c44bc06f4 Revert "Revert "Introduce atom.directory-searcher service v0.1.0.""
This reverts commit 262d41c306.
2015-06-10 23:30:25 +01:00
Max Brunsfeld
262d41c306 Revert "Introduce atom.directory-searcher service v0.1.0." 2015-06-09 11:51:30 -07:00
Michael Bolin
7781e34ba2 Introduce atom.directory-searcher service v0.1.0.
The contract for a provider for the `atom.directory-searcher` service
is defined by the spec of the `DefaultDirectorySearcher`.

This modifies `Workspace::scan()` to use the appropriate `DirectorySearcher`
for each member of `atom.project.getDirectories()` when scanning the workspace
for files that match the specified regex.
2015-06-09 15:34:08 +01:00
Kevin Sawicki
eaaa6b15e5 🚱 Prevent stdout/stderr data listener leaks
Old listeners were not cleaned up before new ones were being added
causing the following console message:

warning: possible EventEmitter memory leak detected.

Refs #7033
2015-06-01 09:38:10 -07:00
Kevin Sawicki
5a8885aeed Revert "Revert "Add asar support in Atom"" 2015-04-15 15:55:30 -07:00
Kevin Sawicki
3de83f6860 Revert "Add asar support in Atom" 2015-04-03 11:03:43 -07:00
Cheng Zhao
a8b919f0e0 Print errors that happened before task-bootstrap 2015-03-30 15:01:19 +08:00
Cheng Zhao
e79a23f39a Do not set "cwd" for tasks
The task can be inside an asar archive, which is not allowed to be cwd.
2015-03-30 15:01:18 +08:00
Kevin Sawicki
d721cc62e3 Report deprecations in tasks 2015-02-19 14:12:48 -08:00
Kevin Sawicki
86cdfaeb94 Set cache directory in tasks 2015-02-12 14:22:45 -08:00
Kevin Sawicki
57bb4c322c Add source map caching to tasks 2015-02-12 14:22:45 -08:00
Kevin Sawicki
0738d456b5 Use coffee-cash module 2015-02-12 14:22:44 -08:00
Max Brunsfeld
ee7587e024 Update task docs 2015-01-09 16:59:13 -08:00
Max Brunsfeld
fb0769783f Don't use Emitter::off in Task
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-01-09 16:59:13 -08:00
Kevin Sawicki
2ea92cf0e5 💄 2014-12-16 14:31:52 -08:00
Cheng Zhao
fcf230ccb5 --harmony_collections is no more needed 2014-10-14 22:01:32 +08:00
Ben Ogle
f80334d617 Task has better examples 2014-09-16 14:03:33 -07:00
Ben Ogle
679c52ffd1 Task is extended 2014-09-16 14:03:17 -07:00
Ben Ogle
a296364e53 Fixup doc strings that don’t parse correctly
We can’t have a huge indent on the second line of a list item. Markdown
parses it as a code block. :(
2014-08-26 10:47:36 -07:00
Kevin Sawicki
5df944e804 📝 Update Task docs 2014-08-25 15:08:46 -07:00
Kevin Sawicki
4aba8fef7e 📝 Mention Task::start/Task::send throw errors
Refs #3326
2014-08-19 11:39:20 -06:00
Nathan Sobo
24943dd526 Avoid sending arguments object to child process.
The arguments variable is not a real array, and gets screwed up when
sending it to the child process. This updates it to send an array
instead.

Thanks to @lackac!

Refs atom/terminal#23.
2014-03-19 15:40:35 -06:00
Nathan Sobo
53fb36d0e2 Switch all documentation links to match CoffeeScript literal notation
Foo::bar for instance methods
Foo.bar for class methods
2014-02-19 17:23:47 -07:00
Kevin Sawicki
25a9ca4224 📝 doc parameters in task.coffee 2014-02-06 17:32:44 -08:00
Kevin Sawicki
932a792289 Remove Private: prefix 2014-02-06 10:02:53 -08:00
Kevin Sawicki
c765d069d1 Don't mark callback field as public 2014-02-04 13:40:49 -08:00
probablycorey
d7638b4420 Use require('coffee-script').register() 2014-01-28 16:35:05 -08:00
Kevin Sawicki
e4bcb52573 📝 Add requiring in packages example to exported classes 2014-01-21 18:43:07 -08:00
Kevin Sawicki
3c32a8e8fb Throw error when sending to terminated process
Mirrors behavior of start method
2014-01-11 17:23:53 -08:00
Kevin Sawicki
05a9ace3e6 📝 Add period to comment 2013-11-22 13:43:43 -08:00
Matt Colyer
febd845876 Escape backslashes in task bootstrap on all platforms 2013-10-30 14:48:22 -07:00
Matt Colyer
ab0c60bd45 Update paths in task bootstrap for windows
Fixes #1049
2013-10-30 14:30:01 -07:00
Kevin Sawicki
b70df78041 Remove duplicate extend call 2013-10-28 16:46:59 -07:00