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

Server requires #lang line even though #reader is present. #86

Closed
jlefkoff opened this issue Nov 7, 2022 · 1 comment · Fixed by #132
Closed

Server requires #lang line even though #reader is present. #86

jlefkoff opened this issue Nov 7, 2022 · 1 comment · Fixed by #132

Comments

@jlefkoff
Copy link

jlefkoff commented Nov 7, 2022

By default, opening a file created in DrRacket in VSCode throws the error Missing or invalid #lang line from define lang-diag as seen in check-syntax.rkt. However this file compiles and runs just fine. Below is an example of the first three lines inserted by DrRacket.

;; The first three lines of this file were inserted by DrRacket. They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname 1-family) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
@dannypsnl
Copy link
Contributor

Because this project open file with racket:text% class, the class requires the language file must have #lang line, so it would only accidentally work for non-racket language (I know it sounds weird)

virchau13 added a commit to virchau13s-forks/racket-langserver that referenced this issue Sep 7, 2024
Files created by DrRacket do not have `#lang` directives; they only
have `#reader` directives instead. (See e.g.
jeapostrophe#86).
The "Missing `#lang`" diagnostic should not be reported in these files.

Fixes jeapostrophe#86.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants