Похожие чаты

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

58 просмотров

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

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

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

30500 за редактор? )
Владимир
47
Ⓐrtto, [4/23/24 7:02 PM] Please explain more fully how it is not working exactly, and what are the steps you are taking, and what error messages come or what happens. Ⓐrtto, ...
Ezza Kezza
2
any reference of this implementation?
BitBuddha
29
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
So much speculation in the last week. So much volatility in price. This is because Hedera has a GC that isn't using the network it's governing. Why aren't people asking why a...
Summit Seeker R
8
Question: How viable is it to use Anvil as the backend infrastructure for managing a TradFi portfolio, while integrating Flexa for instant liquidity and payment solutions? Cou...
Kevin
2
sounds like people have lost their kaspa on tradeogre... does this mean tradeogre not trustworthy?
Ezza Kezza
15
Heard a news that Jared had a meeting with Elon Musk.. is it true ?
Thomas
15
Hi everyone I'm considering writing linker for Windows x86-64 How hard it should be? I want to write it to link rust/cpp programs faster in with parallel ways
Jacob
22
Карта сайта