Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Problem with @require library #39

Open
jesus2099 opened this issue Jan 5, 2016 · 6 comments
Open

Problem with @require library #39

jesus2099 opened this issue Jan 5, 2016 · 6 comments

Comments

@jesus2099
Copy link
Contributor

Using Violent monkey 1.6.9.2.

It seems that something like once a day (probably after auto update check), all my scripts that are using a (specific version?) library are either loosing the library or the library is being corrupt… ?

I had it after holidays (jesus2099/konami-command#140) and found that I just had to reinstall one of the scripts so the library would be loaded OK again but today it happens again (no scripts should have been updated in the meantime).

The three impacted scripts are all using the same library version (unlike my other scripts), and I don’t see anything special with this specific version.

@require https://greasyfork.org/scripts/10888-super/code/SUPER.js?version=70394&v=2015.8.27

Once you go to a page in which they are supposed to run OK, it says, for each script :

Error running script: mb. SCRIPT NAME HERE
ReferenceError: Undefined variable: getParent

getParent being one of the functions from the linked SUPER.js library.

I really need those scripts so I applied my work‐around — which consists in reinstalling only one of the three scripts — this raw button, actually — and they are now working back again, all three.

But it seems I might get this problem back with each auto update check ?
It’s the first time I notice this kind of problem, in 2015 and before I hadn’t seen this.

@gera2ld, do you think my extension storage is full or something like that ?

@jesus2099 jesus2099 changed the title Emptied library (@requires) Emptied library (@require) Jan 5, 2016
@jesus2099 jesus2099 changed the title Emptied library (@require) Problem with @require library Jan 5, 2016
@jesus2099
Copy link
Contributor Author

It has not happened again for a long time.

@jesus2099
Copy link
Contributor Author

Hello @gera2ld.
Today Violentmonkey extension did update and my scripts lost their libraries.
It seems I just had to use the Vacuum database button to fix my scripts.
Maybe you know how to avoid breaking libraries (@require) on Violentmonkey update?
But it can totally be because of my setup, don’t worry otherwise, as I found this convenient workaround button.

@jesus2099 jesus2099 reopened this May 11, 2016
@gera2ld
Copy link
Member

gera2ld commented May 15, 2016

Cannot reproduce it. What if you change the @version of your script manually and then check for updates?

@jesus2099
Copy link
Contributor Author

That is how I did previously but if the vacuum button works, I could save going into each script to change the version.
I close again as it may be only me and my network setup, I would reopen when I have new details.

@jesus2099
Copy link
Contributor Author

FTR, it still happens from time to time that the library/ies of some script(s) go(es) blank (I know because it then says it cannot find this/that function).
So here is my work‐around (kind of same as changing version and ask for update, but quicker).

Open said script and type:
(space or any other character) ; Ctrl+s (save) ; (backspace) ; Ctrl+s (save)

@jesus2099
Copy link
Contributor Author

jesus2099 commented Dec 12, 2016

Hi @gera2ld,
It happened to me once more today on many scripts (not only mine).
Even if we can’t find why it’s loosing libraries (@require), maybe we could have a new button that would force reload everything possible?
I tried purge and force update without success…
Sure, there is a work‐around, but applying it on my 60 scripts is quite tedious.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants