sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Incompatible SourcelessFileLoader initialization

Open deathaxe opened this issue 1 month ago • 0 comments

Description of the bug

As both loaders are instantiated with same arguments, they should probably define same __init__() arguments.

 python313/sublime_plugin.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python313/sublime_plugin.py b/python313/sublime_plugin.py
index 5305621..82a6496 100644
--- a/python313/sublime_plugin.py
+++ b/python313/sublime_plugin.py
@@ -2404,11 +2404,11 @@ class PackageSourceFileLoader(importlib.machinery.SourceFileLoader):
 class PackageSourcelessFileLoader(importlib.machinery.SourcelessFileLoader):
     """ :meta private: """
 
-    def __init__(self, package, fullname, path, override_path, data):
+    def __init__(self, package, fullname, path, resource_path):
         super().__init__(fullname, path)
 
         self.package = package
-        self.override_path = override_path
+        self.resource_path = resource_path
 
     # This has all the same logic as PackageSourceFileLoader, but with a
     # different parent

Steps to reproduce

Expected behavior

Actual behavior

Sublime Text build number

4202

Operating system & version

all

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information


deathaxe avatar Dec 04 '25 17:12 deathaxe