autoscan Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE [^\}]*}/ - perl

when running autoscan 2.69 (2012 release) I got this error message. It is a simple error in the perl code. autoscan is part of autoconf.

I edited the file: /usr/bin/autoscan (only changed line 361) the modified version:
360 s/#.*//;
361 s/\$\{[^\}]*\}//g;
362 s/#[^#]*#//g;
This seems to get rid of the warning (future will be error) message.

Related

Syntax error on token: Eclipse do not show character but show error

I got issue in following line:
It says:
Syntax error on token );
Screenshot here under:
No Token existed.
Then i bring like 85 to 84 and remove all white space and clicked enter and error gone.
Then i CTRL+Z and i found this:
I am using :
Version: 2021-06 (4.20.0)
Build id: 20210612-2011
Any idea why this error exists?

Xcode - Swift Compiler Error For Bridging header

I'm attempting to use a Bridging header but when I try to run my application I get a swift compiler error, when I remove the bridging header and the header file the app runs.
This is the error message I get:
<unknown>:0: error: generate-pch command failed with exit code 1 (use -v to see invocation)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
My app has spaces in it's name and I'm denoting that by adding hyphens instead of spaces. I attempted to remove the space by using a backslash and a space like "${SRCROOT}/Project\ Name/headerFile.h" but I got this error message:
<unknown>:0: error: error opening input file '/Users/apple/Documents/Folder/Project Name/Project\ Name/HeaderFile.h' (No such file or directory)
Any advice or pointers would be greatly appreciated.
I just fixed this by using just spaces instead of hyphens or backslash and spaces. Simple enough.

How to use bibliography in different directory when knitting rmarkdown document to beamer presentation?

I'm knitting some beamer slides in an RMarkdown script in Rstudio on a Windows 7 PC. The slides are in the directory
C:/me/slides/myslides.Rmd
I have a master bibliography that lives in
C:/me/bib/masterbib.bib
I cannot figure out how to link to the bibliography file from the RMarkdown document. Here's the YAML from my attempt:
---
title: "Slides"
author: "me"
date: "2016-12-20"
bibliography: C:/me/bib/masterbib.bib
biblio-style: "apalike"
output:
beamer_presentation:
citation_package: natbib
---
Here's the error:
! Undefined control sequence.
<write> \string \bibdata {C:\me\bib\masterbib}
l.174 \end{frame}
Error: Failed to compile Slides.tex. See Slides.log for more info.
In addition: Warning message:
running command '"pdflatex" -halt-on-error -interaction=batchmode "Slides.tex"' had status 1
Execution halted
I've tried a couple other ways to specify the directory for masterbib.bib, but none have worked. I would prefer to keep the masterbib.bib file where it is, and not make an extra copy in the C:/me/slides/ directory. Thanks for your help!
Edit
When attempting to pass the following into YAML (quoteed with forward slashes):
bibliography: "C:/LaTeXstuff/BibTexLibrary/BrianBib.bib"
I get a fatal error with log output:
! Undefined control sequence.
<write> \string \bibdata {C:\me
\bib\masterbib}
l.174 \end{frame}
Here is how much of TeX's memory you used:
18047 strings out of 494045
334241 string characters out of 3145937
424206 words of memory out of 3000000
20891 multiletter control sequences out of 15000+200000
31808 words of font info for 44 fonts, out of 3000000 for 9000
715 hyphenation exceptions out of 8191
56i,11n,55p,434b,376s stack positions out of 5000i,500n,10000p,200000b,50000s
! ==> Fatal error occurred, no output PDF file produced!
When passing the following into YAML (quoted with backslashes)
bibliography: "C:\me\bib\masterbib.bib"
I get the following error in the Rstudio console
Error in yaml::yaml.load(enc2utf8(string), ...) :
Scanner error: while parsing a quoted scalar at line 4, column 15found unknown escape character at line 4, column 29
Calls: <Anonymous> ... yaml_load_utf8 -> mark_utf8 -> <Anonymous> -> .Call
Execution halted
When passing the following into YAML (unquoted with backslashes)
bibliography: C:\me\bib\masterbib.bib
I get the following error in the Rstudio console
! Undefined control sequence.
<write> \string \bibdata {C:\me
\bib\masterbib}
l.174 \end{frame}
Error: Failed to compile BibTest.tex. See BibTest.log for more info.
In addition: Warning message:
running command '"pdflatex" -halt-on-error -interaction=batchmode "BibTest.tex"' had status 1
Execution halted
Try unquoted with two backslashes:
...
bibliography: C:\\me\\bib\\masterbib.bib
...

Why do I get an "invalid zone in SetDate" error when using Date::Manip?

I have some code that I'm running with Perl 5.20 on Debian 8.1. But I'm getting a warning and an error in the following line:
Date::Manip::DM6::Date_Init("TZ=+0430");
Warning:
WARNING: the TZ Date::Manip config variable is deprecated
and will be removed in March 2016. Please use
the SetDate or ForceDate config variables instead.
Error:
ERROR: [config_var] invalid zone in SetDate:
at /usr/local/share/perl/5.20.2/Date/Manip/TZ.pm line 1768.
Date::Manip::TZ::_config_var_setdate(Date::Manip::TZ=HASH(0x3a11d80), "now,+0430", 0) called at /usr/local/share/perl/5.20.2/Date/Manip/TZ.pm line 1641
Date::Manip::TZ::_config_var_tz(Date::Manip::TZ=HASH(0x3a11d80), "tz", "+0430") called at /usr/local/share/perl/5.20.2/Date/Manip/TZ_Base.pm line 41
Date::Manip::TZ_Base::_config_var(Date::Manip::TZ=HASH(0x3a11d80), "TZ", "+0430") called at /usr/local/share/perl/5.20.2/Date/Manip/Obj.pm line 250
Date::Manip::Obj::config(Date::Manip::Date=HASH(0x3a119f0), "TZ", "+0430") called at /usr/local/share/perl/5.20.2/Date/Manip/DM6.pm line 96
Date::Manip::DM6::Date_Init("TZ=+0430") called at adsl.pl line 75
How can I fix this?
The deprecation is explained in Date::Manip::Config:
TZ
This variable is deprecated, but will be supported for several releases. The SetDate or ForceDate variables (described next) should be used instead.
The following are equivalent:
$date->config("tz","Europe/Rome");
$date->config("setdate","now,Europe/Rome");
As for the warning about "invalid zone," apparently* Date::Manip requires you to specify offsets in the format +HH:MM:SS (or -HH:MM:SS).
To fix both warnings, change line 75 of adsl.pl from this:
Date_Init("TZ=+0430");
to this:
Date_Init("setdate=now,+04:30:00");
* I don't see this documented anywhere, but the warning is triggered by the following code in Date::Manip::TZ:
return undef if (! exists $$self{'data'}{'Offmod'}{$offset});
This does a hash lookup in %Date::Manip::Zones::Offmod, which only has keys in the format +HH:MM:SS (or -HH:MM:SS).

EOF exception while reading clojure file

When I run the web application in the ring jetty server, I got EOF exception, I can't fix this, since there is no clue on which line the error has occurred. I'm using compojure and hiccup on my clojure code. I'm using Emacs 23 as editor.
Here is the part of the exception :
Exception in thread "main" java.lang.Exception: EOF while reading (core.clj:66)
at clojure.lang.Compiler.load(Compiler.java:5863)
at clojure.lang.RT.loadResourceScript(RT.java:340)
at clojure.lang.RT.loadResourceScript(RT.java:331)
.................
............
.........
.....
How can I fix it? Thanks!
I guess you've got mismatched parentheses, brackets or braces. In Emacs, try M-x show-paren-mode, then put your cursor on various parentheses in the file (starting with the first) to figure out which ones are unmatched.