smallcloudai / refact-vs-classic

Refact for Visual Studio is a free, open-source AI code assistant
BSD 3-Clause "New" or "Revised" License
12 stars 13 forks source link

Version v0.3 #34

Open olegklimov opened 7 months ago

olegklimov commented 7 months ago

8

33

32

31

30

29

28

24

20

olegklimov commented 6 months ago

/bounty 1000

algora-pbc[bot] commented 6 months ago

💎 $1,000 bounty • Refact.ai

Steps to solve:

  1. Start working: Comment /attempt #34 with your implementation plan
  2. Submit work: Create a pull request including /claim #34 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to smallcloudai/refact-vs-classic!

Add a bounty • Share on socials

oliverqx commented 6 months ago

/attempt #34

Algora profile Completed bounties Tech Active attempts Options
@oliverqx 4 bounties from 3 projects
TypeScript, Python
Cancel attempt
algora-pbc[bot] commented 6 months ago

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

oliverqx commented 6 months ago

@olegklimov can I get assigned?

digital-phoenix commented 6 months ago

/attempt #34

Algora profile Completed bounties Tech Active attempts Options
@digital-phoenix    4 smallcloudai bounties
+ 2 bounties from 2 projects
Rust, C#,
Python
Cancel attempt
algora-pbc[bot] commented 6 months ago

@digital-phoenix: 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.

gechdejenb commented 6 months ago

can I get assigned for the issue?

digital-phoenix commented 6 months ago

@olegklimov I'd be fine with @gechdejenb taking over this issue. I have enough other stuff to work on.

Muhammad-Musab commented 6 months ago

can i get assigned for this issue?

olegklimov commented 5 months ago

oh yeah sure why not

itsxdamdam commented 5 months ago

/attempt #34

algora-pbc[bot] commented 5 months ago

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

korayaltq commented 5 months ago

@Muhammad-Musab Are you still working for the issue? If not, I would love to work.

RafaelJohn9 commented 4 months ago

Hello, here, requesting to be assigned this issue

Ahmadkhan02 commented 4 months ago

I was trying to set this up, but how am I supposed to run the workflow for 'refact-lsp.exe' (it asks for admin rights)

olegklimov commented 4 months ago

hi @Ahmadkhan02 It doesn't require any special rights, works on my Windows box just fine without asking anything. Maybe it asks to open a TCP port, but then it's 127.0.0.1 so it's not even a port visible from outside 🤷

varsubham commented 4 months ago

/attempt #34

algora-pbc[bot] commented 4 months ago

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

amiransari001 commented 4 months ago

Hello,

Not sure if Muhammad-Musab is still working on this issue. If so, you can ignore this. If not, I would love to be assigned.

I don’t have any experience with open source contributions or with VS Code extension development, but I have quite a bit of experience in Python, JavaScript, and working with open source projects. I also learn quickly and have a broad, deep, and solid foundation of knowledge, not to mention a bunch of time on my hands.

Appreciate your time.

Ahmadkhan02 commented 4 months ago

hi @Ahmadkhan02 It doesn't require any special rights, works on my Windows box just fine without asking anything. Maybe it asks to open a TCP port, but then it's 127.0.0.1 so it's not even a port visible from outside 🤷

had to delete refact-lsp.exe once, somehow ended up with a corrupt file earlier

algora-pbc[bot] commented 4 months ago

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

Ahmadkhan02 commented 4 months ago

no, I am still facing issues with refact-lsp.exe. After git clone. it shows up like

Screenshot 2024-05-13 022156

Also when running workflow from github cli:

Screenshot 2024-05-13 022236

toitek commented 4 months ago

/attempt #34

algora-pbc[bot] commented 4 months ago

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

Ahmadkhan02 commented 3 months ago

no, I am still facing issues with refact-lsp.exe. After git clone. it shows up like

Screenshot 2024-05-13 022156

Also when running workflow from github cli:

Screenshot 2024-05-13 022236

@olegklimov @digital-phoenix any help on this? Would like to work on this issue but this is a major blocker

thekumbhaj commented 3 months ago

/attempt #34

algora-pbc[bot] commented 3 months ago

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

d80ep08th commented 3 months ago

@olegklimov , bro @Muhammad-Musab aint produced any work, @digital-phoenix removed the assignment in March. Seems like the issue is up for grabs, no ?

Ahmadkhan02 commented 3 months ago

hi @Ahmadkhan02 It doesn't require any special rights, works on my Windows box just fine without asking anything. Maybe it asks to open a TCP port, but then it's 127.0.0.1 so it's not even a port visible from outside 🤷

Got it working. Had to build the refact-lsp code separately. Working on the issues now

mariomerida15 commented 3 months ago

@olegklimov can i get assigned?

And what i need to do

Ahmadkhan02 commented 2 months ago

I have made some progress on the issues but cant get the app to work. I have tracked to issue down to AddFile in RefactLanguageClient.cs. Adding some debug: `public async Task AddFile(String filePath, String text) {

Debug.WriteLine( $"Adding file {filePath} to LSP");

//wait for the rpc 
while (this.Rpc == null) await Task.Delay(1);

//dont send the file to the lsp if the lsp already knows about it
if (ContainsFile(filePath))
{
    return;
}

//message to send to lsp
var openParam = new DidOpenTextDocumentParams
{
    TextDocument = new TextDocumentItem
    {
        Uri = new Uri(filePath),
        LanguageId = filePath.Substring(filePath.LastIndexOf(".") + 1),
        Version = 0,
        Text = text
    }
};

//send message to lsp catch any communication errors
try
{;
    await Rpc.NotifyWithParameterObjectAsync("textDocument/didOpen", openParam);
    //add file to known file set
    files.Add(filePath);

    Debug.WriteLine($"File '{filePath}' added successfully");

}
catch (Exception e)
{
    Debug.WriteLine("Exception: " + e.Message);
    ShowStatusBarError("Server Exception: \n" + e.Message);
}

}`

i get error as: Adding file file:///C:/Users/kahma/AppData/Local/Temp/0u5gqz5n..js to LSP 19:01:57:732 Exception thrown: 'System.ObjectDisposedException' in mscorlib.dll 19:01:57:732 Exception: Cannot access a disposed object.

how do you guys get it running?

NOTE: I have the refact-lsp.exe now. Had to build it seprate.

@olegklimov @digital-phoenix

Ahmadkhan02 commented 2 months ago

@olegklimov anything for the above?

olegklimov commented 2 months ago

This issue is still valid!

@Ahmadkhan02 are you working on this?

Ahmadkhan02 commented 2 months ago

Yup @olegklimov, still working on this. Actually I am mostly done with the changes but as I stated above, I just can’t get the extension to run and hence can’t test

Even a new clone doesn’t run

rogueloop commented 2 months ago

hey, @Ahmadkhan02 let's collab if you are ready.

reymondzzzz commented 2 months ago

@Ahmadkhan02 I'm here to help you. What the problem with extension do u have? we have backend binary with lsp https://github.com/smallcloudai/refact-lsp. Build this one and put it in resources. Where can I find your code and test it by myself?

algora-pbc[bot] commented 2 months ago

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

Ahmadkhan02 commented 2 months ago

Hi @reymondzzzz

Screenshot 2024-07-12 215508

I have already built and added refact-lsp as shown. Thats not the issue. I am starting to think my OS is the issue here. What OS do you guys use? I can see visual studio 2022 for mac is also a thing. I can get a mac to try if thats what you guys use

reymondzzzz commented 2 months ago

We use vsclassic on windows only. Microsoft doesn't no longer support mac version of VS

Ahmadkhan02 commented 2 weeks ago

picking up this issue again after some time. Any idea when this issue comes up?

Screenshot 2024-08-26 021348

itsxdamdam commented 2 weeks ago

/attempt #34