Yes, I misremembered the rc that Chris got.
What is interesting is that the "invalid syntax" error message is not consistent with rc 111 - I thought it was some sort of generic, but in fact it is the precise message for rc 197 - reporting that there was a syntax error on the syntax command (or some other parsing command). And in my Stata 16.1 installation, a missing which returns rc 111.
And for you too it printed the "invalid syntax" message associated with rc 197 and then reported rc 111 on exit.
Let me add that I have the same experience with the 1.5.1 version of matchit, so it is a pre-existing condition.
I am beginning to wonder if there is a problem in the built-in which command, or else with the capture prefix. As I initially experienced, the two message about freqindex were suppressed in my output. Yet now I too get those messages. And my first attempt just at the code immediately above suppressed the output from the which matchit command. But a second attempt a few minutes later produced what's above.
This may be a problem worth seeking advice about from Stata Technical Services.
Meanwhile, if Chris Jiao does not confirm my hypothesis about freqindex being missing, we still have to discover the source of the original problem. But I'm optimistic that the two are somehow related.
What is interesting is that the "invalid syntax" error message is not consistent with rc 111 - I thought it was some sort of generic, but in fact it is the precise message for rc 197 - reporting that there was a syntax error on the syntax command (or some other parsing command). And in my Stata 16.1 installation, a missing which returns rc 111.
Code:
. capture noisily which gnxl command gnxl not found as either built-in or ado-file . display _rc 111
Code:
help rc 111 help rc 197
Code:
. capture noisily which matchit /Users/lisowskiw/Library/Application Support/Stata/ado/plus/m/matchit.ado *! 1.5.1 J.D. Raffo April 2019 . capture noisily which freqindex command freqindex not found as either built-in or ado-file . matchit idmaster cnms using `myusing', idusing(idusing) txtusing(cnms) di sim(token) freqindex not found. matchit requires freqindex to be installed. You can get it in SSC. invalid syntax r(111);
This may be a problem worth seeking advice about from Stata Technical Services.
Meanwhile, if Chris Jiao does not confirm my hypothesis about freqindex being missing, we still have to discover the source of the original problem. But I'm optimistic that the two are somehow related.
Comment