Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

PoC: support babel-register #837

Closed
wants to merge 22 commits into from
Closed

Conversation

mctavish
Copy link
Contributor

@mctavish mctavish commented Mar 4, 2020

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@mctavish mctavish requested a review from bcoe March 4, 2020 17:23
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 4, 2020
Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

Hey @mctavish thanks for opening up this PR, I think this is the best route; rather than completely forking the library, and I'm open to releasing to an experimental tag, e.g.,

npm i @google-cloud/debug@babel-register-poc

I'll make an effort to provide some review next week, it is probably also worth looping in @DominicKramer who is much more familiar with this codebase than myself.

@DominicKramer
Copy link
Contributor

@mctavish and I have been in communication about this. I will review it as soon as I can.

Copy link
Contributor

@DominicKramer DominicKramer left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks for helping with this. I had a few nits, and there are some test failures to address, but it looks good. @bcoe How would you like to proceed with this? Should we have a separate tagged release as you mentioned doing before landing this in master?

}

/** Interfaces pulled from source-map-support. */
interface Position {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason we can't use these directly from source-map-support? Are they not exported from it?

lineNumber: number,
colNumber: number
): MapInfoOutput | null {
const sms = this.safeRequireSourceMapSupport();
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: It could be easier to read if you had

if (!sms) {
  return null
}
...

baseScriptPath,
line,
column
// Presently it is not possible to precisely disambiguate the script
Copy link
Contributor

Choose a reason for hiding this comment

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

The config has a workingDirectory configuration that could be useful.

cb,
breakpoint,
StatusMessage.BREAKPOINT_SOURCE_LOCATION,
utils.messages.INVALID_BREAKPOINT // FIXME: Temporary just to check code flow.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please address this before landing. Thanks.

@JustinBeckwith
Copy link
Contributor

gentle bump we have a major release coming up - any chance of us landing this along with it?

@bcoe
Copy link
Contributor

bcoe commented Apr 12, 2020

@DominicKramer sorry for the slow response. I need to give this a more thorough review. If we do have a specific application in mind, I don't think it's a bad idea to release it to a next tag, and have @mctavish test it out.

@mctavish, could I bother you to flesh out the description of this pull request with a more thorough description of the feature, and the motivation 👌

@product-auto-label product-auto-label bot added the api: clouddebugger Issues related to the googleapis/cloud-debug-nodejs API. label Aug 21, 2020
@sofisl sofisl added sup and removed sup labels Aug 28, 2020
@bcoe bcoe requested a review from a team as a code owner November 3, 2020 14:28
@bcoe
Copy link
Contributor

bcoe commented Nov 3, 2020

👋 is this still work we want to land eventually?

@mctavish
Copy link
Contributor Author

mctavish commented Nov 3, 2020

I'll close this for now; the forked repository still exists so it can be revived later if the demand for the feature returns.

@mctavish mctavish closed this Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: clouddebugger Issues related to the googleapis/cloud-debug-nodejs API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants