eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
20.12k stars 2.5k forks source link

Python VS Code extension #3771

Closed akosyakov closed 5 years ago

akosyakov commented 6 years ago

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
benoitf commented 6 years ago

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

akosyakov commented 6 years ago

@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.

mannau commented 5 years ago

@akosyakov Any updates on this after the merge?

akosyakov commented 5 years ago

@mannau i would try to give it a spin again

akosyakov commented 5 years ago

https://github.com/theia-ide/theia/issues/3815 is needed for it

tsmaeder commented 5 years ago

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.

akosyakov commented 5 years ago

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

tolusha commented 5 years ago

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

tolusha commented 5 years ago

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 commented 5 years ago

https://github.com/theia-ide/theia/pull/4493

tolusha commented 5 years ago

Related PRs merged. VS Code extension works. [1]

[1] https://github.com/theia-ide/theia/issues/3771#issuecomment-469171523

Leletir commented 5 years ago

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

tolusha commented 5 years ago

@Leletir yes, have you tried? https://marketplace.visualstudio.com/items?itemName=ms-python.python

Leletir commented 5 years ago

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 ?

tolusha commented 5 years ago

correct