Closed MDSADABWASIM closed 1 month ago
Could you create an sm-log.txt
file in your home directory, and see if there is anything that suggests an error? It sounds like it could be the binary running into some issue when it tries to index the repository
Here's the logs.
2024/09/04 10:55:50 Connection established
2024/09/04 10:55:51 Assembly status: ready
2024/09/04 10:55:51 Uploading worktree state: []
2024/09/04 10:55:51 Entering normal channel operation
2024/09/04 10:55:51 Output: {"kind":"passthrough","stateId":"","items":null,"passthrough":{"display":"Pro","kind":"service_tier","service_tier":"Pro"}}
2024/09/04 10:55:51 Output: {"kind":"passthrough","stateId":"","items":null,"passthrough":{"kind":"task_status","percent_complete":null,"status":"complete","task":"Initializing"}}
2024/09/04 10:55:51 Output: {"kind":"passthrough","stateId":"","items":null,"passthrough":{"kind":"active_repo","repo_simple_name":null}}
2024/09/04 10:55:52 Edge error: building prompt: cursor offset out of bounds (offset=15259, file length=11031)
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"49","items":[{"kind":"text","text":"/"}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"49","items":[{"kind":"text","text":"development/projects/rn-mobile-"}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"49","items":[{"kind":"text","text":"app/src/Store/helpers."}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"49","items":[{"kind":"text","text":"js\",\"content\":\"\""}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"49","items":[{"kind":"text","text":",\"offset\":18"}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"49","items":[{"kind":"text","text":"0}]}\n"},{"kind":"end","text":""}]}
2024/09/04 10:55:52 Edge error: building prompt: cursor offset out of bounds (offset=18264, file length=11031)
2024/09/04 10:55:52 Edge error: building prompt: cursor offset out of bounds (offset=11094, file length=11031)
2024/09/04 10:55:52 Edge error: building prompt: cursor offset out of bounds (offset=14379, file length=11031)
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":"ocuments"}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":"/development/projects/rn-mobile"}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":"-app/src/Store/helpers"}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":".js\",\"content\":\"[contents]\","}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":"\"offset\":0},{\"kind\":\""}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":"cursor_update\",\"path\":\"/Users/sad"}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":"abwasim/Documents/development/"}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":"projects/rn-mobile-app/"}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":"src/Store/helpers.js\",\""}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":"content\":\"\""}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":",\"offset\":19"}]}
2024/09/04 10:55:52 Output: {"kind":"response","stateId":"91","items":[{"kind":"text","text":"5}]}\n"},{"kind":"end","text":""}]}
2024/09/04 10:55:54 EdgeController: shutdown message received, reason: ping timeout
2024/09/04 10:55:54 Error handling edge message: edge error: EdgeConnection closed
2024/09/04 10:56:00 {"kind":"state_update","newId":"123","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":91771}]}
2024/09/04 10:56:00 Connecting to wss://stream.supermaven.com/ with repo
2024/09/04 10:56:00 {"kind":"state_update","newId":"124","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":92866}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"125","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":93961}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"126","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":95056}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"127","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":96151}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"128","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":97246}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"129","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":98340}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"130","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":99111}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"131","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":99642}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"132","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":100506}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"133","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":101598}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"134","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":102692}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"135","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":103787}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"136","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":104882}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"137","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":105653}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"138","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":105898}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"139","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":106291}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"140","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":106810}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"141","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":107112}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"142","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0},{"kind":"cursor_update","path":"/Users/sadabwasim/sm-log.txt","content":"","offset":107643}]}
2024/09/04 10:56:01 {"kind":"state_update","newId":"143","updates":[{"kind":"file_update","path":"/Users/sadabwasim/sm-log.txt","content":"[contents]","offset":0}
We're going to change the plugin to be compatible with a new version of the sm-agent binary which shouldn't run into errors like this - though until this is done I don't think there is any temporary fix available
Ok @sm-victorw please update me on this thread when it's done, thanks for the quick reply though.
Sorry for the long delay @MDSADABWASIM , the branch rust-binary
contains code that I think will eventually be merged into main
, after some more testing. If I am correct in that the issue you were running into was a result of the old sm-agent
binary, using this branch should work for you.
Using e.g. the Lazy plugin manager you could set branch = 'rust-binary',
if you want to try it out
I believe this should be solved with #109, if the problem persists please reopen the issue
@sm-victorw starting from today with the new update I'm getting this warning on macos. [DEBUG Wed Oct 2 09:58:37 2024] Unknown message: 2024-10-02T08:58:37.590Z WARN [sm_agent::edge_connection] Error from edge server: no active file
Hey, I'm a supermaven pro user, and I'm constantly facing this issue, it keeps stopping, even after running
:SupermavenRestart
it didn't work in my react-native project, if I switch to my config files(Lua), it's working fine there which is quite strange.Here's my config: