-
Notifications
You must be signed in to change notification settings - Fork 23
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
Request for hsdev light #76
Comments
Remarks:
Questions:
|
Remarks:
I mean, get info by demand and do not everything upfront. For example, I noticed for example with Hledge project (https://github.com/simonmichael/hledger) that it can take very long time before scan is finished. And after that, the server did not always respond to client commands. Questions
|
It took 13 seconds to scan hledger with current version (not pushed yet).
|
Did you first build the complete project? In which directory did you run the |
No, i haven't built it. I've ran:
|
In which directory? Do you not have to add the sandbox path? |
Ok, got it. There also was another bug: Cabal-2.0 changed namings of package-db in sandbox, now they use OS 'windows' for After
Took ~30 secs You can use just Another problem is that hsdev detects this project as stack project, but it can be built with both cabal too. |
Great! Yes, I think it's good idea to denote if it's a stack or cabal project because there "sandbox" or "working" directory has a different structure. Btw, I have not used cabal for a long time since I switched to stack. But cabal 2 should be a big improvement over previous versions of cabal (with cabal I mean cabal-install). Can you explain me the idea of various arguments of the scan command? Also in context of stack vs cabal project. |
Have you read API.md#scan?
Normally you scan project(s) and dependent cabal/sandboxes. (*) But it "detects" build tool (looking for .cabal-sandbox and stack.yaml) and expect corresponding installed modules as dependencies. As a result, if it "detects" stack, it won't use modules from cabal-sandbox, even if you scanned only cabal-sandbox and no stack-work. For now you can't specify which build tool to use, there issue #77 for it. |
Yes, but was not clear, for example difference between Okay, so if I want to scan a Stack project, the most simple solution is to scan the whole project inside the project root is: |
Not sure about
|
Hi! I indend to work on this. Let's continue discussing details on gitter |
Thanks! Do you some specific issues to discuss on gitter? When you have an initial light version developed I will have to integrate it with my plugin so I can test it. |
Well, i don't know how to make it lighter than now (except by removing auto rescan) and meet your requirements :) |
Hereby my proposal.
Hsdev light API
Commands
Project files
Libraries
If you can offer more (detailed) info for library modules and identifiers it would be great!
location
is file path, row and column.target
is stack target,stack ide targets
Remarks
scan
command always has to be run after startinghsdev
server but it would do only the minimal workto get the commands working.
hsdev
is not necessary.hsdev
.hsdev
currently works with starting server, opening socket connection and request/respond json objects is okay.Questions:
hsdev
processes on different ports? One for each IntelliJ project.scan
have to be executed? Only in project rootor for each package?
scan
command. What do flagscabal
andinfer
mean? How doesscan
look like forcabal
projects?The text was updated successfully, but these errors were encountered: