Skip to content

WIP - Add Support for Xonsh shell - #3488

Closed
Owen Campbell (meatballs) wants to merge 6 commits into
microsoft:masterfrom
meatballs:xonsh
Closed

Owen Campbell (meatballs) wants to merge 6 commits into
microsoft:masterfrom
meatballs:xonsh

Conversation

@meatballs

@meatballs Owen Campbell (meatballs) commented Nov 28, 2018 •

Copy link
Copy Markdown

For #3487

I've very quickly hacked some changes to add support for the xonsh shell. I realise there is more to do here, but I'm not at all familiar with TypeScript so I'll need a little help from here on.

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Has a news entry file (remember to thank yourself!)
  • Unit tests & system/integration tests are added/updated
  • Test plan is updated as appropriate
  • package-lock.json has been regenerated by running npm install (if dependencies have changed)

@msftclas

Microsoft Contribution License Agreements (msftclas) commented Nov 28, 2018 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@DonJayamanne

Copy link
Copy Markdown

Owen Campbell (@meatballs)
Thanks for submitting the PR.
Please note, adding support for xonsh shell is not something we had considered, hence we have added the label needs decision (to the original #3487).
Will get back to you on this PR soon.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately the tests are failing.
And we haven't modified the code to appropriately detect the shell.
See below https://github.com/Microsoft/vscode-python/blob/7de3383ee4940c3f7101893e38b7620306637336/src/client/common/terminal/helper.ts#L50

@meatballs Owen Campbell (meatballs) changed the title Add Support for Xonsh shell WIP - Add Support for Xonsh shell Dec 19, 2018
@meatballs

Copy link
Copy Markdown
Author

I've updated the unit test suite and Travis is now happy but I don't understand the Azure pipeline failure.

@scopatz

Copy link
Copy Markdown

Don Jayamanne (@DonJayamanne) - If there is anything you need from us on the xonsh side, please let us know

return [`source ${scriptFile.fileToCommandArgument()}`];

if (targetShell === TerminalShellType.xonsh) {
return [`conda ${scriptFile.fileToCommandArgument()}`];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work.
What if the environment is NOT conda?
E.g. assume you have a virtual environment or pipenv environment.

@DonJayamanne

Copy link
Copy Markdown

Unfortunately it has been 4 weeks since the last commit on this PR, and as CI isn't passing, I'm closing this PR due to inactivity.
If you or anyone else does manage to resolve the issues, please feel free to open another PR.

@lock lock Bot locked as resolved and limited conversation to collaborators Jul 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants