Error when starting Atom from terminal
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, python
- Lĩnh vực
- devtools
Hướng nghiên cứu
Tái hiện lỗi bằng cách khởi chạy Atom với atom ., sau đó kiểm tra các mục stack của ide-python xung quanh python/lib/utils.js và python/lib/main.js, đặc biệt là detectPipEnv. So sánh môi trường khởi chạy từ terminal và desktop; được xem là hoàn tất khi việc khởi động từ terminal không còn tạo ra spawn ENOTDIR và các package của môi trường ảo vẫn khả dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hey,
I have the follow error when opening atom from the terminal with atom .
Once atom is opened, every time a open a python module I get the error.
internal/child_process.js:358 Uncaught (in promise) Error: spawn ENOTDIR
at ChildProcess.spawn (internal/child_process.js:358)
at Object.spawn (child_process.js:543)
at resolve (/home/somnium/.atom/…thon/lib/utils.js:9)
at new Promise (<anonymous>)
at detectPipEnv (/home/somnium/.atom/…thon/lib/utils.js:8)
at PythonLanguageClient.startServerProcess (/home/somnium/.atom/…thon/lib/main.js:50)
at PythonLanguageClient.<anonymous> (auto-languageclient.ts:298)
at Generator.next (<anonymous>)
at /home/somnium/.atom/…languageclient.js:7
at new Promise (<anonymous>)
at __awaiter (/home/somnium/.atom/…languageclient.js:3)
at process.reportBusyWhile (auto-languageclient.ts:298)
at AtomIdeProvider.<anonymous> (atom-ide-provider.js? [sm]:7)
at Generator.next (<anonymous>)
at step (/home/somnium/.atom/…m-ide-provider.js:9)
at /home/somnium/.atom/…m-ide-provider.js:9
at new Promise (<anonymous>)
at AtomIdeProvider.<anonymous> (/home/somnium/.atom/…m-ide-provider.js:9)
at Object.reportBusyWhile (index.js? [sm]:33)
at PythonLanguageClient.<anonymous> (auto-languageclient.ts:798)
at Generator.next (<anonymous>)
at /home/somnium/.atom/…languageclient.js:7
at new Promise (<anonymous>)
at __awaiter (/home/somnium/.atom/…languageclient.js:3)
at PythonLanguageClient.AutoLanguageClient.reportBusyWhile (auto-languageclient.ts:796)
at PythonLanguageClient.<anonymous> (auto-languageclient.ts:296)
at Generator.next (<anonymous>)
at /home/somnium/.atom/…languageclient.js:7
at new Promise (<anonymous>)
at __awaiter (/home/somnium/.atom/…languageclient.js:3)
at PythonLanguageClient.startServer (auto-languageclient.ts:295)
at ServerManager._serverManager.server_manager_js_1.ServerManager [as _startServer] (auto-languageclient.ts:253)
at ServerManager.<anonymous> (server-manager.ts:155)
at Generator.next (<anonymous>)
at /home/somnium/.atom/…server-manager.js:7
at new Promise (<anonymous>)
internal/child_process.js:358 Uncaught (in promise) Error: spawn ENOTDIR
at ChildProcess.spawn (internal/child_process.js:358)
at Object.spawn (child_process.js:543)
at resolve (/home/somnium/.atom/…thon/lib/utils.js:9)
at new Promise (<anonymous>)
at detectPipEnv (/home/somnium/.atom/…thon/lib/utils.js:8)
at PythonLanguageClient.startServerProcess (/home/somnium/.atom/…thon/lib/main.js:50)
at PythonLanguageClient.<anonymous> (auto-languageclient.ts:298)
at Generator.next (<anonymous>)
at /home/somnium/.atom/…languageclient.js:7
at new Promise (<anonymous>)
at __awaiter (/home/somnium/.atom/…languageclient.js:3)
at process.reportBusyWhile (auto-languageclient.ts:298)
at AtomIdeProvider.<anonymous> (atom-ide-provider.js? [sm]:7)
at Generator.next (<anonymous>)
at step (/home/somnium/.atom/…m-ide-provider.js:9)
at /home/somnium/.atom/…m-ide-provider.js:9
at new Promise (<anonymous>)
at AtomIdeProvider.<anonymous> (/home/somnium/.atom/…m-ide-provider.js:9)
at Object.reportBusyWhile (index.js? [sm]:33)
at PythonLanguageClient.<anonymous> (auto-languageclient.ts:798)
at Generator.next (<anonymous>)
at /home/somnium/.atom/…languageclient.js:7
at new Promise (<anonymous>)
at __awaiter (/home/somnium/.atom/…languageclient.js:3)
at PythonLanguageClient.AutoLanguageClient.reportBusyWhile (auto-languageclient.ts:796)
at PythonLanguageClient.<anonymous> (auto-languageclient.ts:296)
at Generator.next (<anonymous>)
at /home/somnium/.atom/…languageclient.js:7
at new Promise (<anonymous>)
at __awaiter (/home/somnium/.atom/…languageclient.js:3)
at PythonLanguageClient.startServer (auto-languageclient.ts:295)
at ServerManager._serverManager.server_manager_js_1.ServerManager [as _startServer] (auto-languageclient.ts:253)
at ServerManager.<anonymous> (server-manager.ts:155)
at Generator.next (<anonymous>)
at /home/somnium/.atom/…server-manager.js:7
at new Promise (<anonymous>)
Everything works if I'm starting Atom from desktop icon, however I need to be able to running it from the terminal.
When running sudo atom . it works, but I don't get my virtual env installed packages available which makes it impossible to use some other atom plugins features.
My setup:
OS: Ubuntu 18
Atom: 1.42
ide-python: 1.5.0
Any help is welcome.
Thanks
- Ngôn ngữ chính
- JavaScript
- Star
- 238
- Fork
- 41
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của atom-community/ide-python
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
atom-community/ide-python#575 · 5 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
atom-community/ide-python#570 · 2 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
atom-community/ide-python#568 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
atom-community/ide-python#567 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
atom-community/ide-python#566 ·
Tất cả issue của atom-community/ide-python
Issue tương tự
-
curriculum documentation quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
githubnext/gh-aw-workshop#3897 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
agent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: RSV Honduras FeedĐang mởcheck:failed feeds:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
iptv-org/database#36179 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] : Main navigation "Upcoming Events" link navigates to /events/ without query parameterĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày