Git Product home page Git Product logo

stata-language-server's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m a 2-year developer. I used to be a data analyst.
  • ๐Ÿ‘€ I learned computer science by myself.
  • ๐Ÿ‘จโ€๐Ÿ’ป Involved 1.company projects: AI(CV) end-to-end service, Python Fintech BI library; 2.side project: VSCode Extension for Stata Language
  • ๐ŸŒฑ Iโ€™m currently learning Java, Typescript
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on open source projects
  • ๐Ÿ“ซ How to reach me: [email protected]

Hai's GitHub stats

stata-language-server's People

Contributors

hankbo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stata-language-server's Issues

How do I build this repo on my local machine?

Hey, I am have issues setting up the language server on my local machine, what I mean is that when I launch the client, the language server facilities such hover, auto-completion etc. does not work. How do I get that to work? Thanks :-)

Stata Language Server: Python crash

How can i fix this error? Many thanks.

The /usr/bin/python3 server crashed 5 times in the last 3 minutes. The server will not be restarted.

Over-aggressive style checking

It seems like the style checker is overly aggressive. I'll start with a mild-example that I think can go both ways and then provide an example where I think it's clearly incorrect to be complaining.

Ideally, I'd like if the style checker could be customized, but, absent that, I would appreciate better default settings

Innocuous Example

The use of indents to demarcate blocks of code is fairly standard, but in the example below, the indented lines are flagged for inappropriate indented line

frame create agg_data
frame agg_data {
    sysuse auto
    gcollapse (mean) mpg, by(foreign)
}

Indents are also commonly used to handle extremely long commands, yet the style checker will both

  • complain that the line is too long if you don't do anything; and
  • complain that you have inappropriately indented lines when you fix it
* This is a very long command that gets flagged
twoway (line y x) || (scatter y x) || (line y x) || (line y x) || (line y x) || (line y x) || (line y x) || (line y x) || (line y x) || (line y x) || (line y x) || (line y x) || (line y x) || (line y x) || (line y x) || (line y x)

* This is the wrapped version of the same command
* that still gets flagged

twoway ///
    (line y x) || ///
    (scatter y x) || ///
    ... ///
    (line y x)

Clearly wrong Example

The style checker is ignorant of standard Stata syntax for checking the display format of variables. If you write format date %td, which is the idiomatic way to format a numeric column so that it prints as a Stata date, the style checker flags it as whitespace around operator should be 1. Of course, this is a relic of python styling, where % is used as an operator much like -, +, etc. But Stata does not use % in that way.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.