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

Properly quote unix launch scripts #199

Merged
merged 3 commits into from
Aug 21, 2024
Merged

Conversation

BlueDrink9
Copy link
Contributor

This is a classic bash bug. Without quotes, any spaces in the directory that kaleido is installed into will cause the commands to split into multiple arguments. This change fixes #78, a long-standing (3 years) and annoying issue for people using per-project venvs with spaces in the project name.

Properly quote osx fetch_chromium

Properly quote osx build_blink
Copy link
Collaborator

@ayjayt ayjayt left a comment

Choose a reason for hiding this comment

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

Hi @BlueDrink9, you're 100% right. We have 3 PR's up for a complete overhaul of the build system. I do believe I properly quoted all of my bash variables. Win + Mac are in internal debugging and should be out early next week.

  1. All platform's build scripts are consolidated into a series of bash scripts 00-NAME.sh through 13-NAME.sh. There are more complicated helper scripts xx-NAME.sh if you're interested in a developer environment, but I'm not sure if those are cross platform. 00-.sh through 13-.sh are.
  2. It is accompanied with a update of the C++ API to support concurrency (although kaleido.py doesn't support asynchronous exports yet) and the newer versions of chromium (>126). I didn't fix the build for the old version of chromium master currently supports (88) because it has a bunch of CVE's anyway and it's 3rd party dependencies have degraded.

I will do my best over the coming weeks to litter READMEs through the directories and better comment the code.

Thank you for the PR. I include one question but if we're really just properly quoting "" we can accept it before accepting the larger overhaul without issue.

repos/mac_scripts/build_kaleido Outdated Show resolved Hide resolved
@ayjayt
Copy link
Collaborator

ayjayt commented Jul 26, 2024 via email

@BlueDrink9
Copy link
Contributor Author

Fixed that now. I also see my editor automatically did some formatting and created errant newlines, apologies for that extra messiness in the diff.

@ayjayt
Copy link
Collaborator

ayjayt commented Jul 30, 2024 via email

Copy link
Collaborator

@ayjayt ayjayt left a comment

Choose a reason for hiding this comment

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

@gvwilson I think this is fine (if not about to be obsoleted)

can close: #78 w/ accepting this

@gvwilson gvwilson removed their assignment Aug 14, 2024
@gvwilson gvwilson added community community contribution fix fixes something broken P2 needed for current cycle labels Aug 14, 2024
@ayjayt ayjayt merged commit 956bfb3 into plotly:master Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community community contribution fix fixes something broken P2 needed for current cycle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Static Image Export Fails If Kaleido is Installed in a virtualenv with Spaces in the Path
3 participants