Skip to content
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

Version v0.1 #1

Closed
olegklimov opened this issue Nov 30, 2023 · 21 comments
Closed

Version v0.1 #1

olegklimov opened this issue Nov 30, 2023 · 21 comments

Comments

@olegklimov
Copy link
Contributor

Following https://github.com/smallcloudai/refact-vs-classic/ , we need a first version of a plugin for Sublime Text that starts refact-lsp server, has completion, status bar, settings, and that's about it.

Completion should behave generally like in VS Code, more details about multiline and single line completion are here in a VS Classic issue and here is some more.

Clarification: this has nothing to do with completions that go inside a popup. Here we are only interested in inline completions (multiline or single line), also known as "grey text" or "ghost text".

Refact-LSP is an executable file that gets built here, download one for your platform, run it with --help to see what kind of options it accepts.

The relevant LSP part is textDocument/didOpen, textDocument/didChange, textDocument/didClose, workspace/didDeleteFiles -- to inform the LSP server about the source files open or changed. This is used for context, for a good completion for file1 probably it needs a context from file2. That's why refact-lsp needs those calls to happen.

The completion itself is a LSP call refact/getCompletions, but there's an effort to switch to a more standard 3.18.

Status bar like in this VS issue needs an idle state, rotating icon when it asks for a new completion, and an error state that shows text error in a tooltip.

Settings can be similar to VS Code settings, those are mainly go directly to refact-lsp command line. One that doesn't is "pause", it should be accessible via a context menu in the status bar or a hotkey -- an ability to pause completions if they get annoying in some cases.

This bounty supersedes the previous attempt over here that got stalled.

@olegklimov
Copy link
Contributor Author

/bounty 4000

Copy link

algora-pbc bot commented Nov 30, 2023

💎 $4,000 bounty created by smallcloudai
🙋 If you'd like to work on this issue, comment below to get assigned
👉 To claim this bounty, submit a pull request that includes the text /claim #1 somewhere in its body
📝 Before proceeding, please make sure you can receive payouts in your country
💵 Payment arrives in your account 2-5 days after the bounty is rewarded
💯 You keep 100% of the bounty award
🙏 Thank you for contributing to smallcloudai/refact-sublime!

👉 Add a bountyShare on socials

@b4s36t4
Copy link

b4s36t4 commented Nov 30, 2023

@olegklimov Would love to work on this.

@b4s36t4
Copy link

b4s36t4 commented Nov 30, 2023

Please assign to me.

@digital-phoenix
Copy link
Contributor

I'd love to work on this @olegklimov could you assign it to me?

@ayewo
Copy link

ayewo commented Nov 30, 2023

@olegklimov

@Ahmadkhan02
Copy link

@olegklimov I would also love to work on this one

@yuvrajjsingh0
Copy link

/attempt 1

Copy link

algora-pbc bot commented Dec 2, 2023

@yuvrajjsingh0: The Refact.ai team prefers to assign a single contributor to the issue rather than let anyone attempt it right away. We recommend waiting for a confirmation from a member before getting started.

@Ahmadkhan02
Copy link

@olegklimov can you elaborate some more upon how you need the status bar to be?

@digital-phoenix
Copy link
Contributor

2023-12-02 14 53 05

Progress update: Single line completions are now functional

@olegklimov
Copy link
Contributor Author

Hi everyone. I'll assign this to James because he's good, we worked with him before.

@ayewo
Copy link

ayewo commented Dec 5, 2023

@olegklimov No worries.

(The question on my mind and I'm sure on others' is: how can we show you if we are any good if we are never given chance when new tasks are available? Perhaps you have a few low-ticket tasks that you are planning to throw open to everyone? You don't have to answer but it would nice if you did.)

@thekumbhaj
Copy link

/attempt 1

Copy link

algora-pbc bot commented Jan 2, 2024

@PlanetKumbhaj: Another person is already attempting this issue. Please don't start working on this issue unless you were explicitly asked to do so.

@ijif
Copy link

ijif commented Jan 11, 2024

any updates on this?

Copy link

algora-pbc bot commented Jan 11, 2024

💡 @digital-phoenix submitted a pull request that claims the bounty. You can visit your bounty board to reward.

@olegklimov
Copy link
Contributor Author

any updates on this?

@digital-phoenix has a first version, but no one checked it yet, because we got stuck with the VS Classic plugin. We'll try to unstuck it as soon as possible.

@jigarh12
Copy link

Hey, I would like to work on this project.
My name is Jigar Hundia, I am a Automation and Robotics Student. I have expertise in Python, HTML5, CSS and C/C++. I also have a Python Developer Micro degree Certificate. So, I am enthusiast to work on this project.

olegklimov added a commit that referenced this issue Feb 6, 2024
Copy link

algora-pbc bot commented Feb 8, 2024

🎉🎈 @digital-phoenix has been awarded $4,000! 🎈🎊

@olegklimov
Copy link
Contributor Author

To everybody who's tracking this implementation -- it works, there are a couple of bugs (like you need to restart IDE for a change in settings to apply) but it works, we'll fix it.

We'll post it into the marketplace so it's easier to install. But you can install from source already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants