Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Cannot go to definition if the path contains Cyrillic characters #2099

Open
moprules opened this issue Jul 4, 2020 · 2 comments
Open

Cannot go to definition if the path contains Cyrillic characters #2099

moprules opened this issue Jul 4, 2020 · 2 comments

Comments

@moprules
Copy link

moprules commented Jul 4, 2020

Issue Type: Bug

If the project path contains Russian letters, you can't find the module using "ctrl+click_on_module_name", even if the modules are in the same folder.

  1. path contains Russian letters - "Документы"
    /home/mop/Документы/projects/test_bug
    image

  2. the same project without Russian letters in the path to the project
    /home/mop/test_bug
    image
    image
    image

In 1 case the module path is duplicated twice

Extension version: 2020.6.91350
VS Code version: Code 1.46.1 (cd9ea6488829f560dc949a8b2fb789f3cdc05f5d, 2020-06-17T21:13:08.304Z)
OS version: Linux x64 5.3.0-62-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i3 CPU U 380 @ 1.33GHz (4 x 1330)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: disabled_off_ok
video_decode: unavailable_off
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) 2, 1, 1
Memory (System) 3.65GB (0.43GB free)
Process Argv --no-sandbox --unity-launch
Screen Reader no
VM 0%
DESKTOP_SESSION /usr/share/xsessions/plasma
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP KDE
XDG_SESSION_TYPE x11
@kimadeline
Copy link

Hi @Ogurechik, thank you for reaching out!

I could reproduce your issue locally only when using the Microsoft Python Language Server, and not with Jedi nor Pylance, which is a faster and improved version of MPLS.

I'd suggest giving Pylance a try by downloading the Pylance extension from the Marketplace, and I'll transfer this issue to the MPLS repo in the meantime.

Thank you!

@kimadeline kimadeline transferred this issue from microsoft/vscode-python Jul 6, 2020
@kimadeline kimadeline removed their assignment Jul 6, 2020
@moprules
Copy link
Author

moprules commented Jul 6, 2020

@kimadeline, thank you very much Pylance solved this problem and also solved the problem with pylint

@kimadeline kimadeline changed the title path bug Cannot go to definition if the path contains Cyrillic characters Jul 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants