-
Notifications
You must be signed in to change notification settings - Fork 2
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
Upgrade support for linter API to v2 #16
Comments
Yes, I will take a look as soon as I can. It's unclear to me right now whether every linter-using package needs to upgrade to the new linter API or whether 1.0 and 2.0 can co-exist... |
What's broken? I haven't noticed any problems, except of not working keymaps. |
When I run As you mentioned, the alt-shift-. key combo does not work. |
As of a22c61b the package has moved to Linter V2. It seems to be working well, but if you have a chance, please try the latest master and report any problems you see. |
Could you also integrate the Busy-Signal API to show progress while SBT is compiling? |
Yep, that's a good point. Should be easy. Will take a look. |
As of bd69a11 there is support for Busy Signal, both for sbt startup and each sbt command issued. Please let me know how it works for you. |
It doesn't seem to ever stop. Since I start sbt it starts spinning and doesn't stop when sbt has loaded or when compilation has finished. |
Are you using a continuous command (e.g., "~compile")? I haven't yet tried to support only showing a busy signal when that sort of command is actually doing something, as opposed to when it is waiting for a file to change. |
No, it's spinning all the time. Irrespectively of any commands I run (even non-continuous). |
Hmm, ok. Will look into it, but it didn't happen for me. Can you try different projects in case it's something project specific? |
It's keyed off the prompt pattern, so maybe you have a more general (I.e., matching more often) pattern? |
Yes, I use a custom prompt, so I guess, it just doesn't match.. It looks something like this:
And when it doesn't run
So probably matching |
I've tried a bunch of solutions previously for this sort of problem. It turns out everything works much more cleanly if I can detect when the prompt is shown. Not just the busy signal but things like detecting which commands are typed interactively. It's not enough in my experience to rely on what sbt normally prints, since various settings can change that. E.g., if info messages are turned off the "Set current project to ..." message doesn't appear. If you have a non-standard prompt, you will need to set the new Prompt Pattern setting to match it. Hopefully then everything will work properly. |
Supported in version 0.9.0 which is now published. |
Hey! Thanks a lot for releasing it 👍 |
Thanks for the feedback. I agree that having the prompt pattern setting is less than ideal. I have experimented with a version that asks sbt what the prompt is, but this was quite unreliable too, since to reliably get it we need to know what the prompt is. There are all sorts of race conditions if we just send things and read the responses. The prompt pattern is tedious but should only have to be done once and is reliable. |
I still think that this setting is not reliable (see #20). I wonder what are the problems with using the |
I think it is possible for the final success message to be suppressed (unusual I know). Also, capturing the entered commands is important to get the history and "run last command" features to work, so I need to do it anyway. |
The atom linter package recently released their 2.0 API, which breaks atom-sbt linter support. Please upgrade the atom-sbt linter support to the 2.0 API. The new API is documented here
http://steelbrain.me/linter/
and includes a migration guide.
The text was updated successfully, but these errors were encountered: