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

fix: text join block warning when using block-plus-minus plugin #2025

Merged
merged 5 commits into from
Oct 20, 2023
Merged

fix: text join block warning when using block-plus-minus plugin #2025

merged 5 commits into from
Oct 20, 2023

Conversation

HadyBazzi
Copy link
Contributor

@HadyBazzi HadyBazzi commented Oct 19, 2023

The basics

The details

Resolves

When combined with google/blockly#7598 this resolves #1134.

Proposed Changes

Use the quote_image_mixin extension instead of the text_quotes extension.

Reason for Changes

Using the quote_image_mixin stops the following warning from appearing when using the text_join block with the block-plus-minus plugin due to the text_quotes extension calling this.quoteField_('TEXT');:
field named "TEXT" not found in "text_join" block

Additional Information

google/blockly#7598 should be passed before this to avoid errors due to the quote_image_mixin not currently existing.

@HadyBazzi HadyBazzi requested a review from a team as a code owner October 19, 2023 19:47
@HadyBazzi HadyBazzi requested review from NeilFraser and removed request for a team October 19, 2023 19:47
@google-cla
Copy link

google-cla bot commented Oct 19, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@BeksOmega
Copy link
Contributor

The test failure was expected! Just wanted to make sure it actually failed.

@BeksOmega
Copy link
Contributor

Hello! This looks great @HadyBazzi =) Thank you for the work on it!

I just need a few more things before I can get this merged:

  1. Modify the package.json in plus-minus procedure blocks to have a dev and peer dependency of 10.3.0-beta.0. This is a beta I just created with your changes in core!
  2. Rebase this branch onto 2023-q4-release and put the pull request against that instead of master.

@HadyBazzi HadyBazzi changed the base branch from master to 2023-q4-release October 20, 2023 21:28
cpcallen and others added 2 commits October 20, 2023 17:50
Fixes #1877.

Don't advertise module entrypoints on packages that are implemented
in TypeScript as at the moment our webpack configuration does not
generate any file called src/index.js.
@HadyBazzi
Copy link
Contributor Author

Hello,
Your welcome! That should do it. Please let me know if there are any issues.

@HadyBazzi
Copy link
Contributor Author

Oops, I missed that. Thank you for fixing it!

@BeksOmega
Copy link
Contributor

Oops, I missed that. Thank you for fixing it!

Haha 100% all good! Didn't want to bug you with such a minor thing :P

Thank you for your work on this! LGTM =)

@BeksOmega BeksOmega merged commit affdaac into google:2023-q4-release Oct 20, 2023
7 checks passed
@HadyBazzi HadyBazzi deleted the fix/text-join-block-warning-when-using-block-plus-minus-plugin branch October 20, 2023 22:46
BeksOmega added a commit that referenced this pull request Dec 7, 2023
* fix: text join block warning when using block-plus-minus plugin

* Update package.json

* fix(packaging): Don't advertise non-existent ESM entrypoints (#2022)

Fixes #1877.

Don't advertise module entrypoints on packages that are implemented
in TypeScript as at the moment our webpack configuration does not
generate any file called src/index.js.

* Revert "fix(packaging): Don't advertise non-existent ESM entrypoints (#2022)"

This reverts commit 3382ac7.

* update package-lock

---------

Co-authored-by: Christopher Allen <cpcallen+git@google.com>
Co-authored-by: Beka Westberg <bwestberg@google.com>
BeksOmega added a commit that referenced this pull request Dec 7, 2023
* fix: text join block warning when using block-plus-minus plugin

* Update package.json

* fix(packaging): Don't advertise non-existent ESM entrypoints (#2022)

Fixes #1877.

Don't advertise module entrypoints on packages that are implemented
in TypeScript as at the moment our webpack configuration does not
generate any file called src/index.js.

* Revert "fix(packaging): Don't advertise non-existent ESM entrypoints (#2022)"

This reverts commit 3382ac7.

* update package-lock

---------

Co-authored-by: Christopher Allen <cpcallen+git@google.com>
Co-authored-by: Beka Westberg <bwestberg@google.com>
BeksOmega added a commit that referenced this pull request Dec 7, 2023
* fix: text join block warning when using block-plus-minus plugin

* Update package.json

* fix(packaging): Don't advertise non-existent ESM entrypoints (#2022)

Fixes #1877.

Don't advertise module entrypoints on packages that are implemented
in TypeScript as at the moment our webpack configuration does not
generate any file called src/index.js.

* Revert "fix(packaging): Don't advertise non-existent ESM entrypoints (#2022)"

This reverts commit 3382ac7.

* update package-lock

---------

Co-authored-by: Christopher Allen <cpcallen+git@google.com>
Co-authored-by: Beka Westberg <bwestberg@google.com>
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.

block-plus-minus plugin: field named "TEXT" not found in "text_join" block
4 participants