worldbank / stata-linter

MIT License
29 stars 13 forks source link

lint command not found after installation #81

Open lhebates opened 1 year ago

lhebates commented 1 year ago

I recently installed stata-linter using ssc install, but the command cannot be found by state, or in the state ado folder. The python files seem to be installed though. Below is a screenshot showing that the package is installed, lint.ado cannot be found. I appreciate any advice. Thanks!

Screenshot 2023-05-09 at 10 25 23 PM
kbjarkefur commented 1 year ago

Thank you @lhebates for reporting this. We have been able to reproduce this error and we are looking into the source of the error. We will report back here when we have a solution.

lhebates commented 1 year ago

Thanks very much!

luisesanmartin commented 1 year ago

@lhebates we received word from the administrator of SSC that this problem should be corrected by now. Can you try in your computer and let us know? thanks

kbjarkefur commented 1 year ago

Just note that the command is lint (as Stata commands tend to be verbs and not nouns). So after reinstalling, (either ssc uninstall stata_linter then ssc install stata_linter, or ssc install stata_linter, replace) try which lint instead of which linter.

lhebates commented 1 year ago

Thank you for the reply and detailed instructions related to the fix. The lint command is now installed with the updated package. A new issue appeared though. The lint command runs without showing any error, but my stata would crash before producing any output.

luisesanmartin commented 1 year ago

@lhebates can you share the do-file you're using as input to reproduce the error?

lhebates commented 1 year ago

Yes. Please find the do files I used to produce the issue in the zip file below.

linter_issue_test.zip