Skip to content

AttributeError: 'PosixPath' object has no attribute '_flavour' #176

@rchl

Description

@rchl

Crashes when running in Python 3.13 runtime.

Traceback (most recent call last):
  File "/Users/rafal/Library/Application Support/Sublime Text/Packages/LSP/plugin/core/windows.py", line 259, in start_async
    plugin_class.install_or_update()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/rafal/Library/Application Support/Sublime Text/Packages/LSP-julia/plugin.py", line 317, in install_or_update
    ResourcePath.from_file_path(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        os.path.join(cls.packagedir(), "server", file)).copy(os.path.join(cls.basedir(), file))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/rafal/Library/Application Support/Sublime Text/Lib/python313/sublime_lib/resource_path.py", line 233, in from_file_path
    path = next(filter(None, candidates), None)
  File "/Users/rafal/Library/Application Support/Sublime Text/Lib/python313/sublime_lib/resource_path.py", line 232, in <genexpr>
    candidates = (root.file_to_resource_path(file_path) for root in get_roots())
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/Users/rafal/Library/Application Support/Sublime Text/Lib/python313/sublime_lib/resource_path.py", line 79, in file_to_resource_path
    parts = _file_relative_to(file_path, self.file_root)
  File "/Users/rafal/Library/Application Support/Sublime Text/Lib/python313/sublime_lib/resource_path.py", line 35, in _file_relative_to
    cf = path._flavour.casefold_parts  # type: ignore
         ^^^^^^^^^^^^^
AttributeError: 'PosixPath' object has no attribute '_flavour'

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