-
-
Notifications
You must be signed in to change notification settings - Fork 391
stuck initializing in atom on mac osx #416
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
Comments
Hi, thanks for the detailed bug report:
|
on osx, i download in chrome, double click in finder (invokes apple's built in
ok, i didn't think that could matter. so now i made the simplest stack project that doesn't include in the original project that did include
so in that case the directory structure is just:
so how do i tell back in my simple project that doesn't include it might be that i've added some incompatible packages to atom in hunting for something that works. should i remove those other than HIE? copy button clipboard: [Enter steps to reproduce:]
Atom: 1.51.0 x64 Stack TraceUncaught TypeError: diagnostic.text.includes is not a function
Commands
Non-Core Packages
|
same results from |
The files at https://github.com/haskell/haskell-language-server/releases/tag/0.4.0 are just gzipped files, not tarballs, so they need to be renamed before they can be used (I ran into the same problem with the linux files). A papercut for new users; installation would be friendlier if they were tar.gz files with the right name inside. |
ok, just removing this isn't what i often get a tooltip that says "haskell-ghc-mod Error: spawn ghc-mod ENOENT" even though it sometimes shows i tried adding some features that use a similar thing happened when i tried using |
Honestly, I think you have way too many haskell related extensions. The errors could be from anywhere. My suggestion is to remove everything except the core HLS extension, but I am not even sure we have that on the Atom marketplace? @bubba can you confirm? |
ok, i guess most of those came from atom haskell, which i think was providing most of what i thought was from HLS. i disabled all except the installation instructions are self-conflicting on whether to install i restarted, and don't see any ide features, the i am amenable to trying VSCode, but would like to try to get atom working first if possible. |
I don't know about these plugins and how they work. BTW, I think you should rename the wrapper to Can you also try to invoke |
can you explain why, since i set up the absolute path in the plugin settings?
do you see in the OP that i originally tried that? or is there a reason to do it again?
is there a separate issue tracker for that? |
Did not see that, sorry, then just forget what I said.
Right, I didn't see it, my apologies. good news, your hls seems to be working, the logs seem good to me.
I don't know how the Atom plugin works or even which of the plugin is the right one :/ I am really not helpful here. |
So that haskell-language-server can use its own config And separate it out from the IdeConfiguration which is separately set by the InitializeRequest message.
@eflister The issue tracker of the atom plugin is https://github.com/Tehnix/ide-haskell-hie/issues maybe you can get more help there |
Old support issue, closing |
Subject of the issue
a little blinking orange light along the bottom of atom says "hie initializing" indefinitely. i don't see any ide features.
Your environment
atom 1.51.0
stack 2.3.3
osx 10.15.6
stack
is on my path, set forlts-16.13
(ghc-8.8.4
)i manually installed a system
ghc 8.8.4
from https://www.haskell.org/ghcup/ to hide an older one on the path. can you use the local one in the stack project instead of the system one? i'm worried that the path to this correctghc
is only added by.bashrc
, which atom may not see, if only bash shells load that... how do i check/fix?[1] https://github.com/haskell/haskell-language-server/releases/download/0.4.0/haskell-language-server-macOS-8.8.4.gz
[2] https://github.com/haskell/haskell-language-server/releases/download/0.4.0/haskell-language-server-wrapper-macOS.gz
unzipped [1] + [2] to
~/.local/bin
(which is on my path) andchmod
to755
. in the finder, the wrapper icon changed to an exe, but the other one remained a generic document, if that is a clue?had to remove
macOS
from the exe cuz manually running the wrapper shows it wasn't expecting themacOS
partosx security tries to block both exe's, have to go either to Security & Privacy preferences or Control-click the app icon, then choose Open from the shortcut menu. then the app is saved as an exception to your security settings
install instructions should include the chmod and renaming and security instructions (or wrapper should try including the
macOS
part)[3] https://atom.io/packages/atom-ide-ui
[4] https://atom.io/packages/ide-haskell-hie
[5] https://atom.io/packages/language-haskell
~/.local/bin/haskell-language-server-wrapper-macOS
, hie wrapper and debugging output are checked[6] https://github.com/Avi-D-coder/implicit-hie
stack new
,stack setup
, used [6]:gen-hie > hie.yaml
haskell-language-server --probe-tools
or
haskell-language-server-wrapper --probe-tools
-why does this one mention ghc 8.10.1? i don't have it...
Which lsp-client do you use
atom
Describe your project (alternative: link to the project)
stack.yaml
Include
package.yaml
standard from
stack new
,stack setup
, added some dependenciesInclude
*.cabal
filesstandard from
stack new
,stack setup
Include
cabal.project
none
Contents of
hie.yaml
used
gen-hie > hie.yaml
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:is it supposed to be called that? the download unzips to
haskell-language-server-macOS-8.8.4
, which i renamed tohaskell-language-server-8.8.4
becausehaskell-language-server-wrapper-macOS
doesn't expect themacOS
part.Debug output:
the failing files are all from this project's local copy of https://github.com/Yuras/pdf-toolbox. the project works fine with stack.
Paste the logs from the lsp-client, e.g. for VS Code
is this supposed to be
/tmp/hie.log
? cuz i only have/tmp/hie-wrapper.log
. no idea why it is mentioningghc 8.4
...i don't see anything when filtering for
hie
in atom's console except one warning:LSP logs:
The text was updated successfully, but these errors were encountered: