Welcome! Please see the About page for a little more info on how this works.

+1 vote
in ClojureCLR by
edited by

UPDATE 2021/4/10 -- 1.10.0-rc2 from nuget installs and runs!

Pretty much just the title, I'm able to install and run beta1, but rc1 is spitting out some problem about DotnetToolSettings.xml not being correct. To my eye, those files look the same in both packages, so I'm not sure what to do. Output comparing both files and the install command:

john@bbox ~ (git)-[master] % cat .nuget/packages/clojure.main/1.10.0-rc1/tools/net5.0/any/DotnetToolSettings.xml
<?xml version="1.0" encoding="utf-8"?>
<DotNetCliTool Version="1">
  <Commands>
    <Command Name="Clojure.Main" EntryPoint="Clojure.Main.dll" Runner="dotnet" />
  </Commands>
</DotNetCliTool>
john@bbox ~ (git)-[master] % cat .nuget/packages/clojure.main/1.10.0-beta1/tools/net5.0/any/DotnetToolSettings.xml
<?xml version="1.0" encoding="utf-8"?>
<DotNetCliTool Version="1">
  <Commands>
    <Command Name="Clojure.Main" EntryPoint="Clojure.Main.dll" Runner="dotnet" />
  </Commands>
</DotNetCliTool>
john@bbox ~ (git)-[master] % dotnet tool install --global Clojure.Main --version 1.10.0-rc1      
The settings file in the tool's NuGet package is invalid: Failed to retrieve tool configuration: Could not find a part of the path '/home/john/.dotnet/tools/.store/clojure.main/1.10.0-rc1/clojure.main/1.10.0-RC1/tools/net5.0/any/DotnetToolSettings.xml'.
Tool 'clojure.main' failed to install. Contact the tool author for assistance.
1 john@bbox ~ (git)-[master] % dotnet tool install --global Clojure.Main --version 1.10.0-beta1
Tools directory '/home/john/.dotnet/tools' is not currently on the PATH environment variable.
If you are using bash, you can add it to your profile by running the following command:

cat << \EOF >> ~/.bash_profile
# Add .NET Core SDK tools
export PATH="$PATH:/home/john/.dotnet/tools"
EOF

You can add it to the current session by running the following command:

export PATH="$PATH:/home/john/.dotnet/tools"

You can invoke the tool using the following command: Clojure.Main
Tool 'clojure.main' (version '1.10.0-beta1') was successfully installed.

version info

john@bbox ~ (git)-[master] % uname -a        
Linux bbox 5.10.23-0-lts #1-Alpine SMP Mon, 15 Mar 2021 06:55:22 +0000 x86_64 Linux
john@bbox ~ (git)-[master] % dotnet --version
5.0.202
john@bbox ~ (git)-[master] 

The output of dotnet install is also the same for dotnet core 3.1

1 Answer

+1 vote
by
selected by
 
Best answer

"It works for me!" :)

But I've only tested on Windows.

Searching around, I've seen a few hints that casing might be a problem. Prior was 'beta1'. This one is "RC1". Might be solved if it were "rc1".

Not sure if there is a quick solution to this.
A suggestion here: https://github.com/dotnet/sdk/issues/9731

by
Hi David,

Turns out the capitalization was the problem, I tried building with `rc1` as the prerelease version and it worked. I pushed up what I did to a fork, just for clarity https://github.com/jjsullivan5196/clojure-clr/commit/2600608832eb125253fe0b41d8540f0897b8d243 Thanks for the tip!

Also, I did run into some other problems getting the build to work on linux, which were easy to get around in Clojure.Compiler. I also have a branch for that stuff, figure it might be useful https://github.com/jjsullivan5196/clojure-clr/tree/nix-build I filled out a contributor agreement to submit a patch, but since this doesn't have an issue yet I'll wait to see if this would be welcome :^)
by
Oh, excellent!  Your patches will be most welcome.
I've created issues for the two items I saw in your fork.

https://clojure.atlassian.net/browse/CLJCLR-110
https://clojure.atlassian.net/browse/CLJCLR-111
by
Super! I just opened a PR for this, hope this helps things along!
by
PRs accepted.   RC2 coming soon.
by
RC2 has been released for testing.
...