Skip to content

Conversation

@paulacamargo25
Copy link

@paulacamargo25 paulacamargo25 commented Jan 19, 2022

Add conda run support

Closed #17973

@paulacamargo25 paulacamargo25 marked this pull request as ready for review January 20, 2022 18:10
Copy link
Member

@karthiknadig karthiknadig left a comment

Choose a reason for hiding this comment

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

Minor suggestions. There was a space between --format= and the format value.

protected async runLinter(document: TextDocument, cancellation: CancellationToken): Promise<ILintMessage[]> {
const messages = await this.run(
['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath],
['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath],
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath],
['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath],

protected async runLinter(document: TextDocument, cancellation: CancellationToken): Promise<ILintMessage[]> {
const messages = await this.run(
['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath],
['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath],
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath],
['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath],

test('Flake8', async () => {
const linter = new Flake8(serviceContainer);
const expectedArgs = ['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath];
const expectedArgs = ['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const expectedArgs = ['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath];
const expectedArgs = ['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath];

test('Pycodestyle', async () => {
const linter = new Pycodestyle(serviceContainer);
const expectedArgs = ['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath];
const expectedArgs = ['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const expectedArgs = ['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath];
const expectedArgs = ['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath];

@karthiknadig
Copy link
Member

You can merge this without the space fix. We will discuss this and address it later.

@paulacamargo25 paulacamargo25 changed the title Add conda run without bypass Add conda run without output (no bypass) Jan 21, 2022
@paulacamargo25 paulacamargo25 merged commit c63d38d into microsoft:main Jan 21, 2022
wesm pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
* Add conda run command

* Fix code run

* Fix linting

* Fix tests

* Add news

* Fix tests in linter

* Fix strings

* Fix linters

* Fix conda run unit test

* Fix funtional tests

* Fix single workspace tests

* update minimum conda versionvalue

* Change sorting timeput

* Add timeout time in sorting test

* Fix test wothout config

* Add more time to timeout in sorting tests

* Add conda run command

* Fix code run

* Fix linting

* Fix tests

* Add news

* Fix tests in linter

* Fix strings

* Fix linters

* Fix conda run unit test

* Fix funtional tests

* Fix single workspace tests

* update minimum conda versionvalue

* Change sorting timeput

* Add timeout time in sorting test

* Add more time to timeout in sorting tests

* Update news/1 Enhancements/7696.md

Co-authored-by: Kartik Raj <karraj@microsoft.com>

* Rix pylint test

* Fix lint test

* Remove unnecessary interpreter check

* Fix timeout test errors

* Fix unit test pip installer

* Fix IModuleInstaller test

* Remove bypass Conda

* Remove bypass

* Add timeout time

* Add conda run command

* Fix code run

* Fix linting

* Fix tests

* Add news

* Fix tests in linter

* Fix strings

* Fix linters

* Fix conda run unit test

* Fix funtional tests

* Fix single workspace tests

* update minimum conda versionvalue

* Change sorting timeput

* Add timeout time in sorting test

* Add more time to timeout in sorting tests

* Add conda run command

* Fix code run

* Fix test wothout config

* Add more time to timeout in sorting tests

* Update news/1 Enhancements/7696.md

Co-authored-by: Kartik Raj <karraj@microsoft.com>

* Rix pylint test

* Fix lint test

* Remove unnecessary interpreter check

* Fix timeout test errors

* Fix unit test pip installer

* Fix IModuleInstaller test

* Remove bypass Conda

* Remove bypass

* Add timeout time

* Fix compilation error

* Fix compilation error

* Fin pylint linter

* Fix installer test

Co-authored-by: Kartik Raj <karraj@microsoft.com>
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

Successfully merging this pull request may close these issues.

Support Conda run

2 participants