Skip to content
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

Validate build_web_compilers, Exception handling #16

Merged
merged 6 commits into from
Mar 21, 2018
Merged

Validate build_web_compilers, Exception handling #16

merged 6 commits into from
Mar 21, 2018

Conversation

kevmoo
Copy link
Member

@kevmoo kevmoo commented Mar 21, 2018

No description provided.

@kevmoo kevmoo requested a review from natebosch March 21, 2018 16:51
onError: errorPort.sendPort,
automaticPackageResolution: true);
} on IsolateSpawnException {
exitPort.close();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@natebosch – should do this on build_runner, too – ensures the process actually exits!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hrm...or maybe this should be try/finally....

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try finally would maybe be better.
What is a case where IsoalteSpawnException would get raised?

If package:isolate abstracts any of this for us we should make it a priority to migrate - I don't like having this much duplication

## 0.1.1

- Checks for a dependency on `build_web_compilers`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't understand why some people like <li><p>stuff</p></li> instead of <li>stuff</li>...

onError: errorPort.sendPort,
automaticPackageResolution: true);
} on IsolateSpawnException {
exitPort.close();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try finally would maybe be better.
What is a case where IsoalteSpawnException would get raised?

If package:isolate abstracts any of this for us we should make it a priority to migrate - I don't like having this much duplication

@kevmoo
Copy link
Member Author

kevmoo commented Mar 21, 2018

@natebosch – added two more commits – while I was at it. PTAL

await process.shouldExit(78);
});

test('should fail gracefully if there is an isolate error', () async {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where are we causing the isolate error?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I synthesized one to make sure we "do the right thing".

For the script runner, I just use a bad .packages file.
For the main runner, I gave it a bad file to execute...

@kevmoo kevmoo force-pushed the updates branch 2 times, most recently from 107e6d4 to fd42c7b Compare March 21, 2018 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants