Skip to content

Inlay hint does not work correctly if the path to the source code contains Unicode characters #2077

@Yosh31207

Description

@Yosh31207

Describe the bug

Inlay type hint does not show correctly if the path to the source code contains Unicode character.

Possibly this may be related to #1520.

Screenshots

When source code is placed to a location that does not contains Unicode characters:

Image

When the path contains Unicode:

Image

This occurs in both cases that Unicoide is contained in the file name and intermediate directory name.

Path to the source code Problem occurs
C:\Users\user-name\project\Example.fs No
C:\Users\user-name\project\サンプル.fs Yes
C:\Users\user-name\プロジェクト\Example.fs Yes
C:\Users\user-name\プロジェクト\project\Example.fs Yes

(Note: my user name does not contain Unicode characters)

This is same for F# scripts (*.fsx). I think using fsx is convenient to reproduce the problem.

It is okay that moule name in the source code contains Unicode charater.

Image

Machine infos

  • OS: Windows
  • .NET SDK version: 9.0.200-preview.0.24575.35
  • Ionide version: 7.25.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions