Похожие чаты

#!/Usr/Bin/Env python from datetime import datetime, timedelta, timezone from zoneinfo import ZoneInfo class

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'
}

4 ответов

27 просмотров

i don't have an answer for you, but on a completely different topic consider using yen instead of pyenv

Martin-Rys Автор вопроса
drunktimelord
i don't have an answer for you, but on a completel...

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

Похожие вопросы

Обсуждают сегодня

Ajeeb aadmi hai, isko padhna nahi aata kya?
Jay Bansal
43
а зачем этот вопрос для удаления из чата?
Mёdkinson Medvezhkin
63
@Patrick_Ultra, lame question but here we go: More excited for q2 or q3 this year?
PsychotronicG
22
а какое самое комфортное?
Igor P
20
Ребята всем привет! Можете посоветовать какую версию ось поставить на макбук А1466? Просто у знакомого была установлена винда и на маке мед порталы не работают корректно и про...
𝕆𝕟𝕝𝕪𝕆𝕟𝕖
8
@MikeHerron What’s the biggest thing being worked on in-house? Defi, partnerships, grantees, developer relations etc? I know it’s probably all, but what’s the one thing the te...
Reecer
13
So, what do you think is the most exciting aspect of GameFi right now?
Dennis Read
11
Есть рассчет для Таллинна? https://x.com/dr_enderlin/status/1784581592003850496
Vladimir Ivanov
23
question to you guys.. we all know that bitcoin isnt good for day to day transactions.. and with this dude Max that set himself on fire in front of the trump building claiming...
Degen Emo_G
7
Добрый день. Хочу сделать отрисовку по команде на панели. Почему-то рисуется только при втором вызове. С чем может быть связано, не подскажете? procedure TForm1.FormDblClick(...
Kirill Filippenok
20
Карта сайта