rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 94 forks source link

Accessing to the code source of a homemade dependency via github #594

Open nhenin opened 4 years ago

nhenin commented 4 years ago

I'm open sourcing a part of the project of my company now, I have created a public repository on github.. And I use this package that way in extra-deps in my stack.yml file :

 - github: dolla-consortium/base
    commit: ee600d4b374f5b6aa54d326f4161f84a20acab8e

Everything works well, but somehow I can't access to the code source from the project that uses it in Intellij.

And by curiosity, how do you use Hoogle with your plugin ? is it just to display info like this : image or you use it for other things as well ?

Thanks for the help in advance :-)

nhenin commented 4 years ago

Ok I'm progressing :-)

image

The package is not copied in your cache :

image

nhenin commented 4 years ago

Ok I have copied manually the lib and it works, maybe you are not supporting this feature yet ?

rikvdkleij commented 4 years ago

Ok I have copied manually the lib and it works, maybe you are not supporting this feature yet ?

Yes, for libraries only code from hackage is downloaded to the plugin's cache.

Normally when a Stack project has multiple Cabal projects, they are defined in as packages in stack.yaml. That is supported.

And by curiosity, how do you use Hoogle with your plugin ?

Hoogle is used to retrieve the Haddock documentation (as in your screenshot) and it can be used for navigation (in menu Navigate/Haskell).

Btw, you didn't mention to location of your repo.

nhenin commented 4 years ago

Normally when a Stack project has multiple Cabal projects, they are defined in as packages in stack.yaml. That is supported.

I was doing that at the beginning, but when the project get more mature that's a transition you want to do eventually, because now I have 13 sub-projects... And some of them are going to be public in github, so I can't do that anymore... And It adds useless recompiling also ...

Do you plan to support this ? It's going to become a pb eventually for us....

Btw, you didn't mention to location of your repo.

What do you mean ? this ?

- location:
    git: git@github.com:commercialhaskell/stack.git
    commit: 6a86ee32e5b869a877151f74064572225e1a0398

It changed with the new versions of stack (https://stackoverflow.com/questions/38377521/haskell-stack-install-package-dependency-from-github) you don't need it anymore...

rikvdkleij commented 4 years ago

Do you plan to support this ? It's going to become a pb eventually for us....

I will take a look soon. Should be doable.

What do you mean ? this ?

No, I'm referring to this:

I'm open sourcing a part of the project of my company now, I have created a public repository on github..

nhenin commented 4 years ago

That would be great @rikvdkleij :-) I appreciate the quality of your support 👍 , do we let that issue open then ?

rikvdkleij commented 4 years ago

Yes, issue can stay open.