inline-markdown-editor icon indicating copy to clipboard operation
inline-markdown-editor copied to clipboard

fixed deps git protocol

Open jywarren opened this issue 3 years ago • 12 comments

jywarren avatar Mar 15 '22 19:03 jywarren

Lets upgrade editor to 3.1.0 to resolve:

https://github.com/publiclab/inline-markdown-editor/blob/12b3d1a6bd510115e98bdf8c2285173150b67d55/package-lock.json#L4947

jywarren avatar Mar 18 '22 14:03 jywarren

Hmm... ok its very close to this issue: https://github.com/actions/setup-node/issues/214

jywarren avatar Mar 18 '22 15:03 jywarren

a5ccf9a resulted in an endless loop of tests oddly. Trying node 16 instead...

jywarren avatar Mar 18 '22 15:03 jywarren

node 16 worked but went into endless test loop.

jywarren avatar Mar 18 '22 15:03 jywarren

Solved recursive issue. Now getting:

12 specs in 0.[31](https://github.com/publiclab/inline-markdown-editor/runs/5602541469?check_suite_focus=true#step:7:31)4s.
>> 0 failures
Fatal error: Callback must be a function. Received undefined
Error: Process completed with exit code 3.

Prev this didn't happen:

https://github.com/publiclab/inline-markdown-editor/runs/2969361193?check_suite_focus=true

jywarren avatar Mar 18 '22 15:03 jywarren

Unfortunately i think we may have an incorrectly written function somewhere in out tests? I'm not sure. Compare to similar error in this: https://stackoverflow.com/questions/36514468/jasmine-throws-one-error-error-timeout-async-callback-was-not-invoked#36514646

jywarren avatar Mar 18 '22 15:03 jywarren

Noting that in plots2:

However I'm not seeing this error in other recent plots2 PRs... very strange. So maybe we can drop this for now?

https://github.com/publiclab/plots2/pull/10768#issuecomment-1072528207

jywarren avatar Mar 18 '22 15:03 jywarren

@jywarren Can you try adding a callback done to this function and calling it? https://github.com/publiclab/inline-markdown-editor/blob/12b3d1a6bd510115e98bdf8c2285173150b67d55/spec/javascripts/replacement_spec.js#L3

TildaDares avatar Mar 18 '22 16:03 TildaDares

@jywarren Can you try adding a callback done to this function and calling it?

https://github.com/publiclab/inline-markdown-editor/blob/12b3d1a6bd510115e98bdf8c2285173150b67d55/spec/javascripts/replacement_spec.js#L3

Thank you I'll try that!

jywarren avatar Mar 22 '22 18:03 jywarren

Hmm, i don't know why the Github Actions CI run isn't going, but i tried it manually in gitpod and got:

12 specs in 0.002s.
>> 0 failures
Fatal error: Callback must be a function. Received undefined

... so same issue. This is lower priority now but pretty annoying!

jywarren avatar Mar 22 '22 18:03 jywarren

@jywarren You didn’t add the done callback to the function declaration on line 3.

TildaDares avatar Mar 22 '22 19:03 TildaDares

Just noting that we're getting a recursive loop of the tests running. Maybe we can search for this kind of error in the Jasmine forums or on StackOverflow.

jywarren avatar Aug 01 '22 00:08 jywarren