Theia: Python VS Code extension

Created on 6 Dec 2018  Â·  15Comments  Â·  Source: eclipse-theia/theia

I've tried to run VS Code extension for Python. It was installed sucessfully, but it does not seem to work.

Contributions are not localized:
screen shot 2018-12-06 at 16 55 26

No language highlighting and support:
screen shot 2018-12-06 at 16 55 32

Errors from the backend:
screen shot 2018-12-06 at 16 55 41

plug-in system python vscode

Most helpful comment

Now it is possible to use VS Code python extension [1]

screenshot from 2019-03-04 10-59-59
screenshot from 2019-03-04 10-59-26

[1] https://marketplace.visualstudio.com/items?itemName=ms-python.python

All 15 comments

yes some LSP extensions are also providing debug stuff but debug stuff is not yet there (not even mocked)
but @tolusha is working on it

@benoitf ok

Also turned out that this extension does not include python language definition but relies on build-in VS Code extension (which is not on marketplace): https://github.com/Microsoft/vscode/tree/master/extensions/python

I will try to run them together when VS Code debug APIs are implemented.

@akosyakov Any updates on this after the merge?

@mannau i would try to give it a spin again

It seems there already is a python grammar registered in the current python extension for theia. We could just migrate that to the "textmate-grammars" package.

@tsmaeder sounds good for now, eventually we don't want to support our textmate-grammars but consume them from source (VS Code)

Now it is possible to use VS Code python extension [1]

screenshot from 2019-03-04 10-59-59
screenshot from 2019-03-04 10-59-26

[1] https://marketplace.visualstudio.com/items?itemName=ms-python.python

Still have some errors in console

root ERROR Warning: Encountered two children with the same key, `$(refresh~spin) Refreshing Python Interpretersnull1null`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
    in div

@tolusha How did you manage to install the python debugger ?

I'm using it on VS Code, so you've build Theia from source and added the plugins folder with this extension on it, isn't it ?

correct

Was this page helpful?
0 / 5 - 0 ratings