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

Run and interactive config not working #2

Open
StefanJum opened this issue Jan 15, 2022 · 2 comments
Open

Run and interactive config not working #2

StefanJum opened this issue Jan 15, 2022 · 2 comments

Comments

@StefanJum
Copy link
Member

Describe the bug
After installing the extension, using Kraft: Run project and Kraft: Configure project -> interactive does not work.

Steps to reproduce
Initiate the helloworld app and use one of the above commands from the command palette.

Expected behavior
The helloworld app should run or the configuration menu should appear.

Relevant log output

The terminal process "~/.vscode/extensions/unkiraft.kraft-1.0.0/src/scripts/run.sh" failed to launch (exit code: 1).

Render log output:

[renderer1] [trace] terminalInstance#ctor (instanceId: 1) {"name":"kraft run","executable":"/home/stefan/.vscode/extensions/unkiraft.kraft-1.0.0/src/scripts/run.sh","cwd":"/media/stefan/projects/unikraft/test-ide-vsc/kraft-init/init-g","ignoreConfigurationCwd":true,"hideFromUser":false,"extHostTerminalId":"0879577f-f885-4c63-a9c1-8282bb1d9e5a","isExtensionOwnedTerminal":true}
[renderer1] [debug] Terminal process ready (shellProcessId: 436395)
[renderer1] [debug] Terminal process exit (instanceId: 1) with code undefined
[renderer1] [debug] Terminal process exit (instanceId: 1) state 4

Changing the permissions to src/scripts/run.sh and src/scripts/configure.sh seems to solve the issue with Kraft: Run project.
When trying to interactively configure the app, the kraft menuconfig runs without errors but the terminal closes before being able to modify the configuration.

@StefanJum
Copy link
Member Author

Apparently the problem with the Kraft: Configure project -> interactive command was that the vscode terminal was not big enough for the menuconfig to run.
The error was shown and immediately disappeared so it was very hard to see.

Your display is too small to run Menuconfig!
It must be at least 19 lines by 80 columns.

Simply resizing the vscode terminal window solved the problem for me.

@StefanJum
Copy link
Member Author

We should add a note in the README.md file to specify the minimum required dimensions for the menuconfig to work.

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