Похожие чаты

#!/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 ответов

64 просмотра

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

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта