Skip to content

FS0000 warning (not assigned) for #light or #indent being misplaced #9787

@abelbraaksma

Description

@abelbraaksma

The following warning has no error number number assigned (and text is wrong and not internationalized, I pick that up in #9779)

image

test.fs(3,1): warning FS0000: #light should only occur as the first non-comment text in an F# source file

Repro steps

#light 
module Foo 
#indent "on"   // raises FS0000 warning

Expected behavior

Proper warning with a warning number, the token is #indent, not #light

Actual behavior

See screenshot: a warning without a warning number.

Proposed fix

I've fixed the text already, but there's two more things that need to be done here:

  1. It should be put inside FSComp.SR and translated
  2. A number should be assigned.

I can do (1), and I believe then the translations will be picked up, but I don't know how to do (2).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions