Pydantic Breaks Again Python 3.14.2
Posted: 13.12.2025 05:05
Previous report solved at
https://synwrite.sourceforge.net/forums ... php?t=3159
New console output on starting up
CudaText 1.230.5.0, linux-x86_64-gtk2, fpc 3.2.3
with plug-ins up-to-date and __pycache__ deleted before start.
System Python is 3.14.2 with python3-pydantic installed.
https://synwrite.sourceforge.net/forums ... php?t=3159
New console output on starting up
CudaText 1.230.5.0, linux-x86_64-gtk2, fpc 3.2.3
with plug-ins up-to-date and __pycache__ deleted before start.
System Python is 3.14.2 with python3-pydantic installed.
Code: Select all
Init: cuda_lsp
Traceback (most recent call last):
File "/opt/cudatext/py/cuda_lsp/__init__.py", line 1, in <module>
from .lsp import Command
File "/opt/cudatext/py/cuda_lsp/lsp.py", line 36, in <module>
from .language import CompletionMan, DiagnosticsMan, Language
File "/opt/cudatext/py/cuda_lsp/language.py", line 60, in <module>
from .sansio_lsp_client import client as lsp
File "/opt/cudatext/py/cuda_lsp/sansio_lsp_client/__init__.py", line 3, in <module>
from .client import *
File "/opt/cudatext/py/cuda_lsp/sansio_lsp_client/client.py", line 8, in <module>
from .events import (
...<35 lines>...
)
File "/opt/cudatext/py/cuda_lsp/sansio_lsp_client/events.py", line 267, in <module>
class Metadata(Event):
message_id: int
result: Optional[Dict[str, Any]] = None
File "/opt/cudatext/py/cuda_lsp/lsp_modules/pydantic/main.py", line 221, in __new__
inferred = ModelField.infer(
name=var_name,
...<3 lines>...
config=config,
)
File "/opt/cudatext/py/cuda_lsp/lsp_modules/pydantic/fields.py", line 504, in infer
return cls(
name=name,
...<7 lines>...
field_info=field_info,
)
File "/opt/cudatext/py/cuda_lsp/lsp_modules/pydantic/fields.py", line 434, in __init__
self.prepare()
~~~~~~~~~~~~^^
File "/opt/cudatext/py/cuda_lsp/lsp_modules/pydantic/fields.py", line 544, in prepare
self._set_default_and_type()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/cudatext/py/cuda_lsp/lsp_modules/pydantic/fields.py", line 576, in _set_default_and_type
raise errors_.ConfigError(f'unable to infer type for attribute "{self.name}"')
pydantic.errors.ConfigError: unable to infer type for attribute "result"
ERROR: Exception in CudaText for cuda_lsp.on_save_pre: ConfigError: unable to infer type for attribute "result"
Init: cuda_lsp
Traceback (most recent call last):
File "/opt/cudatext/py/cuda_lsp/__init__.py", line 1, in <module>
from .lsp import Command
File "/opt/cudatext/py/cuda_lsp/lsp.py", line 36, in <module>
from .language import CompletionMan, DiagnosticsMan, Language
File "/opt/cudatext/py/cuda_lsp/language.py", line 60, in <module>
from .sansio_lsp_client import client as lsp
File "/opt/cudatext/py/cuda_lsp/sansio_lsp_client/__init__.py", line 3, in <module>
from .client import *
File "/opt/cudatext/py/cuda_lsp/sansio_lsp_client/client.py", line 8, in <module>
from .events import (
...<35 lines>...
)
File "/opt/cudatext/py/cuda_lsp/sansio_lsp_client/events.py", line 267, in <module>
class Metadata(Event):
message_id: int
result: Optional[Dict[str, Any]] = None
File "/opt/cudatext/py/cuda_lsp/lsp_modules/pydantic/main.py", line 221, in __new__
inferred = ModelField.infer(
name=var_name,
...<3 lines>...
config=config,
)
File "/opt/cudatext/py/cuda_lsp/lsp_modules/pydantic/fields.py", line 504, in infer
return cls(
name=name,
...<7 lines>...
field_info=field_info,
)
File "/opt/cudatext/py/cuda_lsp/lsp_modules/pydantic/fields.py", line 434, in __init__
self.prepare()
~~~~~~~~~~~~^^
File "/opt/cudatext/py/cuda_lsp/lsp_modules/pydantic/fields.py", line 544, in prepare
self._set_default_and_type()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/cudatext/py/cuda_lsp/lsp_modules/pydantic/fields.py", line 576, in _set_default_and_type
raise errors_.ConfigError(f'unable to infer type for attribute "{self.name}"')
pydantic.errors.ConfigError: unable to infer type for attribute "result"
ERROR: Exception in CudaText for cuda_lsp.on_save: ConfigError: unable to infer type for attribute "result"