Task:
def __init__(self, id: str, title: str, body: str, serviceType: str, serviceData: dict | None = None, URL: str | None = None, dueDate: datetime | None = None, timeZone: ZoneInfo | None = None):
self.id = id
self.title = title
self.body = body
self.serviceType = serviceType
self.serviceData = {} if serviceData is None else serviceData
self.URL = URL
self.dueDate = dueDate
self.timeZone = timeZone
test = Task(id=1234, dueDate='baf')
print(test)
Trying to get Jedi working in code (FOSS VSC) in Arch Linux, but failing.
This only gets Ruff highlights, code completely fails because it's not even defining required parameters, much less in the correct type hints.
Would someone know what to check?
Extension output seems to be launching Jedi fine
2024-04-10 10:15:17.840 [info] > pyenv which python
2024-04-10 10:15:17.840 [info] cwd: ~/Nextcloud/HugeFiles/Projects/configs
2024-04-10 10:15:18.579 [info] Starting Jedi language server for configs.
2024-04-10 10:15:22.797 [info] Discover tests for workspace name: Nyx - uri: /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/main.py
debug logs from VSC are probably the answer.
2024-04-10 13:51:10.145 [debug] [Error: Command failed: pyenv which python
/bin/sh: line 1: pyenv: command not found
at ChildProcess.exithandler (node:child_process:422:12)
at ChildProcess.emit (node:events:529:35)
at maybeClose (node:internal/child_process:1098:16)
at Socket.<anonymous> (node:internal/child_process:450:11)
at Socket.emit (node:events:517:28)
at Pipe.<anonymous> (node:net:350:12)] {
code: 127,
killed: false,
signal: null,
cmd: 'pyenv which python'
}
2024-04-10 13:51:10.171 [debug] Failed to get jedi-language-server version: [Error: ENOENT: no such file or directory, open '/home/c0rn3j/.vscode/extensions/ms-python.python-2024.4.0/python_files/jedilsp_requirements/requirements.txt'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/c0rn3j/.vscode/extensions/ms-python.python-2024.4.0/python_files/jedilsp_requirements/requirements.txt'
}
i don't have an answer for you, but on a completely different topic consider using yen instead of pyenv
I don't need to use any in the first place tbh, it's just defaults
oh. nice. why specifically?
pyenv requires a c toolchain, compiles python from scratch, and gets some configurations wrong such that it can behave differently from the one you download from python.org
Обсуждают сегодня