Skip to content

Opening file from explorer causes trouble when used behind a reverse proxy (2.1698 release) #1294

Closed
@lukasmasuch

Description

@lukasmasuch
  • code-server version: 2.1698-vsc1.41.1
  • OS Version: Ubuntu 18.04
  • Extension: vscode-python(2020.1.58038)

Description

If the code server is opened without providing a folder via URL parameter, everything is working fine. However, in case the folder parameter is used and the file is opened via the Explorer, the python extension doesn't seem to be able to fully interact with the (python-) file (underlines are missing, formatter is not working...):

Screenshot at Jan 24 13-50-59

However, if the file is opened via File -> Open, a new tab is created and everything is working fine:

Screenshot at Jan 24 13-51-22

Based on the tab labels, it seems like that opening files via File -> Open is using absolute paths while the explorer uses a relative path (which is causing problems with the python extension). This problem does not happen with the older code-server versions (e.g. 2.1692-vsc1.39.2). I also looked into the logs, but wasn't able to find anything suspicious.

To summarize:

  • Older code-server version -> working
  • Opening code-server without folder parameter -> working
  • Opening code-server with folder parameter:
    • Open python file with File -> Open -> working
    • Open python file from explorer -> not working

Metadata

Metadata

Assignees

Labels

waiting-for-infoWaiting for more information from submitter

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions