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

Comment in script causes new script to be created #1501

Open
arkatsy opened this issue Jul 10, 2024 · 0 comments
Open

Comment in script causes new script to be created #1501

arkatsy opened this issue Jul 10, 2024 · 0 comments

Comments

@arkatsy
Copy link

arkatsy commented Jul 10, 2024

Running a script that contains a comment like this:

// value: something

will create a script named "something" in the scripts directory.

Is this expected behavior? I couldn't find anything in the docs.


I fell into this case where I had commented a line like this:

// value: isDark ? LIGHT_THEME_VALUE : DARK_THEME_VALUE,

which was causing an error like this when I was running the script:
isdark-light_theme_value-dark_theme_value can only include lowercase, numbers and-. Enter a different name:

It took me some time to figure out what was causing it 😅

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

No branches or pull requests

1 participant