[ANN] ClojureCLR version 1.10.0 released

237 views
Skip to first unread message

dmiller2718

unread,
Apr 24, 2021, 1:30:40 PM4/24/21
to clojure-clr
ClojureCLR version 1.10.0 final release has been pushed to nuget.org and sourceforge.


bobc...@gmail.com

unread,
May 2, 2021, 2:43:16 PM5/2/21
to clojure-clr
Trying to install as a dotnet tool, I get the following error:

PS C:\Users\bcalc> dotnet tool install --global Clojure.Main
error NU1101: Unable to find package clojure.main. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, nuget.telerik.com
The tool package could not be restored.
Tool 'clojure.main' failed to install. This failure may have been caused by:

* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

What am I doing wrong?

dmiller2718

unread,
May 5, 2021, 12:26:39 AM5/5/21
to clojure-clr
I just tested on my box (Windows 10), no problem.

C:\Users\dmiller>dotnet tool install --global Clojure.Main
You can invoke the tool using the following command: Clojure.Main
Tool 'clojure.main' (version '1.10.0') was successfully installed.

C:\Users\dmiller>clojure.main
Clojure 1.10.0
user=>
^C

What system (OS, CLR version, etc.) are you running on?

Gauthier Segay

unread,
May 5, 2021, 2:10:24 AM5/5/21
to dmiller2718, clojure-clr
It would seem the original issue is related to the nuget sources being checked:

"""
No packages exist with this id in source(s): Microsoft Visual Studio
Offline Packages, nuget.telerik.com
"""

Probably an user environment issue related to nuget itself.
> --
> You received this message because you are subscribed to the Google Groups "clojure-clr" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clojure-clr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clojure-clr/f253cb7b-6ab2-4ad8-8931-3321334e6416n%40googlegroups.com.

David Miller

unread,
May 5, 2021, 2:00:42 PM5/5/21
to Gauthier Segay, clojure-clr
Missed that.  Yep.

Robert Calco

unread,
May 5, 2021, 2:59:27 PM5/5/21
to David Miller, Gauthier Segay, clojure-clr
Ah it looks like Telerik components messed with my registry configuration. What repository do I need to add/update with nuget to get this to work?



--
Bob Calco

813-997-3583 (work mobile)
813-523-3751 (personal mobile)

"But you can catch yourself entertaining habitually certain ideas and setting others aside; and this, I think, is where our personal destinies are largely decided." -- Alfred North Whitehead

"And now I see with eye serene the very pulse of the machine." -- William Wordsworth

dmiller2718

unread,
May 5, 2021, 3:30:45 PM5/5/21
to clojure-clr
I'm not sure how it will interact with your local settings, but you might try

dotnet tool install --global Clojure.Main --add-source nuget.org

bobc...@gmail.com

unread,
May 6, 2021, 1:53:05 PM5/6/21
to clojure-clr
I am looking for the correct web coordinates for the nuget.org package manager... that invocation didn't work, presumably because it was looking for nuget.org locally:

PS C:\Users\bcalc> dotnet tool install --global Clojure.Main --add-source nuget.org
C:\Program Files\dotnet\sdk\5.0.202\NuGet.targets(131,5): error : The local source 'C:\Users\bcalc\nuget.org' doesn't exist. [C:\Users\bcalc\AppData\Local\Temp\2mmsdt5l.geh\restore.csproj]
The tool package could not be restored.
Tool 'clojure.main' failed to install. This failure may have been caused by:

* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

I'm scrounging around nuget.org to find out how to configure the repo with the dotnet.exe but haven't found it yet...

bobc...@gmail.com

unread,
May 6, 2021, 2:04:55 PM5/6/21
to clojure-clr
Aha, I think I found it:

PS C:\Users\bcalc> dotnet tool install --global Clojure.Main --add-source https://api.nuget.org/v3/index.json
You can invoke the tool using the following command: Clojure.Main
Tool 'clojure.main' (version '1.10.0') was successfully installed.
PS C:\Users\bcalc>

However, I need to add that configuration to wherever the hell the actual config file is stored. 

Gauthier Segay

unread,
May 6, 2021, 2:05:36 PM5/6/21
to bobc...@gmail.com, clojure-clr
maybe one of those:
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-add-source#examples

Otherwise, uninstalling telerik stuff (probably there is a way to keep
it working without it messing with dotnet nuget resolution globally)
maybe a good alley to fix the issue.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clojure-clr/36ab7e67-6603-4920-ae01-dbac20d6f52an%40googlegroups.com.

bobc...@gmail.com

unread,
May 6, 2021, 2:15:48 PM5/6/21
to clojure-clr
It seems creating a NuGetDefaults.config file in C:\Program Files (x86)\NuGet\Config does the trick:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <!-- defaultPushSource key works like the 'defaultPushSource' key of NuGet.Config files. -->
    <!-- This can be used by administrators to prevent accidental publishing of packages to nuget.org. -->
    <config>
        <add key="defaultPushSource" value="https://contoso.com/packages/" />
    </config>

    <!-- Default Package Sources; works like the 'packageSources' section of NuGet.Config files. -->
    <!-- This collection cannot be deleted or modified but can be disabled/enabled by users. -->
    <packageSources>
        <add key="Contoso Package Source" value="https://contoso.com/packages/" />
        <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
    </packageSources>

    <!-- Default Package Sources that are disabled by default. -->
    <!-- Works like the 'disabledPackageSources' section of NuGet.Config files. -->
    <!-- Sources cannot be modified or deleted either but can be enabled/disabled by users. -->
    <disabledPackageSources>
        <add key="nuget.org" value="true" />
    </disabledPackageSources>
</configuration>

There are several existing config files from VS as well as Telerik there. Apparently this was all that was missing. So if anyone else runs into it, this is the solution. I found it here: https://docs.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior

bobc...@gmail.com

unread,
Jul 4, 2021, 9:40:56 AM7/4/21
to clojure-clr
Just a quick update/point about the NuGet config above--the contoso.com site now apparently just redirects to microsoft.com. IIRC, I was using that config spec from something I found at the NuGet documentation site. So NuGet "broke" in Visual Studio recently and I had to remove it from the <packageSources>, make nuget.org the defaultPushSource, and remove the "nuget.org" key from <disabledackageSources> to get it to work again.

Is 1.10.3 still the most recent version? That seems to be what I have from the previous install. Running `dotnet tool install --global Clojure.Main --add-source nuget.org` again, it says it's already installed, so I'm guessing the answer is yes.
Reply all
Reply to author
Forward
0 new messages