Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linter #14

Open
christophe-gouel opened this issue Nov 13, 2024 · 0 comments
Open

Linter #14

christophe-gouel opened this issue Nov 13, 2024 · 0 comments

Comments

@christophe-gouel
Copy link
Collaborator

Hi,

I have started working on a linter for GAMS mode (a feature present in GAMS Studio). I have put it in a separate file in my repo: gams-flymake.el. For now, it is at an early stage. It works well on small files, but it has to be tested in more complex settings.

The idea is simple: parse the lst file for the errors and highlight the GAMS code with the error using flymake, which is now built-in in emacs. When it will be fully functional, there would be no need to go to the LST files to fix errors.

For now, the approach may be too eager: the linter is launched immediately when you open a GAMS file (only for gms files). It could be better to do as in GAMS Studio, only lint the code after a run (or if asked by the user).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant