devika
                                
                                
                                
                                    devika copied to clipboard
                            
                            
                            
                        Strange created filenames.
I am using devika on an ubuntu 22.04 LTS machine with a local running ollama with various models.
In principle it is creating files, but the file names are strange like:
tom@tomHome test2 $ ls
'main.py'
Where can I fix that, so the filename would be main.py?
Originally posted by @tblock-zz in https://github.com/stitionai/devika/discussions/564
Works great with the models I've tried.
I can confirm that the ticks are being created on my windows install.
Files created in one of the projects folders:
`main.py`
`requirements.txt`
My setup: Windows 10, Python 3.11.12, running 4a62feb782accb1b2f67c387e73f7c80672529bb
Just replace this line in. Validate response function of coder agent current_file = line.split(":")[1].strip() To current_file = line.split("`")[1].strip()
In
Just replace this line in. Validate response function of coder agent current_file = line.split(":")[1].strip() To current_file = line.split("`")[1].strip()
In which file? I have the same Problem.
Found it under "devika\src\agents\coder\coder.py"
Hi all, I already made a fix for this on PR #567 over 2 weeks ago:
current_file = line.split(":")[1].replace("`", "").strip()
We can't just change it back to split on the backtick, as I've seen it where the backticks are not always generated, so it would kick an "index out of range" error. So my solution was to keep the split on the colon, but replace the backticks with empty spaces. Can someone approve PR #567?