Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Compilers raise many errors other than syntax errors. A compiler can act as a language server and expose all of the errors it raises through that interface. Not many compilers do this yet, but in ...
#1: Initial revision
Compilers raise many errors other than syntax errors. A compiler can act as a language server and expose all of the errors it raises through that interface. Not many compilers do this yet, but in principle nothing stops them from doing so. At our current point in history, though, a compiler is a tool whose primary responsibility is turning source code into executable code, and a language server is a tool whose primary responsibility is exposing information about symbols and errors to an editor. Nothing stops one tool from being written to fulfill both responsibilities, but they are distinct responsibilities.
