Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit Code 1 when trying to run Scalene #6

Open
Cyclomactic opened this issue Dec 29, 2024 · 0 comments
Open

Exit Code 1 when trying to run Scalene #6

Cyclomactic opened this issue Dec 29, 2024 · 0 comments

Comments

@Cyclomactic
Copy link

While trying to run Scalene extension in VSCode, I received Exit Code 1. I modified extension code to see more details (https://github.com/plasma-umass/scalene-vscode-extension/blob/main/extension.js#L94). Then figured out that it has problems importing python modules from different directories.
Hard coded cwd in js line 83:

const proc = child_process.spawn(executablePath, args, {"cwd":"{path to project folder}"});

For reference, my folder structure is

project dir
|- sub_folder
|  \- file_to_profile.py
\- util.py

VSCode's "Run and Debug" works fine with this structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant