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

Failing to add packages from Atom #888

Closed
mastoj opened this issue Jun 21, 2015 · 13 comments
Closed

Failing to add packages from Atom #888

mastoj opened this issue Jun 21, 2015 · 13 comments
Labels

Comments

@mastoj
Copy link

mastoj commented Jun 21, 2015

I'm quite new to both atom and paket, so it might be a beginner mistake, but I guess we don't want them either.

I installed atom, the fsharp and paket plugin for atom. When I try to run Add Nuget package I get:

Paket failed with:
        Error in paket.dependencies line 3
  could not retrieve nuget package from 

When I run paket install from command line it seems to be working just fine though. Any ideas of what's wrong or anything I could do to help figure it out?

@forki
Copy link
Member

forki commented Jun 21, 2015

Could you please provide the paket.dependencies file?

@forki
Copy link
Member

forki commented Jun 21, 2015

And what package did you try to add

@mastoj
Copy link
Author

mastoj commented Jun 21, 2015

The paket.dependencies file:

source https://nuget.org/api/v2

nuget FAKE
nuget Suave
nuget DotLiquid
nuget FSharp.Data
nuget FSharp.Compiler.Service
nuget FSharp.Data.SqlClient

I started with a project from Petricek and just wanted to add FSharp.Data.SqlClient, the FSharp.Data.SqlClient in the file was added manually and after that it worked to run paket install.

How is the plugin supposed to work? Do I need to install paket separately and at it to the path or should the plugin handle everything? I'm on Windows btw.

@forki
Copy link
Member

forki commented Jun 21, 2015

The atom plugin should handle everything. It downloads latest paket.exe on
install. /cc @krysztof_cieslak

The paket.dependencies file:

source https://nuget.org/api/v2

nuget FAKE
nuget Suave
nuget DotLiquid
nuget FSharp.Data
nuget FSharp.Compiler.Service
nuget FSharp.Data.SqlClient

I started with a project from Petricek and just wanted to add
FSharp.Data.SqlClient, the FSharp.Data.SqlClient in the file was added
manually and after that it worked to run paket install.

How is the plugin supposed to work? Do I need to install paket separately
and at it to the path or should the plugin handle everything? I'm on
Windows btw.


Reply to this email directly or view it on GitHub
#888 (comment).

@Krzysztof-Cieslak
Copy link
Member

I think I see the problem - the Paket for some reason (which I don't know yet) doesn't returns list of plugins - only element visible on should-be-searched-packages list is empty element ( displaying it is definitely the bug in plugin) and when user press Enter it's using chosen element from list (so in this case it's empty element) and we invoke Paket with wrong arguments.

So it's definitely plugin bug, but still for some reason Paket is not returning search results.

@Krzysztof-Cieslak
Copy link
Member

Hmm... looks like I get search results from command line. Will investigate bit more

@Krzysztof-Cieslak
Copy link
Member

@forki: When I fire paket in my local project location (just .paket\paket.exe) i get normal search results. When I try to run it using full path to paket atom plugin (i.e. C:\Users\Krzysztof\.atom\packages\Paket\bin\paket.exe ) I get empty result form it. Any idea?

@forki
Copy link
Member

forki commented Jun 21, 2015

Maybe it doesn't find the right paket.dependencies to look up the nuget
feed urls?
On Jun 21, 2015 4:10 PM, "Krzysztof Cieślak" [email protected]
wrote:

@forki https://github.com/forki: When I fire paket in my local project
location (just .paket\paket.exe) i get normal search results. When I try
to run it using full path to paket atom plugin (i.e.
C:\Users\Krzysztof.atom\packages\Paket\bin\paket.exe ) I get empty
result form it. Any idea?


Reply to this email directly or view it on GitHub
#888 (comment).

@Krzysztof-Cieslak
Copy link
Member

I'm starting Paket in both cases from same directory

Other thing is that I'm kinda sure it WAS working yesterday or 2 days ago - don't remember when i lasted used Paket plugin

@forki
Copy link
Member

forki commented Jun 21, 2015

Ok will try to reproduce tomorrow.
On Jun 21, 2015 4:37 PM, "Krzysztof Cieślak" [email protected]
wrote:

I'm starting Paket in both cases from same directory

Other thing is that I'm kinda sure it WAS working yesterday or 2 days ago

  • don't remember when i lasted used Paket plugin


Reply to this email directly or view it on GitHub
#888 (comment).

@forki forki added the bug label Jun 22, 2015
@forki forki closed this as completed in bd8d3d6 Jun 22, 2015
@forki
Copy link
Member

forki commented Jun 22, 2015

yes I broke find-packages when I tried to fix find-package-versions - see #886 (comment)

sorry about that

@Krzysztof-Cieslak
Copy link
Member

I've also added in Paket.Atom some better behavior if Paket for any reason returns empty result - same bug could occurred if someone gave text which could not be found by nuget. Should be better now.

@forki
Copy link
Member

forki commented Jun 23, 2015

Very good. Thanks

@forki forki reopened this Jun 23, 2015
@forki forki closed this as completed Jun 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants