-
Notifications
You must be signed in to change notification settings - Fork 12
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
Nothing happens on :ViraServers
#49
Comments
Did you define the path in your vimrc? It looks I may have left out the default.
I will have a closer look in a bit but I am working on a big one RIGHT now |
I didn't have it, but I've tried with your suggestion. This is what I've tried: let vira_config_servers = $HOME . '/.config/vira/vira_servers.json'
let vira_config_servers = '~/.config/vira/vira_servers.json'
let vira_config_file_servers = $HOME . '/.config/vira/vira_servers.json'
let vira_config_file_servers = '~/.config/vira/vira_servers.json' It made no change in behavior. And, no rush, man! :) Thanks for sharing this plugin with us! <3 |
Are you using |
Also check out branch VIRA-247 if you are on a larger server with many projects/versions that is the high priority fix right now. Random though on my mind is to make sure you have a very simple |
The server I'm connecting to is on |
@maricn this has been talked about between @mikeboiko and myself as well once async started. Users are next on my list after versions. I will need to expand the solution for what I am currently working on. I have done a quick push on VIRA-247 if you don't mind giving it a try for me. You will need to stay out of the We can also thank @chinwobble for having an initial issue leading this way. |
Just did, no success. Still the same.
Got it... |
Did the stay away from the menu work as I did remove the initial user load from the code? I guess did you log in? |
|
@maricn, can you try deleting your 2 json files please? |
OK, I think my problem probably lies elsewhere. I removed the config files, but I got no prompt. |
Yea it seems like either the per-requisites or the vira plugin isn't loaded properly. |
I didn't have a chance to try but make sure it is not referenced in your .vimrc as well for this test. |
OK, whoa, I got it 🤦 ! My ## Python 3 provider (optional)
- INFO: Using: g:python3_host_prog = "/usr/bin/python3"
- INFO: Executable: /usr/bin/python3
- INFO: Python version: 3.9.1
- INFO: pynvim version: 0.4.2
- WARNING: Could not contact PyPI to get latest version.
- ERROR: HTTP request failed: error: curl error with https://pypi.python.org/pypi/pynvim/json: 23 It is clashing with my
It seems that Sorry, sorry, sorry, everyone, definitely not in your scope! Thank you for helping me find out the issue! 🙏 |
Although, now when I go with
|
Glad you got that issue figured out. |
@mikeboiko if that works we will probably just add it officially to help future users as well. |
@n0v1c3 gotta hate it when those magic cookies don't play nicely ;) |
Lol! They were much more fun in highschool for some reason. |
Yes, spread the word about them! 🍄🍪 Btw, maybe you should also document that larger servers will have issues connecting unless you set up a filter for the repo to narrow down the project. For me it's not just slow, but also errors out and doesn't work without a |
When was your last update on VIRA-247? It should be nice to you now. I am interested in feedback for sure and, the filters are broken on it right now. If you have a "Vira" filter it will still show all your versions from all projects. I am working on that and then pushing it to dev once approved. Filters will not be required for connection speed in the very near future. This was because of some work around we created to get more information than we should have by running way too many queries. I have basically fixed projects/versions on that branch and can get onto users shortly with what I have learned and created. |
We also motivate any information from you pushed straight into the I would like to welcome you to the team and there is no better way than the "README didn't help me". One more thing, for the painfully slow are you referring to how fast the list grows or how fast vim runs? |
I also brought back that users line in the connect function inside python if that fixed it earlier then you can comment it out for your temp patch. |
Yes, I'm up to date, at e433204 and that's where I noticed the slowness too.
I'm referring to how fast vim runs. It seems very clogged, UI is not very responsive for minute(s). I can use it, but very pedestrian style, 500+ms lag or so. Btw, I noticed #45 and I'm aware of the
I'm not sure what kind of setups are you testing this on, but I've been in a couple of companies that had 10+ times more stuff on JIRA than my current one, so I'd expect that to be an important topic for this plugin. Two things I can see off the bat can improve performance:
Neither is unfortunately very easy to implement.
Commenting out that line does make it faster to fetch the projects, but the laggy performance persists looong even after the response arrives (and is printed out).
Will do! |
There is a line in |
If a lower number in particular works without being noticable in vim we have won. That async will run one background query per Xms. I will need to add a juggle in for users and versions. The base of which is one at a time version then user then version then user... For each list "quickly" once then you will see an adjustment of that timer in the async function once list is complete. Fight now the list is only project/versions |
It doesn't matter how big I make that number (10/50/100/500/5000) - at the moment when it triggers the request it slows down vim UI considerably. [So increasing the number helps a bit - it buys users some time to experience responsive UI, but it doesn't remove the interference.] It leads me to conclusion it is not truly multi-threaded solution, but merely get-out-of-my-sight kind of approach to async. I see https://github.com/skywind3000/asynctasks.vim that might jump to rescue, but tbh, it seems like too much effort. Local caching would definitely help a lot and probably completely overshadow the need for solving that issue. EDIT: I've just noticed your comments on #45 regarding async in python - that would seem like a good approach to solving the problem with unresponsiveness.
From my experience people find the weirdest ways to use JIRA that I could never think of. :) I'm for instance not using versions in my current three projects. And the products I work on are not 1:1 with the JIRA projects, and neither of those is 1:1 with git repos. And I've seen a lot of weirder stuff with custom workflows and what-not.. Just saying that QA of JIRA related projects like this plugin can explode the number of features. Beware of specializing too narrowly for your known use case. 🖖 |
I have a very big dream but I don't want to have even my hopes that high (this async backend and frontendish was not a slow down). My real goal is going to be what do you want |
I like the idea of a live chat option added since the async now. Although, I will stay on jira topics for the first official release. VIRA-69 is ironically an epic issue. Then we are in a clean up what we can in the code and frontend. Some major will never ends but the nicer they look the better are thing that will eventually become very not fun to handle all code style formats when wrapped. And of course we want a nice cleanup of our readme and actual work done on the vim Vira help to make that look cleaner and faster to understand. I have released that idea now feel free to keep them coming. |
@maricn you will see on my other active issue that hopefully the loading of the projects/versions is not an issue and up for testing. I also mentioned that my next step will be the users to update in the same way. This is currently on branch VIRA-247 and once good enough for the bigger players will get merged into Let me know if I have broken anything or simply made it better. Users should not be as hard now that I have made this "almost" work in vim. |
@maricn I have closed that other isses with @chinwobble / #45 at least for now as we move to hopefully start creating and endless list of new issues. I will always appeaser new issues being found in my tools being built to help solve the issues for other people around the world. I am still very interesting in hearing your feedback and will leave this issue open as I am beginning my proper clean-up process. This was the other big one that turned out to be very much the same issue as we got closer and closer. I am going through clean up and thinking. Push to dev, test (issues for those tools somewhere) I see that I have at lest more that a few people active using the dev branch and I know how far it stays ahead of the master branch so I am not too worried for a what will be a VERY large upgrade. |
@n0v1c3 Now it works much better with the latest updates. The cursor just barely stutters when holding Thank you for getting so involved with my comments. :) |
@maricn I am glad to hear that it is working better for you now and a thanks for these issues leading to a much better feature than expected. As we talked about, consider yourself becoming part of the team one piece at a time and pointing out everything I have done wrong. There is no way we can make software great for all of us otherwise. |
Hello! 👋
I have
python3
packagejira
and I've tried putting my credentials to~/.netrc
and usingjira
frompython
console and it works well, I can connect and browse projects and everything.However, using
vira
vim plugin nothing happens. I have created~/.config/vira/vira_servers.json
with content:When I issue
:ViraServers
command, a new buffer opens in a bottom split and it has a single empty line. When i press<cr>
nothing happens - the buffer closes and that's it.The same credentials (diff syntax) I use in
~/.netrc
forjira
python package which works fine.I'm on arch
and neovim:
I've tried using normal and
dev
version of thevira
plugin - same behavior.The text was updated successfully, but these errors were encountered: