Clasp: Pushing V8 code into non-V8 project

Created on 28 Apr 2020  路  9Comments  路  Source: google/clasp

When pushing V8 code into non-V8 project, the push fails. Howeer, the error message "Error: Syntax error: Missing ; before statement. ", while obviously true, didn't immediately make me realise that this is with V8/non-V8 code.

Expected Behavior

A warning message would be helpful, but may not be possible.

Specifications

2.3.0

forked-clasp

Most helpful comment

778 have a cleaner error handling architecture but there is probably not yet a user friendly catch for this case

All 9 comments

Could you wait #778 merging then return to this again?

@bjohas are you pushing plain .js or .ts?

If its .js then catching the error would be nice to have.

Plain .js, i.e., trying to push "V8-plain-js" into a non-V8 project. I'll look out for the PR merge and then try again.

778 have a cleaner error handling architecture but there is probably not yet a user friendly catch for this case

OK, sure - I'll test again once https://github.com/google/clasp/pull/778 has been merged.

Thanks for working on clasp!

Can you test with the #791 unofficial release?

npm uninstall -g @google/clasp && npm install -g forked-clasp
clasp --version
# should be 2.4.0 or more

Thank you - will do and report back!

@bjohas what is the status for this issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nmccready picture nmccready  路  5Comments

imthenachoman picture imthenachoman  路  3Comments

hariharasuthan-balaji picture hariharasuthan-balaji  路  8Comments

aandis picture aandis  路  7Comments

grant picture grant  路  3Comments