[R-pkg-devel] pkg check: SyntaxError: break must be inside loop or switch
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?