R-under-devel via winbuilder is giving me the following note, for the
ctsem package. I have no idea what it refers to -- I chased down the
few instances of using the break function in my package and reworked
the code to get rid of them, but didn't help. Any clues, or idea why
this note is so uninformative, would be welcome...
* checking data for non-ASCII characters ... NOTE
SyntaxError: break must be inside loop or switch
at :2513
Cheers,
Charles
[R-pkg-devel] pkg check: SyntaxError: break must be inside loop or switch
3 messages · Charles Driver, Ivan Krylov
? Tue, 10 Oct 2023 16:36:31 +0200 Charles Driver <cdriver.aus at gmail.com> ?????:
SyntaxError: break must be inside loop or switch
This looks like an error coming from a JavaScript engine or from a JavaScript-derived language: https://github.com/blld/libecc/blob/88877a46ba9b0a47567aa999a4380b9e793783a8/src/main.c#L714 https://github.com/ynezz/openwrt-ucode/blob/5163867269fc04fa01ec5e9f8df3384c933339f2/compiler.c#L2930https://github.com/Bobris/Njsast/blob/930f59a9694432580a7b1367680c56672cfe4cd2/Njsast/Compress/LoopControlFinderTreeWalker.cs#L34 (Most modern implementations say "_unlabeled_ break must be inside loop or switch", but this may come from an older version.) This seems to have nothing to do with Stan either; at the very least I cannot find this exact error message in https://github.com/stan-dev. When R complains about a wrongly placed `break`, it also looks differently: break # Error: no loop for break/next, jumping to top level An infrastructure hiccup on Win-Builder?
Best regards, Ivan
1 day later
So apparently there is a corrupted file in the current Stanheaders, which is hopefully fixed soon...
On 11/10/2023 9:40 am, Ivan Krylov wrote:
? Tue, 10 Oct 2023 16:36:31 +0200 Charles Driver<cdriver.aus at gmail.com> ?????:
SyntaxError: break must be inside loop or switch
This looks like an error coming from a JavaScript engine or from a JavaScript-derived language: https://github.com/blld/libecc/blob/88877a46ba9b0a47567aa999a4380b9e793783a8/src/main.c#L714 https://github.com/ynezz/openwrt-ucode/blob/5163867269fc04fa01ec5e9f8df3384c933339f2/compiler.c#L2930https://github.com/Bobris/Njsast/blob/930f59a9694432580a7b1367680c56672cfe4cd2/Njsast/Compress/LoopControlFinderTreeWalker.cs#L34 (Most modern implementations say "_unlabeled_ break must be inside loop or switch", but this may come from an older version.) This seems to have nothing to do with Stan either; at the very least I cannot find this exact error message inhttps://github.com/stan-dev. When R complains about a wrongly placed `break`, it also looks differently: break # Error: no loop for break/next, jumping to top level An infrastructure hiccup on Win-Builder?