-
Notifications
You must be signed in to change notification settings - Fork 5
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
Sublime text! #4
Comments
Hi @picturesbyrobots |
interesting! Thanks for checking out the repo. Just double checking that you also have downloaded the TOX from this repo and have placed it in the root directory of the TD project that you're trying to get completions for. . If that's the case there also might be an issue with how the completions handler works in ST. It's not super well documented TBH. In my testing I was triggering auto completions with CNTRL+Space. but I can check on the edit show completions method when I get back to a desk. best. |
hi @picturesbyrobots Best, |
just compiled the package from the source and opened the console window in ST while trying it:
Note, this may be line 64 for you, because I just added a |
hmm...that error would occur if somehow the buffer coming back to ST is malformed. Which means it's probably something in on the touch side. Would you be able to attach the .TOE you're using to test this or via some sort of file share service? I'm curious to see if I can replicate the behavior over here on my PC. |
Sure thing: |
AH! @omarcostahamido I'm able to reproduce this issue intermittently. The line that appears to be causing this is 52: If that isn't the case you can try the following steps. line 50 or 51 increase the value of MAX_READ_ATTEMPS to 3000. Add this following lines after the while loop breaks around line 66. This should help with debugging
There's probably a better way to wait for the completions to come through without blocking the main thread but unfortunately I found that if I don't wait for completions then odds are the entire completion context has changed by the time completions are returned. |
:( I'm still not getting there made the changes:
if I ask it to print those lines regardless (i.e. outside of the if) I get:
repeated a bunch of time, as you can guess (at least 1494 times)... I just decided to try to print it just in case. (btw, changes seem to take effect just by editing the py file, no need to compile and restart ST everytime) |
Hmmm...yeah for some reason the data is being sent through the tcp socket but not read to the buffer. If completions are not being consistently sent to you( i.e. clicking show completions multiple times results in the same thing) I'm going to assume that it's something to do with how the socket programming works on a mac. I'll dig up a mac and see if I can replicate it on that platform. Out of curiosity if you right click on the textDAT in the attached network and click run do you get anything that prints to the text port? -d |
If there's interest we'll consider a Sublime Text addon.
The text was updated successfully, but these errors were encountered: