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

SBT 0.13.13 doesn't seem to load global plugins on Windows #2888

Closed
salimfadhley opened this issue Dec 30, 2016 · 4 comments
Closed

SBT 0.13.13 doesn't seem to load global plugins on Windows #2888

salimfadhley opened this issue Dec 30, 2016 · 4 comments
Labels
area/windows Windows-specific issue

Comments

@salimfadhley
Copy link

steps

I've got a plugin file which at various times contains the one of the following:

  • credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
  • Some garbage text - deliberately intended to generate an error in a logfile

The file was placed in the following locations:

%USERPROFILE%.sbt\0.13\plugins\credentials.sbt
%USERPROFILE%.sbt\plugins\credentials.sbt

problem

Credentials do not seem to have loaded, I have hypothesized that this is because the global plugins file didn't get read by SBT.

expectation

When the plugin file contained valid code I would expect to see something in the log that indicated that the plugin got loaded. I would expect the credentials to be available.

When the plugin file contained garbage I would expect to see some kind of error in the log files.

notes

I'm using Windows 7 behind a corporate firewall. Getting credentials to work on Windows is really important to me because our corporate Artifactory rejects anonymous access.

This was also asked as a Stack Overflow question:
http://stackoverflow.com/questions/41382439/where-do-i-put-global-plugins-for-sbt-0-13-13-on-windows

@salimfadhley
Copy link
Author

Would an SBT dev be willing to look into this possible bug? Thanks!

@eed3si9n
Copy link
Member

I've answered the Stackoverflow question. I don't think it's a bug.

@salimfadhley
Copy link
Author

@eed3si9n did you manage to verify that the feature works on Windows? Based on the syntax of your response it looks like you used Linux. It works on Linux for me too - I really want to get it working on Windows as well.

In response to your question - I was able to get it working using SBT 0.12.x. on windows. I've never been able to get it to work with 0.13.x on Windows.

@eed3si9n
Copy link
Member

Here's a proof-of-concept error output using Windows and sbt 1

sbt
C:\Users\eed3si9n\.sbt\1.0\plugins\foo.sbt:1: error: not found: value x
x
^
[error] Type error in expressions
Project loading failed: (r)etry, (q)uit, (l)astr, or (i)gnore?

@eed3si9n eed3si9n added the area/windows Windows-specific issue label Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/windows Windows-specific issue
Projects
None yet
Development

No branches or pull requests

2 participants