johnlindquist / kit

Script Kit. Automate Anything.
https://scriptkit.com
MIT License
3.91k stars 138 forks source link

-login- already exists. Try again: #1431

Closed asos-danielc closed 9 months ago

asos-danielc commented 9 months ago

Hi team

Following an update (I am not sure which), whenever I try and run one of my scripts, I get the error:

-login- already exists. Try again:
Found value.data

Enter a name for your script's // Name: metadata
image

It then creates a -login-.ts file and fails

I also try the 'Edit` option for the scripts and get the same error.

Any ideas?

I have tried removing and re-installing.

Many thanks in advance!

johnlindquist commented 9 months ago

@asos-danielc Check your script for any "// Foo: " comments that might be accidentally parsed as metadata. We had a similar issue where someone had a "// value: bar" which was incorrectly submitting "bar" because the metadata parser being too aggressive.

asos-danielc commented 9 months ago

Thanks @johnlindquist ... this kinda fixed the problem, but think there are follow up issues. It seems like a number of my scripts now are not quite "compatible".

Not sure if it is comment related, but I am moving my scripts back in one by one. One in particular now is causing script kit to hang, but I can't see a log for that script being generated

johnlindquist commented 9 months ago

@asos-danielc Can you share the script that causes the hang?

One thing to watch for in particular, if script runs to the end, it will be automatically closed to prevent and zombies scripts hanging around.

So if something is async, and it's not wrapped in an async/await or script event listener, it's possible that script is terminating before the async stuff fires

asos-danielc commented 9 months ago

I am not yet able to dive into the last issue I mentioned but I am back up and running in general, therefore lets close this issue!

Huge thanks on your quick support!