Skip to content
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

Needs an invalidation or clean mechanism #8

Open
davesmith00000 opened this issue Sep 18, 2018 · 1 comment
Open

Needs an invalidation or clean mechanism #8

davesmith00000 opened this issue Sep 18, 2018 · 1 comment

Comments

@davesmith00000
Copy link

Hi,

Context in case it matters, I'm doing Scala.js work.

Generally, the plugin is very stable. From time to time though, Atom or the SBT client plugin gets very confused about it's incremental compile state. SBT itself is quite happy (I run SBT in a terminal in the background, which I vastly prefer to the VSCode version that tries to run it for me!).

This happens a lot running unit tests with ScalaTest where instead of getting a nice error message when your tests are run, you actually get a linking error in JS. This is usually resolved by running clean, possibly with test:compile in the running SBT session.

Another instance where this happens is when you use global find and replace in Atom and it touches lots of files with auto-save. The diagnostics show errors where there are none and can only be invalidated with a hard restart of everything. I imagine a similar thing would happen with a big version control change, but I haven't tried it to know for sure.

For now I'd be overjoyed with a blunt "sbt: clean" task in the Atom command palette if such a thing is possible?

Dave

@davesmith00000
Copy link
Author

davesmith00000 commented Sep 18, 2018

Wondering if I could help, so fishing round the docs, looks like I'd need basically this:
https://www.scala-sbt.org/1.x/docs/sbt-server.html#request

...and a new command in the command registry?
https://atom.io/docs/api/v1.4.1/CommandRegistry

Am I looking in the right places or way off? :-)

Atom
At GitHub, we’re building the text editor we’ve always wanted: hackable to the core, but approachable on the first day without ever touching a config file. We can’t wait to see what you build with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant