Skip to content

Remove 'jediEnabled' in favor of languageServer#11834

Merged
MikhailArkhipov merged 40 commits into
microsoft:masterfrom
MikhailArkhipov:settings
May 27, 2020
Merged

Remove 'jediEnabled' in favor of languageServer#11834
MikhailArkhipov merged 40 commits into
microsoft:masterfrom
MikhailArkhipov:settings

Conversation

@MikhailArkhipov
Copy link
Copy Markdown

@MikhailArkhipov MikhailArkhipov commented May 15, 2020

For #7010

Rely on languageServer instead.

  • 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!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • 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).

- [ ] The wiki is updated with any design decisions/details.

@codecov-io
Copy link
Copy Markdown

codecov-io commented May 15, 2020

Codecov Report

Merging #11834 into master will decrease coverage by 60.67%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #11834       +/-   ##
===========================================
- Coverage   60.67%    0.00%   -60.68%     
===========================================
  Files         628       12      -616     
  Lines       33908       37    -33871     
  Branches     4775        4     -4771     
===========================================
- Hits        20573        0    -20573     
+ Misses      12344       37    -12307     
+ Partials      991        0      -991     
Impacted Files Coverage Δ
src/client/debugger/constants.ts 0.00% <0.00%> (-100.00%) ⬇️
src/client/common/process/constants.ts 0.00% <0.00%> (-100.00%) ⬇️
src/client/common/platform/constants.ts 0.00% <0.00%> (-100.00%) ⬇️
src/client/interpreter/autoSelection/constants.ts 0.00% <0.00%> (-100.00%) ⬇️
src/client/interpreter/locators/services/conda.ts 0.00% <0.00%> (-100.00%) ⬇️
src/client/constants.ts 0.00% <0.00%> (-83.34%) ⬇️
...t/datascience/jupyter/jupyterDataRateLimitError.ts 0.00% <0.00%> (-50.00%) ⬇️
.../client/datascience/jupyter/commandLineSelector.ts
src/client/common/serviceRegistry.ts
src/client/interpreter/helpers.ts
... and 600 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 66600e3...8120a4d. Read the comment docs.

@MikhailArkhipov MikhailArkhipov added the no-changelog No news entry required label May 19, 2020
@MikhailArkhipov MikhailArkhipov removed the no-changelog No news entry required label May 19, 2020
@MikhailArkhipov MikhailArkhipov changed the title [WIP]: remove 'jediEnabled' Remove 'jediEnabled' in favor of languageServer May 20, 2020
Comment thread src/client/testing/common/updateTestSettings.ts Outdated
Comment thread src/client/testing/common/updateTestSettings.ts
Copy link
Copy Markdown

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

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

Thanks for working on this. Mostly LGTM.

Comment thread src/test/.vscode/settings.json Outdated
Comment thread src/test/linters/linterinfo.unit.test.ts
Comment thread src/client/activation/node/languageServerFolderService.ts Outdated
Comment thread src/client/activation/common/languageServerFolderService.ts Outdated
Comment thread src/client/testing/common/updateTestSettings.ts
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

Copy link
Copy Markdown

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

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

LGTM

I left one comment, but I'll leave it to you to decide. 🙂

minVersion = appEnv.packageJson[DotNetLanguageServerMinVersionKey] as string;
}
// tslint:disable-next-line: no-empty
} catch {}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Under what circumstances do you expect this to fail? It would probably make sense to log the error (e.g. with traceVerbose()).

@MikhailArkhipov MikhailArkhipov merged commit da5ed9d into microsoft:master May 27, 2020
@MikhailArkhipov MikhailArkhipov deleted the settings branch May 27, 2020 17:08
Comment thread .github/ISSUE_TEMPLATE/2_bug_report.md
@fireattack
Copy link
Copy Markdown

fireattack commented Jun 18, 2020

As mentioned in #7010, previous versions of the "python.jediEnabled" setting should be migrated automatically.

But this doesn't seem to happen, jediEnabled = False from previous version wasn't automatically migrated to languageServer = Microsoft here. This may confuse some users.

@jakebailey
Copy link
Copy Markdown
Member

jakebailey commented Jun 18, 2020

This PR intended to do this, setting languageServer to Microsoft if jediEnabled was false before. Does it not work?

@fireattack
Copy link
Copy Markdown

fireattack commented Jun 18, 2020

Nope, it didn't happen here. I used to have jediEnabled as false (no idea what languageServer was set to), after the update languageServer is still Jedi). That's exactly why I came here because I was confused why suddenly pylint is enabled again.

@jakebailey
Copy link
Copy Markdown
Member

That's not good; I'd appreciate it if you could make a new issue for it so it can be tracked.

@fireattack
Copy link
Copy Markdown

I would like to get reliably reproducible steps first, but it seems Python extension doesn't offer old versions?

"Install another versions.." returns 404:

image

@fireattack
Copy link
Copy Markdown

Never mind, I manually installed an older version and reproduced it. Created a ticket at #12429.

felixedel added a commit to felixedel/dotfiles that referenced this pull request Jul 16, 2020
The python.jediEnabled setting got replaced by python.languageServer
[1]. Thus, update to the new format.

[1] microsoft/vscode-python#11834
felixedel added a commit to felixedel/dotfiles that referenced this pull request Jul 16, 2020
The python.jediEnabled setting got replaced by python.languageServer
[1]. Thus, update to the new format.

[1] microsoft/vscode-python#11834
felixedel added a commit to felixedel/dotfiles that referenced this pull request Jun 18, 2022
The python.jediEnabled setting got replaced by python.languageServer
[1]. Thus, update to the new format.

[1] microsoft/vscode-python#11834
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.

5 participants