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 scala-cli cs installed by coursier does not work on windows #2953

Open
harry-xi opened this issue Mar 19, 2024 · 10 comments
Open

sbt scala-cli cs installed by coursier does not work on windows #2953

harry-xi opened this issue Mar 19, 2024 · 10 comments

Comments

@harry-xi
Copy link

When I try to run the above command, it says

This version of C:\Users\HarryXi\AppData\Local\Coursier\data\bin\.sbt.aux.exe is not compatible with the version of Windows you are running. Please check your computer's system information and then contact the software publisher.
@tgodzik
Copy link
Collaborator

tgodzik commented Mar 19, 2024

Might be that the version of windows is too old? What version are you using?

@harry-xi
Copy link
Author

Might be that the version of windows is too old? What version are you using?

I'm using Windows 11 23H2 (22613.3296)

I apologize for forgetting to provide this information in the first place

@tgodzik
Copy link
Collaborator

tgodzik commented Mar 19, 2024

According to https://answers.microsoft.com/en-us/windows/forum/all/this-verison-of-this-file-is-not-compatible-with/0c6a4c8e-1416-47a5-b6b4-6d10a82942da it might mean that you have 32bit system and the apps are create for 64 or the other way around. I think the native apps are released for 64 bit systems

@harry-xi
Copy link
Author

According to https://answers.microsoft.com/en-us/windows/forum/all/this-verison-of-this-file-is-not-compatible-with/0c6a4c8e-1416-47a5-b6b4-6d10a82942da it might mean that you have 32bit system and the apps are create for 64 or the other way around. I think the native apps are released for 64 bit systems

You should know that win11 doesn't have a 32 bit version

@tgodzik
Copy link
Collaborator

tgodzik commented Mar 19, 2024

Hmm... Ok then a pity the error doesn't give us more information. You could try installing Scala CLI via winget, we can confirm whether the error is coursier specific.

https://scala-cli.virtuslab.org/install <- there should be some minimal instruction there

@harry-xi
Copy link
Author

It's working fine.
In fact the binary version cs downloaded from coursier's release and the sbt binary downloaded from the official sbt repository's release both work fine!
The problem only occurs with the version installed by coursier.

@tgodzik
Copy link
Collaborator

tgodzik commented Mar 19, 2024

Not sure them 🤔 does anyone else have this problem? If it's more widespread we might need to take a closer look soon.

@eed3si9n
Copy link
Contributor

This version of C:\Users\HarryXi\AppData\Local\Coursier\data\bin.sbt.aux.exe ...

So when Coursier says it's installing sbt, is it still installing some shim of sbt instead of the genuine sbt?

@harry-xi
Copy link
Author

So when Coursier says it's installing sbt, is it still installing some shim of sbt instead of the genuine sbt?

Honestly, I didn't understand your statement very well.
I was just installing scala and its tools using a binary version of coursier on a computer that didn't have scala (and any of its associated tools) installed.
During this process, I didn't notice any different log output when installing sbt than when installing other tools.

@eed3si9n
Copy link
Contributor

Yea, sorry about that. That was more of an observation (I'm a maintainer of sbt) that Coursier does that. bin.sbt.aux.exe isn't something that we (sbt project) ship.

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

3 participants