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

Add error log when passing args to run on ScalaJSModule #3327

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

lolgab
Copy link
Member

@lolgab lolgab commented Jul 31, 2024

Fixes #3324

Pull Request: #3327

@lolgab lolgab changed the title Pass command line arguments to ScalaJSModule run Pass command line arguments to ScalaJSModule run Jul 31, 2024
case c: JsEnvConfig.ExoegoJsDomNodeJs => c.copy(args = args().value.toList)
case c: JsEnvConfig.JsDom => c.copy(args = args().value.toList)
case c: JsEnvConfig.Phantom => c.copy(args = args().value.toList)
case c => c
Copy link
Member

Choose a reason for hiding this comment

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

We should use T.log to let the user know in case we match some unknown type and args is non-empty.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done ✅

@lolgab lolgab force-pushed the pass-command-line-args-scalajs branch from e741afe to 67c9abf Compare August 1, 2024 10:29
@lolgab lolgab changed the title Pass command line arguments to ScalaJSModule run Add info log when passing args to run on ScalaJSModule Aug 1, 2024
@lolgab lolgab force-pushed the pass-command-line-args-scalajs branch from 67c9abf to 7532251 Compare August 1, 2024 11:27
@lolgab lolgab marked this pull request as ready for review August 1, 2024 11:28
@lolgab lolgab changed the title Add info log when passing args to run on ScalaJSModule Add error log when passing args to run on ScalaJSModule Aug 1, 2024
@lolgab lolgab merged commit 7c7969c into com-lihaoyi:main Aug 1, 2024
39 checks passed
@lefou lefou modified the milestones: 0.11.12, 0.11.11 Aug 1, 2024
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.

The run command for ScalaJSModule does not pass along the provided args
2 participants