-
Notifications
You must be signed in to change notification settings - Fork 105
Type hints specific to Pyboard: 'pyb', 'machine' with Pyboard features #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@stefanhoelzl How do you feel about contributing the initial version of the type hints for the |
It's not clear to me... Is anyone working on this? |
@domgiles No, there isn't anyone who is working on it. A pull request with |
I'll see if I can find some time to take a look at it. No promises. I'm more comfortable in Java but I've a reasonable grasp of Python. It looks like more of a editing issue than anything really creative... right? |
@domgiles Yes, it is more about converting the docs for |
First let me start bu apologising for my lack of experience in working with plugins for the JetBrains Environment. I've pulled the code. Can you explain a couple of things. On running ./gradlew clean runIde it launches the intellij IDE (Which I already have the project in). I'm not sure but I was expecting to launch PyCharm with an updated build of the plugin installed. Did I miss something? i.e. Whats the workflow to enable me to make changes and then test them in PyCharm? |
@domgiles Yes, If you're not familiar with IntelliJ, you can just edit files in your Git working directory and then launch PyCharm via |
Sorry for the delay
Ok… All good now..
Started getting the pbyoard doc ported… It’ll be off and on but I can at least see the process now.
Regards
Dom
… On Feb 17, 2018, at 6:13 PM, Andrey Vlasovskikh ***@***.***> wrote:
@domgiles
Yes, ./gradlew clean runIde
launches IntelliJ with the plugin by default, not PyCharm with the plugin. Please check the comments in gradle.properties
. There you can uncomment the line with the path to PyCharm and specify the path to your PyCharm installation. It should be the path to the directory where bin/
, lib/
, plugins/
, and other folders of PyCharm are located. In particular on macOS it's not /path/to/PyCharm.app, but /path/to/PyCharm.app/Contents/. PyCharm should be installed locally, gradlew
won't download PyCharm for you.
If you're not familiar with IntelliJ, you can just edit files in your Git working directory and then launch PyCharm via ./gradlew runIde
. Alternatively, you can open the intellij-micropython project in IntelliJ Community Edition and edit code there. Make sure you've imported the project from existing sources as a Gradle project. You can then use "View | Tool Windows | Gradle" to launch Gradle tasks. IntelliJ will provide you with code highlighting and smart code completion for Kotlin and Python (download the Python plugin for the latter).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
, or mute the thread
.<embedded image>
|
@domgiles any news on this port? |
I started the work.
Annoyingly I was asked to head to do some work in San Francisco… So I’ve been away for 2 weeks. back next week so I can restart then. It’s not complex. Just a lot of it for the Pyboard.
Dom
Regards
Dominic Giles
…On Friday, 13 April 2018 at 12:25, Przemek Galazka wrote:
@domgiles (https://github.com/domgiles) any news on this port?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (#16 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/AGELoZlWQwbwiS_UVQrYhHyVUpRYPBrCks5toPu1gaJpZM4PR1WW).
|
Is there a start on this available? Wouldn’t mind seeing how much work is still needed. |
@hlovatt It's similar to what we have for ESP8266. We have several collections of type hints in directories here:
Usually I write *.pyi files with type hints manually just by looking at the official API docs for the corresponding module and experimenting with it in REPL when I'm not sure about types, arguments, etc. There is a discussion about a tool that can generate stubs for MicroPython modules automatically, see #102 for that. |
@vlasovskikh I just checked the output of the stubber more precisely and there are some confusing stuff around. Some modules seem not to exist, while classes are stubbed as functions. |
Have issued a couple of pull requests for the PyBoard Typesheds. |
Are you still interested in typesheds for PyBoard? I ask because I have a couple of pull requests in for a few weeks now. I have more typesheds at: https://github.com/hlovatt/PyBoardTypeshed Plus there is a description, in README at same project, of how to 'monkey-patch' typesheds into the MicroPython plugin. |
Thanks to @hlovatt we now have a stub for I'm closing this issue as done for now. If there is anything missing, feel free to open new issues or send your PRs with updates to stubs. In a week I'll release a version of intellij-micropython with bundled |
It would be great to have good code analysis for the pyb module specific to Pyboard. We need a Python stub file similar to those ones in the typehints/ directory.
The text was updated successfully, but these errors were encountered: