-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add DjHTML package #8307
Add DjHTML package #8307
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated testing result: ERROR
Repo link: DjHTML
Results help
Packages added:
- DjHTML
Processing package "DjHTML"
- ERROR: The binding ['ctrl+shift+i'] unconditionally overrides a default binding
- File: Default (Linux).sublime-keymap
- ERROR: The binding ['ctrl+shift+i'] unconditionally overrides a default binding
- File: Default (Windows).sublime-keymap
🤔 maybe introduce DjHTML as a dependency so that you can use that way (and without a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated testing result: ERROR
Repo link: DjHTML
Results help
Packages added:
- DjHTML
Processing package "DjHTML"
- ERROR: The binding ['ctrl+shift+i'] unconditionally overrides a default binding
- File: Default (Linux).sublime-keymap
- ERROR: The binding ['ctrl+shift+i'] unconditionally overrides a default binding
- File: Default (Windows).sublime-keymap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated testing result: ERROR
Repo link: DjHTML
Results help
Packages added:
- DjHTML
Processing package "DjHTML"
- ERROR: The binding ['ctrl+shift+i'] unconditionally overrides a default binding
- File: Default (Windows).sublime-keymap
- ERROR: The binding ['ctrl+shift+i'] unconditionally overrides a default binding
- File: Default (Linux).sublime-keymap
Hi @braver, thanks for the suggestion. I am quite new to ST plugin development, and I had difficultly finding up-to-date information on how to include third-party dependencies in ST4. I would prefer not to vendor the library directly and instead include it as a dependency. Could you point me in the right direction for how I might do this? |
There is this: https://packagecontrol.io/docs/dependencies |
Thanks. I came across this documentation initially, but it does not mention ST4 and states:
I was able to dig up this issue which refers to https://github.com/wbond/package_control/projects/1, and there is also an open issue in LSP that mentions some changes are required in Package Control to support dependencies with 3.8. I'm hesitant to pursue the dependencies solution at this point because the official support for ST4 and Python 3.8 are unclear. |
The current state of affairs as I know it is that you cannot combine py3.8 and dependencies, so you might need to stick with 3.3. There is no problem in ST4 specifically, mostly that package control is unable to handle it correctly. So, maybe the trade-off for you is to stick with / revert to 3.3 for a while until this is resolved? Not sure if that would be a problem for your package. |
Is there a significant issue with using the vendored approach as the trade-off until the issue is resolved? I did not discover any recommendations against including a package this way when I was researching how to create a plugin, and this step of the submission docs provides specific guidance on how to include shared libraries, which is why I included the My preference is to use the current implementation until dependencies are supported for 3.8 instead of changing it twice to use the 3.3 behavior first. |
No, it's just inelegant. Alright, let's try to add it as is. You can always improve and clean that up later. As for your package, I haven't tested it, I'm going to assume it works as intended. There is some stuff to fine-tune though:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated testing result: ERROR
Repo link: DjHTML
Results help
Packages added:
- DjHTML
Processing package "DjHTML"
- ERROR: The binding ['ctrl+shift+i'] unconditionally overrides a default binding
- File: Default (Linux).sublime-keymap
- ERROR: The binding ['ctrl+shift+i'] unconditionally overrides a default binding
- File: Default (Windows).sublime-keymap
Please respond to the feedback to continue this PR. |
@braver I think I will just close this for now and revisit later to use the preferred dependency solution. Thanks for all the feedback you provided. I will make these changes and re-open later once the dependencies can be handled properly. |
Auto-indentation plugin for Django and Jinja template syntax.