Skip to content

PR: Some fixes to load project configuration files correctly#13146

Merged
ccordoba12 merged 6 commits into
spyder-ide:4.xfrom
ccordoba12:load-workspace-config
Jul 1, 2020
Merged

PR: Some fixes to load project configuration files correctly#13146
ccordoba12 merged 6 commits into
spyder-ide:4.xfrom
ccordoba12:load-workspace-config

Conversation

@ccordoba12
Copy link
Copy Markdown
Member

@ccordoba12 ccordoba12 commented Jun 30, 2020

With this PR (which contains a lot of fixes on the PyLS side) is now possible to load ~/.config/pycodestyle or /path/to/project/pycodestyle.cfg and have those settings prevail over the ones defined by the user in Spyder.

I also updated the PyLS version to >=0.34.0,<0.35.0 to have the fixes we need for this.

Fixes #13110.

@ccordoba12 ccordoba12 added this to the Sprint June milestone Jun 30, 2020
@ccordoba12 ccordoba12 self-assigned this Jun 30, 2020
@pep8speaks
Copy link
Copy Markdown

pep8speaks commented Jun 30, 2020

Hello @ccordoba12! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 65:80: E501 line too long (88 > 79 characters)

Line 62:80: E501 line too long (82 > 79 characters)
Line 76:80: E501 line too long (92 > 79 characters)

Line 105:80: E501 line too long (88 > 79 characters)

Line 225:80: E501 line too long (83 > 79 characters)

Comment last updated at 2020-07-01 00:36:00 UTC

@ccordoba12
Copy link
Copy Markdown
Member Author

Pinging @mrclary about this one.

…s://github.com/andfoy/python-language-server.git external-deps/python-language-server

subrepo:
  subdir:   "external-deps/python-language-server"
  merged:   "bbf1f4722"
upstream:
  origin:   "https://github.com/andfoy/python-language-server.git"
  branch:   "fix_multiple_workspace_config"
  commit:   "bbf1f4722"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a04d8c2"
…rtup

This way we can remove a spurious call because the project's path (which
needs to be passed to the PyLS) is already saved in our preferences.
This was not allowing us to associate our temporary file (temp.py) to
other workspaces besides the default one.
@ccordoba12 ccordoba12 force-pushed the load-workspace-config branch from 507433e to b28a557 Compare June 30, 2020 17:46
@mrclary
Copy link
Copy Markdown
Contributor

mrclary commented Jun 30, 2020

@ccordoba12 , Thanks for taking care of this.

@ccordoba12
Copy link
Copy Markdown
Member Author

No problem. It was a lot of work, but the functionality was horribly broken.

So, thanks a lot to you too for letting us know that before releasing 4.1.4.

…r/python-language-server.git external-deps/python-language-server

subrepo:
  subdir:   "external-deps/python-language-server"
  merged:   "5fa7ae915"
upstream:
  origin:   "https://github.com/palantir/python-language-server.git"
  branch:   "develop"
  commit:   "5fa7ae915"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a04d8c2"
@ccordoba12
Copy link
Copy Markdown
Member Author

This is finally ready!

@ccordoba12 ccordoba12 merged commit 1dd07b5 into spyder-ide:4.x Jul 1, 2020
@ccordoba12 ccordoba12 deleted the load-workspace-config branch July 1, 2020 02:11
ccordoba12 added a commit that referenced this pull request Jul 1, 2020
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.

3 participants