emacs-lsp / lsp-dart

lsp-mode :heart: dart
https://emacs-lsp.github.io/lsp-dart
GNU General Public License v3.0
202 stars 25 forks source link

lsp-dart currently seems to be broken on nixos #157

Closed NANASHI0X74 closed 2 years ago

NANASHI0X74 commented 2 years ago

Describe the bug I've started using flutter again after about half a year where I worked with different tools on different things, but now I can't seem to get a working setup for emacs. I've done some experimenting- I've tried to install flutter via nix-env, via environment.systemPackages and via nix-shell with direnv, but none of those options give me a working setup. I've seen two different symptoms datailed below.

To Reproduce Using doom emacs and nixpkgs branch nixos-unstable. (flutter 2.10.1)

scenario one:
scenario two:

let pkgs = import sources.nixpkgs { config.android_sdk.accept_license = true; }; androidSdk = pkgs.androidenv.composeAndroidPackages { buildToolsVersions = [ "29.0.2" ]; platformVersions = [ "31" ]; }; in pkgs.mkShell { buildInputs = with pkgs; [ flutter dart android-studio jdk11 niv androidSdk.platform-tools ];

ANDROID_HOME = "${androidSdk.androidsdk}/libexec/android-sdk"; JAVA_HOME = pkgs.jdk11; }


I'm not setting any .dir-locals.el in either scenario, I've experimented with that a bit without any improvements.

Now in scenario one, the server will appear to start up successfully, but the lsp functionality won't work- if I trigger autocompletion manually, emacs will just indefinitely stall unless i press C-g. in lsp-lg I will find a whole bunch of cancelled commands:

Command "/nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped/bin/cache/dart-sdk/bin/dart /nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped/bin/cache/dart-sdk/bin/snapshots/analysis_server.dart.snapshot --lsp --client-id emacs.lsp-dart --client-version 1.21.0" is present on the path. Command "/nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped/bin/cache/dart-sdk/bin/dart /nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped/bin/cache/dart-sdk/bin/snapshots/analysis_server.dart.snapshot --lsp --client-id emacs.lsp-dart --client-version 1.21.0" is present on the path. Found the following clients for /home/nanashi/Documents/projects/circus/satellite-app/lib/main.dart: (server-id dart_analysis_server, priority 1) The following clients were selected based on priority: (server-id dart_analysis_server, priority 1) Cancelling textDocument/codeAction(4) in hook post-command-hook Cancelling textDocument/codeAction(5) in hook post-command-hook Cancelling textDocument/codeAction(17) in hook post-command-hook Cancelling textDocument/codeAction(18) in hook post-command-hook


in scenario two, these same symptoms happen and additinally there will be frequent errors popping up when switching buffers or running some commands- logs from *Messages* up to the first error:

Loading /home/nanashi/.emacs.d/.local/cache/recentf...done Running direnv in /home/nanashi/Documents/projects/circus/satellite-app/... Direnv succeeded in /home/nanashi/Documents/projects/circus/satellite-app/ Running direnv in /home/nanashi/Documents/projects/circus/satellite-app/... Direnv succeeded in /home/nanashi/Documents/projects/circus/satellite-app/ Note: standard-indent, tab-width, evil-shift-width adjusted to 2 Running direnv in /home/nanashi/Documents/projects/circus/... Direnv succeeded in /home/nanashi/Documents/projects/circus/ LSP :: Guessed project root is ~/Documents/projects/circus LSP :: Connected to [dart_analysis_server:575691/starting]. Wrote /home/nanashi/.emacs.d/.local/cache/undo-tree-hist/.46abdfc584a9754d1b2a22ffe966ba96a06076dc.~undo-tree~.zst Running direnv in /home/nanashi/Documents/projects/circus/satellite-app/... Direnv succeeded in /home/nanashi/Documents/projects/circus/satellite-app/ Error processing message (doom-hook-error change-major-mode-after-body-hook envrc-global-mode-enable-in-buffers (wrong-type-argument sequencep #s(hash-table size 97 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("ANDROID_HOME" "/nix/store/k12ncgasy9zglj2hg723sn18bcn9amzw-androidsdk/libexec/android-sdk" "AR" "ar" "AS" "as" "CC" "gcc" "CONFIG_SHELL" "/nix/store/30j23057fqnnc1p4jqmq73p0gxgn0frq-bash-5.1-p16/bin/bash" "CXX" "g++" "DIRENV_DIFF" "eJzsfVlz3Ta27l9R7Xvf2tzGwAmuOg-eEiuxZcd2OjldqVJhIAEQwwaBLYLkqfPfb21JtiV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-xP_QF3ESsJSNIYcc2rLCn0L7xrk3eK3lmak3oLXS3uDI-VJJHMS_Evu6sThJa1A5p409iL_va-tNnHrd-fNwJ35MhUKCtoTKENfK-QIhpfIGZoikFSmDyrtIRoeJnUFpZ2uUG6Oeo1WMdogUPEU_24BaWhqcltOE_ieWHe6z6p5hb1xBIiKkUusKMfBW8rEVeuF-G7TKeBx_u5MCLXzNPtG5ltIbDHrQMugRI0lE5Q05ZsN2mqWy3pvvT2gLp3S-XrcQJ0eU-gby-BUAAPXoqT-g==" "HOST_PATH" "/nix/store/d9f20a1k36cprzpb8r8c26mzvghcblds-android-studio-stable-2021.1.1.21/bin:/nix/store/pp3vlxwznbb9wqsm706dbxra88kfa1q1-openjdk-11.0.12+7/bin:/nix/store/dyd3rwlc00k45d1gn009s34w5m4362rq-niv-0.2.20-bin/bin:/nix/store/q62g67mgbhjvzbj1fzfwvhiydiynv7ih-platform-tools-31.0.3/bin:/nix/store/mi38zzxcylfc1jwnbbjyln959k1yjl9b-coreutils-9.0/bin:/nix/store/g2ax8hr2vcv74ymdi9i0z898zgwv5qck-findutils-4.9.0/bin:/nix/store/y01pvic7xsg3q05fynbh6mb1d4vqk5bf-diffutils-3.8/bin:/nix/store/4w3fd4s7l967bdplcqn74bf3iq45h4f8-gnused-4.8/bin:/nix/store/pa1hxz0q46giv9zw1bi4205hgzkjnz17-gnugrep-3.7/bin:/nix/store/8cm5s7jjqh2r16bx36shsizpm49mq9hk-gawk-5.1.1/bin:/nix/store/82z93m4mv563fj3m2j9d61cabvidx703-gnutar-1.34/bin:/nix/store/fsfnkwpydb6pb0sdri12fpiynjprczyq-gzip-1.12/bin:/nix/store/9hnz235608afb1z943sh3fd21ngxa7ra-bzip2-1.0.6.0.2-bin/bin:/nix/store/laascnf607s0p98q6n1kk4r0r9922c4l-gnumake-4.3/bin:/nix/store/30j23057fqnnc1p4jqmq73p0gxgn0frq-bash-5.1-p16/bin:/nix/store/8xlgg9jl10gf1mv5mx459wr7x1wpnsnq-patch-2.7.6/bin:/nix/store/74vm0qblviq2rjjyhb26n017wzam1c9b-xz-5.2.5-bin/bin" "IN_LORRI_SHELL" "/home/nanashi/Documents/projects/circus/shell.nix" "IN_NIX_SHELL" "impure" "JAVA_HOME" "/nix/store/pp3vlxwznbb9wqsm706dbxra88kfa1q1-openjdk-11.0.12+7" "LD" "ld" "NIX_BINTOOLS" "/nix/store/c4k3fcsp5cqg9v0rpac9qbqmbkm6a7pk-binutils-wrapper-2.35.2" "NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu" "1" "NIX_BUILD_CORES" "8" "NIX_BUILD_TOP" "/build" "NIX_CC" "/nix/store/4ybkncn05qbhgbdxg9sxdgpm1jpdx76w-gcc-wrapper-10.3.0" "NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu" "1" "NIX_CFLAGS_COMPILE" " -frandom-seed=nzwq6armck -isystem /nix/store/pp3vlxwznbb9wqsm706dbxra88kfa1q1-openjdk-11.0.12+7/include -isystem /nix/store/pp3vlxwznbb9wqsm706dbxra88kfa1q1-openjdk-11.0.12+7/include" "NIX_ENFORCE_NO_NATIVE" "1" "NIX_HARDENING_ENABLE" "fortify stackprotector pic strictoverflow format relro bindnow" "NIX_INDENT_MAKE" "1" "NIX_LDFLAGS" "-rpath /nix/store/nzwq6armck6dqi6x9srwlyjs8d9raqkl-lorri-keep-env-hack-nix-shell/lib64 -rpath /nix/store/nzwq6armck6dqi6x9srwlyjs8d9raqkl-lorri-keep-env-hack-nix-shell/lib " "NIX_LOG_FD" "2" "NIX_STORE" "/nix/store" "NM" "nm" "OBJCOPY" "objcopy" "OBJDUMP" "objdump" "PATH" "/nix/store/6d4bp009bcmz5afl9n7w7niycqi3m0rm-patchelf-0.14.5/bin:/nix/store/4ybkncn05qbhgbdxg9sxdgpm1jpdx76w-gcc-wrapper-10.3.0/bin:/nix/store/2dll4xl0xn13anzfxk0pbjr209s6rwhx-gcc-10.3.0/bin:/nix/store/y2d88myw5v33mwrz13rgnjgx23rs26p6-glibc-2.34-115-bin/bin:/nix/store/mi38zzxcylfc1jwnbbjyln959k1yjl9b-coreutils-9.0/bin:/nix/store/c4k3fcsp5cqg9v0rpac9qbqmbkm6a7pk-binutils-wrapper-2.35.2/bin:/nix/store/cimp3vp40msz4afq1c3602p2rn9bff0d-binutils-2.35.2/bin:/nix/store/d9f20a1k36cprzpb8r8c26mzvghcblds-android-studio-stable-2021.1.1.21/bin:/nix/store/pp3vlxwznbb9wqsm706dbxra88kfa1q1-openjdk-11.0.12+7/bin:/nix/store/dyd3rwlc00k45d1gn009s34w5m4362rq-niv-0.2.20-bin/bin:/nix/store/q62g67mgbhjvzbj1fzfwvhiydiynv7ih-platform-tools-31.0.3/bin:/nix/store/mi38zzxcylfc1jwnbbjyln959k1yjl9b-coreutils-9.0/bin:/nix/store/g2ax8hr2vcv74ymdi9i0z898zgwv5qck-findutils-4.9.0/bin:/nix/store/y01pvic7xsg3q05fynbh6mb1d4vqk5bf-diffutils-3.8/bin:/nix/store/4w3fd4s7l967bdplcqn74bf3iq45h4f8-gnused-4.8/bin:/nix/store/pa1hxz0q46giv9zw1bi4205hgzkjnz17-gnugrep-3.7/bin:/nix/store/8cm5s7jjqh2r16bx36shsizpm49mq9hk-gawk-5.1.1/bin:/nix/store/82z93m4mv563fj3m2j9d61cabvidx703-gnutar-1.34/bin:/nix/store/fsfnkwpydb6pb0sdri12fpiynjprczyq-gzip-1.12/bin:/nix/store/9hnz235608afb1z943sh3fd21ngxa7ra-bzip2-1.0.6.0.2-bin/bin:/nix/store/laascnf607s0p98q6n1kk4r0r9922c4l-gnumake-4.3/bin:/nix/store/30j23057fqnnc1p4jqmq73p0gxgn0frq-bash-5.1-p16/bin:/nix/store/8xlgg9jl10gf1mv5mx459wr7x1wpnsnq-patch-2.7.6/bin:/nix/store/74vm0qblviq2rjjyhb26n017wzam1c9b-xz-5.2.5-bin/bin:/nix/store/zxlj6dk9jpqkzv6wjg5h9wy4w94fllj5-flutter-2.10.1/bin/flutter:/home/nanashi/go/flink/bin:/home/nanashi/go/bin:/run/wrappers/bin:/home/nanashi/.config/emacs/bin:/nix/store/7f1ykh0iwhv0vcwglh1ldx519mry7cq6-source/bin:/home/nanashi/.local/bin:/home/nanashi/.nix-profile/bin:/etc/profiles/per-user/nanashi/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin" "RANLIB" "ranlib" "READELF" "readelf" "SIZE" "size" "SOURCE_DATE_EPOCH" "315532800" "STRINGS" "strings" "STRIP" "strip" "XDG_DATA_DIRS" "/nix/store/6d4bp009bcmz5afl9n7w7niycqi3m0rm-patchelf-0.14.5/share:/nix/store/0a28dc50jngrkzjd354j4sr363smx60l-emacs-pgtk-native-comp-20220424.0/share:/nix/store/rcdf9lkqwspdan64dib5axbgjxvczgi7-gtk+3-3.24.33/share/gsettings-schemas/gtk+3-3.24.33:/nix/store/xa78rg0d7k1y7ijgcjfvhadz80m6v04a-gsettings-desktop-schemas-42.0/share/gsettings-schemas/gsettings-desktop-schemas-42.0:/nix/store/0a28dc50jngrkzjd354j4sr363smx60l-emacs-pgtk-native-comp-20220424.0/share/gsettings-schemas/emacs-pgtk-native-comp-20220424.0:/nix/store/i8vagl17rdsckk3npz9zfzny5d4spmv8-konsole-21.12.3/share:/nix/store/z25gy8m3bzr3wpprrrwzpdhx8vrjwj5j-knewstuff-5.93.0/share:/nix/store/dj1vw5gp20wajjib6lwmpdzlp3gn449k-kpackage-5.93.0/share:/nix/store/zrl1pav0nfa7vzq8jypib5ax4w5dma1f-kpackage-5.93.0-bin/share:/nix/store/xla2811i11mf0k21cci65x7vch1cw0qm-kirigami2-5.93.0/share:/nix/store/riyi17ppw3n62npfqlw4ghwrwki5c88a-kpty-5.93.0/share:/nix/store/vpdissf0f6lpdf7ll3rl1hc01aw89gd7-kparts-5.93.0/share:/nix/store/3isrqcyj31mrz7j2fx8x3invh39vwri7-kparts-5.93.0-bin/share:/nix/store/pxkps4msfv9xq2aigh3q4yf22vyfai6i-knotifyconfig-5.93.0/share:/nix/store/hf3zfdjn6aym8b4yikdi8v2g7la8d5a8-kinit-5.93.0/share:/nix/store/is0s0i6zr5cywhgyd7rsic7v95jmx30a-kwallet-5.93.0/share:/nix/store/7r2arnm80h8amdky49bqv83nibv1cr37-kwallet-5.93.0-bin/share:/nix/store/8i0b1jmhk8pi0flbdzk6b0mizxmcijcj-knotifications-5.93.0/share:/nix/store/00rgv0xcc73bl4p2mfpp4mjkj9nyjhdp-kded-5.93.0/share:/nix/store/pwgq761pj40kpr389wq3nyd27xxv5v1r-solid-5.93.0/share:/nix/store/q83wxf2nhg7smhkcfv2490xq3b7vmabz-kjobwidgets-5.93.0/share:/nix/store/yqlg5n6s1k70p9hfkxzjiciynl0dz4im-kjobwidgets-5.93.0-bin/share:/nix/store/3ir2jf0w40sg3kmq0xpd01nknx6l3008-kio-5.93.0/share:/nix/store/i2a1vnnrw6qxx10mdl18z4g9akn68pw0-knotifications-5.93.0-bin/share:/nix/store/cr18k5rwh5qzmhzgcynxx4dfcr2fx54q-phonon-4.11.1/share:/nix/store/q11wi990igca3wgv3gwg987rgj2r7rml-kbookmarks-5.93.0/share:/nix/store/fqiash1f688kzsjzwwi601dlr2lqd68r-kxmlgui-5.93.0/share:/nix/store/z9hq3s04zc0svsc75q36fq2q0nkzi0f4-ktextwidgets-5.93.0/share:/nix/store/b9vkrhq5fzg26861izfkrr57mbhsihl6-sonnet-5.93.0/share:/nix/store/wmir2h6jkbd50qhd1zdzshv9lbhcv0zl-kservice-5.93.0/share:/nix/store/v933mr99gyywd14ph4vsdnvwmdqmpbbd-kservice-5.93.0-bin/share:/nix/store/iaiad5jzjixa90d9dlkkaldrdbr2rdp6-kdbusaddons-5.93.0/share:/nix/store/p1h2f7zw4rk1p6kypnghbvqphw20ij23-kiconthemes-5.93.0/share:/nix/store/p2bid2iszxqazcw4siph1glq52882pww-kcoreaddons-5.93.0/share:/nix/store/2wsisjzpxksclcji3jhnc866lb5vlgxr-kcoreaddons-5.93.0-bin/share:/nix/store/38h3qhdpfm50qi8psdcs3100sdn16ybn-kconfig-5.93.0/share:/nix/store/4s1dz5f9d8vsh7g4b53vkrbz26pkn2sl-kcodecs-5.93.0/share:/nix/store/7cj344wsqqf28q8afcsm1jscfnxb20xn-kcompletion-5.93.0/share:/nix/store/ac267flmnq7qlb824diq0wp94xryf5xv-kglobalaccel-5.93.0/share:/nix/store/1q90cgdhypjc77fqf07s4kkkkhvzvs3g-kwindowsystem-5.93.0/share:/nix/store/c1vrbqyjajlbqgxv3rlzjad853i5csc0-kitemviews-5.93.0/share:/nix/store/64a6n18hr0v3kxqns6z74l620vlygjw8-kconfigwidgets-5.93.0/share:/nix/store/c91vhh4n59vcaj1xnjmpjjjyqv4nc31s-kguiaddons-5.93.0/share:/nix/store/kv3i3izijrx99pgkdvh51iqsfi33zfbz-kauth-5.93.0/share:/nix/store/kqsxyd91rr7s9q8gjbf6jy7dyn824lp8-kwidgetsaddons-5.93.0/share:/nix/store/n90m1s9n17515a19qlld410mg62sybw6-flex-2.6.4/share:/nix/store/rx67b9jkvccaz9bqj8xgp6ivyf3wipsf-gnum4-1.4.19/share:/nix/store/as8ys2cvb1bmh1pz5ciwmpn76cz0cl0m-bison-3.8.2/share:/nix/store/wwgy165n54hn09xsp75zpkji47mh8zzl-kdoctools-5.93.0/share:/nix/store/3n8vmi76r0qyjirl73xjpj71xjzcafb1-ki18n-5.93.0/share:/nix/store/d1v8fyb6kn7pxh7f0yf3m6g2bks0vi5a-fontconfig-2.13.94-lib/share:/nix/store/nbh44x952xhivydhgi5a7bgvnb6l35b1-systemd-250.4/share:/nix/store/abwcp8fsvrign29hrqrha5psz8kkc4rx-glib-2.72.0/share:/nix/store/8iyqbjrrx3nsdah36wsk8q1bia7g5xfg-gettext-0.21/share:/nix/store/gg31hi3cfvlxs8q2i1s3wlsqqr9mcq8g-dbus-1.12.20/share:/nix/store/6nxwywsxqjfjs19m721xnzhabmpn766w-kded-5.92.0/share:/nix/store/9bvfvaahj8cxij9gb8n9scz9nqah1phg-gtk+3-3.24.33/share/gsettings-schemas/gtk+3-3.24.33:/nix/store/chywfp3sbcaglnj3q1fh7rk2krgim4kx-gsettings-desktop-schemas-42.0/share/gsettings-schemas/gsettings-desktop-schemas-42.0:/nix/store/jwhw4p0rfx8c6a9zbab4kgn4va8la44c-kservice-5.92.0/share:/nix/store/8k4bk1g2yaqh0aq9lkzvicqsjkn2nz6b-kservice-5.92.0-bin/share:/nix/store/j32r94hd4ybrzcqb58vkhzjr4pa15j91-kdbusaddons-5.92.0/share:/nix/store/qrdyaxgy4w0fwsfvikhrpf7bqyfdrg2i-kwindowsystem-5.92.0/share:/nix/store/pind2ph2hr1bhhx2sc2hpplhhspm7sd5-kcoreaddons-5.92.0/share:/nix/store/gwd095qkwlyksnxp8whkr9y0ipwj46hi-kcoreaddons-5.92.0-bin/share:/nix/store/jpb0v5dx6d78z2v69v3v78gx1wsw22ji-kconfig-5.92.0/share:/nix/store/chywfp3sbcaglnj3q1fh7rk2krgim4kx-gsettings-desktop-schemas-42.0/share:/nix/store/z4d46s8nskdngrivf4dw2va31vzx0m1n-flex-2.6.4/share:/nix/store/fj96j7nb2rvl42kvsqbmcr2bkvdw7ic8-gnum4-1.4.19/share:/nix/store/v0z5mxvd70jiy31548zzf9sfxvwkwn7a-bison-3.8.2/share:/nix/store/9bvfvaahj8cxij9gb8n9scz9nqah1phg-gtk+3-3.24.33/share:/nix/store/w9fv80220n0y5lb32vbsfx8gj9rsgycg-kdoctools-5.92.0/share:/nix/store/lpny2g53svy5hvqrk1g05678y1ih5ayw-ki18n-5.92.0/share:/nix/store/zcjja5yd97dgnnh3qwanbsra8xsavcgw-fontconfig-2.13.94-lib/share:/nix/store/4sjmk6209x5c6ns3b7193qpq03r7m8wv-systemd-250.4/share:/nix/store/3ma88r781fvsjiakwyfh95mzy7k19jac-glib-2.72.0/share:/nix/store/1ynaiiirnxqn8s62haws8i1b46b5v62j-gettext-0.21/share:/nix/store/bwhpkgcxcfscp5vnh9fwfvjwnra3wvdk-dbus-1.12.20/share:/nix/store/akkxg3yqjrk9by4aijh4gbi7kp3glvmi-plasma-workspace-5.24.4/share:/nix/store/afmvj5gi99aknrb50w915riwyybn58jh-pipewire-0.3.49-lib/share:/nix/store/a1s6l7jhynkg123mcng6ix7k327gj0x1-appstream-qt-0.15.2/share:/nix/store/mmn3m4gz2h44yhj1x3armri9y6s6h808-kholidays-5.92.0/share:/nix/store/0fijhhxcw8ify8a771fh4ig277aybgyv-networkmanager-1.36.4/share:/nix/store/8hbh2is8zw6lqmgfp7ax9vwc6xhkwwmv-gnutls-3.7.3/share:/nix/store/md0270fbs6ybsy61jmlnnsb1190clr9h-libqalculate-4.1.1/share:/nix/store/chqa7mhpr0km887r3y68b6a7pxw7kjim-libksysguard-5.24.4/share:/nix/store/l9mfa7cgc30qx573abvlc54jhkjzlhcm-libksysguard-5.24.4-bin/share:/nix/store/jqbvmsm5n06p0aj59qs0zp4sqz1bw9mr-libkscreen-5.24.4/share:/nix/store/c56ll4r2kx2m59mac3dl35pif9kh9jm6-kxmlrpcclient-5.92.0/share:/nix/store/lkdh68zm6dsnfjll8vcppga0f5jv7wfk-kwin-5.24.4/share:/nix/store/49w2fm0siid3fld0r451lkxlncs4b2j3-breeze-qt5-5.24.4/share:/nix/store/gk8f77nzjjnwbjm7ykminfawqwxii9vc-kdecoration-5.24.4/share:/nix/store/q2maa4xp8lmhp4aas04a8q6p42imglk8-breeze-qt5-5.24.4-bin/share:/nix/store/d6yd0ijkfwzj9fcvvyprwcwmswqs038y-frameworkintegration-5.92.0-bin/share:/nix/store/fl7amgp85gy26cgs0ql3mwdy3lqmiai0-ktexteditor-5.92.0/share:/nix/store/a3vb88krch2krzv4xwhnf0i72rnrq313-ktexteditor-5.92.0-bin/share:/nix/store/4xcvrkkdb8klaqd5ilg8zy23l0y8zn80-syntax-highlighting-5.92.0/share:/nix/store/zrmysrxjqq865spr1r6y5dj35bfxm3p9-kscreenlocker-5.24.4/share:/nix/store/i3pvd59sv5p7b1fmb4m3z08r86aan8cl-krunner-5.92.0-bin/share:/nix/store/f6drrx69xn31q39xq5cqhc8chvd1hk0y-plasma-framework-5.92.0/share:/nix/store/vclbrcmm3w46y39ra8q5mfx73bhplwih-plasma-framework-5.92.0-bin/share:/nix/store/kmslp2k4g04vkaih8vq912m80bw8cql8-kpeople-5.92.0/share:/nix/store/331z8yd0p3bjmcrazbimmhl44zx767v0-kpeople-5.92.0-bin/share:/nix/store/a8vrnwg9hvpzl7j2g6pmbr22m9hxqch7-knotifyconfig-5.92.0/share:/nix/store/vm5kypdbk9zjmnk11mcvxw9gkw0cwf0x-knewstuff-5.92.0/share:/nix/store/c9vrm0a4ydjzgf7db7dxkmsjz2zg2j4i-kirigami2-5.92.0/share:/nix/store/c3c29dhsf2a6glk2qwvp9zij8sydd11s-kjsembed-5.92.0/share:/nix/store/9wkhlfs222c6m6g5kyx62g39bryimj1p-kdesu-5.92.0/share:/nix/store/58szscpjja4j976wm3qji6rz6w6sfx9i-kpty-5.92.0/share:/nix/store/h3cjmr261ncw6bgfhkpzj29cdrz052rd-kdelibs4support-5.92.0/share:/nix/store/bvc9sq6ah9xvg7qxr702njgjr043dxvw-kunitconversion-5.92.0/share:/nix/store/c37inw0kg9y05xcnsqqmsb5icm93s39z-kparts-5.92.0/share:/nix/store/b4z58d9i1nq05xplkb22lyyjkz2r2d5w-kparts-5.92.0-bin/share:/nix/store/9hhp961mpiaxr38h9xdjnynzka7ci5hd-kinit-5.92.0/share:/nix/store/315ivdg71cbqabgl1cq80msjgzd9crwn-kemoticons-5.92.0-bin/share:/nix/store/2wnd242srh7h06b10dzynmm0b71qrjzm-kdesignerplugin-5.92.0/share:/nix/store/czjsb8mr60w1sw30i4psk50ck5972vgb-kcmutils-5.92.0/share:/nix/store/k8yh9h6v6qmbbdzzj7b3d95zhgnrjg32-kcmutils-5.92.0-bin/share:/nix/store/fqc9218irhg57qcax1033pylcj192pzx-kdeclarative-5.92.0/share:/nix/store/z71baghym7xfp9wlcpb66iw8gp55hsc5-kpackage-5.92.0/share:/nix/store/svskx6hqp0r24v5b8whirlvz7h5f3h7r-kpackage-5.92.0-bin/share:/nix/store/vfy8hwxyy5q8dxn2a3m5w4sdsh5x40g4-baloo-5.92.0/share:/nix/store/lgfgykz5s0r5gi05m14g21csdpcdl4nb-kwallet-5.92.0/share:/nix/store/nc9ibxq71inh5ia8r256yinvs0h9vajq-kwallet-5.92.0-bin/share:/nix/store/bb0w92y47114yb95lf4h96blqj8c765n-knotifications-5.92.0/share:/nix/store/r57chbqz2rmgkg8vczl93iphjkq2ljjv-solid-5.92.0/share:/nix/store/bndq9hsw3mhr5nw0zwdsa2k2gwg6395y-kjobwidgets-5.92.0/share:/nix/store/4z3g9an288xpwvxnzvz580k12323n8y1-kjobwidgets-5.92.0-bin/share:/nix/store/x4x43fqdwjmbgqfwqfshwkvyp5i7bc97-kbookmarks-5.92.0/share:/nix/store/x2hcw2q8f6wrbzhzij2fzjf0yi24yfm9-kxmlgui-5.92.0/share:/nix/store/yl2w1wzcbs1kh3wrdycy7q9c9nspqyif-ktextwidgets-5.92.0/share:/nix/store/54xs5wd50h71q5aim8r2zrhic0vs0rmk-sonnet-5.92.0/share:/nix/store/76w5sggmvhw1yh5v4frk7pvz1c38w1k4-kiconthemes-5.92.0/share:/nix/store/klig6i6dan8frf5zmdia5hkj64k7qyvh-kcodecs-5.92.0/share:/nix/store/fc7086lib63rq50w2zh8s73x6d1anyqq-kio-5.92.0/share:/nix/store/zy6sjifqljnqv60k7wn5sdza453j640y-knotifications-5.92.0-bin/share:/nix/store/p4bkzj16rbkh0rlc5nvdjzgrr1xkbr4r-phonon-4.11.1/share:/nix/store/52nys0c55rbqfcjqhybb46v21vdiwcql-kcompletion-5.92.0/share:/nix/store/k82pj27snwc9rabqxv811w2c3zqmxaim-kglobalaccel-5.92.0/share:/nix/store/f9ra2s8pq9x4c02000k5smm9mcdcd3sd-kitemviews-5.92.0/share:/nix/store/g8xhkpd58ghb7rj49f4c946vlf3vmlhf-kconfigwidgets-5.92.0/share:/nix/store/bibjbqr6msgmlcs4i29n6bp0fihcll74-kguiaddons-5.92.0/share:/nix/store/5lz6zrjha5ldhfl9axqqdlryx54lpdas-kwidgetsaddons-5.92.0/share:/nix/store/lx2mcp80cqs1wqcr7q1lld6i91zd7d96-kauth-5.92.0/share:/nix/store/b6m6gdzxk12ypd27gi720q7zpzhbalhr-kfilemetadata-5.92.0/share:/nix/store/nrf2rd9wjk4xxfg2am9ayy2nh59v9lvx-linux-pam-1.5.2/share:/nix/store/pwkirlr0qih9h8i5zsy1pb34jq6lw98v-iso-codes-4.9.0/share:/nix/store/7ay9hi283cj78awxn72g1spl405c4yzf-desktops/share:/home/nanashi/.nix-profile/share:/etc/profiles/per-user/nanashi/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share" "allowSubstitutes" "" "buildInputs" "/nix/store/d9f20a1k36cprzpb8r8c26mzvghcblds-android-studio-stable-2021.1.1.21 /nix/store/pp3vlxwznbb9wqsm706dbxra88kfa1q1-openjdk-11.0.12+7 /nix/store/dyd3rwlc00k45d1gn009s34w5m4362rq-niv-0.2.20-bin /nix/store/q62g67mgbhjvzbj1fzfwvhiydiynv7ih-platform-tools-31.0.3" "buildPhase" "echo \"------------------------------------------------------------\" >>$out echo \" WARNING: the existence of this path is not guaranteed.\" >>$out echo \" It is an internal implementation detail for pkgs.mkShell.\" >>$out echo \"------------------------------------------------------------\" >>$out echo >> $out

Record all build inputs as runtime dependencies

export >> $out " "builder" "/nix/store/i7364jq734wvvkmywzh62ba92wbriap8-lorri-runtime-tools/bin/bash" "configureFlags" "" "depsBuildBuild" "" "depsBuildBuildPropagated" "" "depsBuildTarget" "" "depsBuildTargetPropagated" "" "depsHostHost" "" "depsHostHostPropagated" "" "depsTargetTarget" "" "depsTargetTargetPropagated" "" "doCheck" "" "doInstallCheck" "" "extraClosure" "/nix/store/04i3wig7i7bn32lg9ld2v7vv9dvyc5xy-acl-2.3.1 /nix/store/29zbzs76g8xky38g4d1pf54awwal1k47-bash-5.1-p16-man /nix/store/30j23057fqnnc1p4jqmq73p0gxgn0frq-bash-5.1-p16 /nix/store/6w8g7njm4mck5dmjxws0z1xnrxvl81xa-glibc-2.34-115 /nix/store/dgpfbg2pykka81v94wka6ck9vi6dffa5-libidn2-2.3.2 /nix/store/gs5yll0jabliajg4ds0bfvy73mjsirxd-libunistring-0.9.10 /nix/store/i7364jq734wvvkmywzh62ba92wbriap8-lorri-runtime-tools /nix/store/jxa3q3dyb97fjb2z4mkm6mld57sripdb-attr-2.5.1 /nix/store/mi38zzxcylfc1jwnbbjyln959k1yjl9b-coreutils-9.0" "name" "lorri-keep-env-hack-nix-shell" "nativeBuildInputs" "" "origArgs" "-e /nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh" "origBuilder" "/nix/store/30j23057fqnnc1p4jqmq73p0gxgn0frq-bash-5.1-p16/bin/bash" "origExtraClosure" "" "origOutputs" "out" "origPATH" "" "origSystem" "x86_64-linux" "out" "/nix/store/nzwq6armck6dqi6x9srwlyjs8d9raqkl-lorri-keep-env-hack-nix-shell" "outputs" "out" "patches" "" "phases" "buildPhase" "preHook" "" "preferLocalBuild" "1" "propagatedBuildInputs" "" "propagatedNativeBuildInputs" "" "shell" "/nix/store/30j23057fqnnc1p4jqmq73p0gxgn0frq-bash-5.1-p16/bin/bash" "shellHook" "" "stdenv" "/nix/store/83l8wwrx7xs3mh9sbbj6whmyx8y4cz36-stdenv-linux" "strictDeps" "" "system" "x86_64-linux")))).

this might be an issue with direnv, rather than lsp-dart. But Previously when I didn't have flutter installed system-wide, the extremely long error line above contained a `flutter not fund` error, so I thought that had to do with lsp-dart not finding the sdk.
That's not the issue though, as even without any dir locals, lsp-dart seems to find the correct sdk dirs:

(lsp-dart-get-sdk-dir) yields "/nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped" (lsp-dart-get-flutter-sdk-dir) yields "/nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped/bin/cache/dart-sdk"


**Expected behavior**
ide features work 🙃

**Version**
Include here the result of: <kbd>M-x</kbd> `lsp-dart-version`

[LSP Dart] 1.21.0 at 2022.04.24 @ Emacs 29.0.50 [Dart SDK] Dart SDK version: 2.16.1 (stable) (Tue Feb 8 12:02:33 2022 +0100) on "linux_x64"

[Flutter SDK] /nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped [Flutter project] true [Project entrypoint] /home/nanashi/Documents/projects/circus/satellite-app/lib/main.dart


doom versions:

GNU Emacs v29.0.50 66ad6564a22e013b3f4091ba851b7a115b5970a4 Doom core v3.0.0-dev HEAD -> master 65ff2636 2022-04-22 23:36:05 +0200 Doom modules v22.04.0-dev HEAD -> master 65ff2636 2022-04-22 23:36:05 +0200

ericdallo commented 2 years ago

I'm a NixOS/doom user as well and can assure they work pretty well, this seems to be a not lsp-dart related issue as the flutter SDK is found. Also you can check doom is throwing some exception not related to lsp-dart, try M-x toggle-debug-on-error and repro the issue, a stacktrace will appear

NANASHI0X74 commented 2 years ago

do you use direnv or how did you install flutter? I've been trying to debug this for most of today and I'm kind of under pressure

NANASHI0X74 commented 2 years ago

it gives me a stacktrace only if I manually run M-x dart-mode, not when I open a buffer. But the stacktrace is:

Debugger entered--Lisp error: (wrong-type-argument sequencep #<hash-table equal 76/97 0x14de295>)
  envrc--merged-environment(("KONSOLE_DBUS_WINDOW=/Windows/1" "DOTFILES=/nix/store/7f1ykh0iwhv0vcwglh1ldx519mry7c..." "EMACSLOADPATH=" "QT_PLUGIN_PATH=/nix/store/i8vagl17rdsckk3npz9zfzny..." "KDE_APPLICATIONS_AS_SCOPE=1" "PATH=/nix/store/zxlj6dk9jpqkzv6wjg5h9wy4w94fllj5-f..." "LIBEXEC_PATH=/home/nanashi/.nix-profile/lib/libexe..." "KDE_FULL_SESSION=true" "XDG_DATA_DIRS=/nix/store/0a28dc50jngrkzjd354j4sr36..." "XCURSOR_THEME=breeze_cursors" "QT_AUTO_SCREEN_SCALE_FACTOR=0" "KDEDIRS=/home/nanashi/.nix-profile:/etc/profiles/p..." "XDG_RUNTIME_DIR=/run/user/1000" "MOZ_PLUGIN_PATH=/home/nanashi/.nix-profile/lib/moz..." "TERMINFO_DIRS=/home/nanashi/.nix-profile/share/ter..." "QML2_IMPORT_PATH=/nix/store/9li2vmj1493rfh1v8ivvkv..." "LESSKEYIN_SYSTEM=/nix/store/zir63bp4mp0v6fikszs4qd..." "LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/l..." "XDG_SESSION_ID=5" "XDG_VTNR=7" "QTWEBKIT_PLUGIN_PATH=/home/nanashi/.nix-profile/li..." "PAGER=less" "PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket" "KDE_SESSION_VERSION=5" "TZDIR=/etc/zoneinfo" "COLORFGBG=15;0" "DOTFILES_BIN=/nix/store/7f1ykh0iwhv0vcwglh1ldx519m..." "LESSOPEN=|/nix/store/vk6msgpnmrzmq8ns01nb2pyhqvq8k..." "GTK_PATH=/home/nanashi/.nix-profile/lib/gtk-2.0:/h..." "XDG_DESKTOP_PORTAL_DIR=/nix/store/da1w2kxlvrzhavlk..." "XDG_SESSION_CLASS=user" "INFOPATH=/home/nanashi/.nix-profile/info:/home/nan..." "NIX_USER_PROFILE_DIR=/nix/var/nix/profiles/per-use..." "emacsWithPackages_siteLisp" "XDG_CACHE_HOME=/home/nanashi/.cache" "KDE_SESSION_UID=1000" "KONSOLE_VERSION=211203" "XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat..." "GIO_EXTRA_MODULES=/nix/store/h1ywjfgv29l3hhh0q573j..." "PROFILEHOME=" "KONSOLE_DBUS_SESSION=/Sessions/1" "ASPELL_CONF=dict-dir /etc/profiles/per-user/nanash..." "KONSOLE_DBUS_SERVICE=:1.611" "XDG_CURRENT_DESKTOP=KDE" "NIXOS_OZONE_WL=1" "LANG=en_GB.utf8" "SSH_ASKPASS=/nix/store/hxm4l7ypl7q14zqiigqfp6n0rgc..." "GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/nanashi/.gt..." "emacsWithPackages_siteLispNative" "NIXPKGS_CONFIG=/etc/nix/nixpkgs-config.nix" ...) #<hash-table equal 76/97 0x14de295>)
  envrc--apply(#<buffer main.dart> #<hash-table equal 76/97 0x14de295>)
  envrc--update()
  #<subr envrc-mode>(1)
  apply(#<subr envrc-mode> 1)
  envrc-mode(1)
  envrc-global-mode-enable-in-buffers()
  funcall(envrc-global-mode-enable-in-buffers)
  (condition-case e (funcall hook) ((debug error) (signal 'doom-hook-error (list hook e))))
  doom-run-hook(envrc-global-mode-enable-in-buffers)
  run-hook-wrapped(doom-run-hook envrc-global-mode-enable-in-buffers)
  (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp (car (cdr e))) (symbol-name (car (cdr e))) (car (cdr e))) (car (cdr (cdr e))))) (signal 'doom-hook-error (cons hook (cdr e)))))
  (let ((hook (car --dolist-tail--))) (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp (car ...)) (symbol-name (car ...)) (car (cdr e))) (car (cdr (cdr e))))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (while --dolist-tail-- (let ((hook (car --dolist-tail--))) (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp ...) (symbol-name ...) (car ...)) (car (cdr ...)))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
  (let ((--dolist-tail-- hooks)) (while --dolist-tail-- (let ((hook (car --dolist-tail--))) (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if ... ... ...) (car ...))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--)))))
  doom-run-hooks(change-major-mode-after-body-hook prog-mode-hook dart-mode-hook)
  apply(doom-run-hooks (change-major-mode-after-body-hook prog-mode-hook dart-mode-hook))
  run-hooks(change-major-mode-after-body-hook prog-mode-hook dart-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook prog-mode-hook dart-mode-hook))
  run-mode-hooks(dart-mode-hook)
  dart-mode()
  funcall-interactively(dart-mode)
  command-execute(dart-mode record)
  execute-extended-command(nil "dart-mode" #("dart" 0 4 (ws-butler-chg chg)))
  funcall-interactively(execute-extended-command nil "dart-mode" #("dart" 0 4 (ws-butler-chg chg)))
  command-execute(execute-extended-command)
ericdallo commented 2 years ago

I installed flutter from nixpkgs flutter derivation, but from the stacktrace it doesn't related with flutter or lsp-dart, you can check that the stack says something about (envrc-global-mode-enable-in-buffers), you can probably repro that if you M-x eval-expression (envrc-global-mode-enable-in-buffers)

NANASHI0X74 commented 2 years ago

Actually, that error happens only in the scenario two I described. That I'll have to fix somehow too, but I believe there's also a separate issue to do with just lsp-dart. When I type C-M-i to trigger autocompletion while in insert mode in a dart file, I will get this error:

Debugger entered--Lisp error: (error "Timeout while waiting for response.  Method: textD...")
  error("Timeout while waiting for response.  Method: %s" "textDocument/completion")
  lsp-request("textDocument/completion" (:textDocument (:uri "file:///home/nanashi/Documents/projects/satellite-...") :position (:line 52 :character 6) :context #<hash-table equal 1/65 0x1d8c1cd>))
  lsp-request-while-no-input("textDocument/completion" (:textDocument (:uri "file:///home/nanashi/Documents/projects/satellite-...") :position (:line 52 :character 6) :context #<hash-table equal 1/65 0x1d8c1cd>))
  #f(compiled-function () #<bytecode -0x1e3720d108678789>)()
  #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>)("" nil t)
  completion-pcm--all-completions("" (point) #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>) nil)
  completion-basic-all-completions("" #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>) nil 0)
  lsp-completion-passthrough-all-completions("" #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>) nil 0)
  #f(compiled-function (style) #<bytecode 0x1454d5f391ae6441>)(lsp-passthrough)
  completion--some(#f(compiled-function (style) #<bytecode 0x1454d5f391ae6441>) (lsp-passthrough orderless))
  completion--nth-completion(2 "" #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>) nil 0 nil)
  #<subr completion-all-completions>("" #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>) nil 0 nil)
  apply(#<subr completion-all-completions> ("" #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>) nil 0))
  completion-all-completions("" #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>) nil 0)
  consult-completion-in-region(#<marker at 2266 in main.dart> 2266 #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>) nil)
  apply(consult-completion-in-region (#<marker at 2266 in main.dart> 2266 #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>) nil))
  (closure (t) (&rest args) (apply (if vertico-mode #'consult-completion-in-region #'completion--in-region) args))(#<marker at 2266 in main.dart> 2266 #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>) nil)
  completion-in-region(#<marker at 2266 in main.dart> 2266 #f(compiled-function (probe pred action) #<bytecode -0xf78752e3f7d7ac7>) nil)
  completion-at-point()
  complete-symbol(nil)
  funcall-interactively(complete-symbol nil)
  command-execute(complete-symbol)
NANASHI0X74 commented 2 years ago

so the command to the dart lsp server times out. Any idea how to debug that? 😅

NANASHI0X74 commented 2 years ago

thanks for responding so quickly btw ❤️ and also thanks for your contributions to lsp-dart, nixpkgs dart/flutter and doom. I'm aware that you maintain all of those except for nixpkgs dart

ericdallo commented 2 years ago

Right, that stack is related to lsp indeed, first we need to know if lsp is connected successfully, what lsp-describe-session tells you? also, there is more info here

NANASHI0X74 commented 2 years ago

well, there's a server running. -[-] dart_analysis_server:12237 Curiously, it seems like lsp-dart is actually starting two servers- log from Messages buffer: LSP :: Guessed project root is ~/Documents/projects/satellite-app

LSP :: Connected to [dart_analysis_server:12237/starting].
Running direnv in /home/nanashi/Documents/projects/satellite-app/...
Direnv succeeded in /home/nanashi/Documents/projects/satellite-app/
LSP :: dart_analysis_server:12237 initialized successfully in folders: (/home/nanashi/Documents/projects/satellite-app)

There's also two processes running which I can see with ps -ax|grep emacs:

12237 ?        Ssl    0:16 /nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped/bin/cache/dart-sdk/bin/dart /nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped/bin/cache/dart-sdk/bin/snapshots/analysis_server.dart.snapshot --lsp --client-id emacs.lsp-dart --client-version 1.21.0
12256 pts/1    Sl+    0:00 /nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped/bin/cache/dart-sdk/bin/dart --disable-dart-dev --packages=/nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped/packages/flutter_tools/.packages /nix/store/n2xf2zn9yc9awqmrg0r2zdpl9bx25z0a-flutter-2.10.1-unwrapped/bin/cache/flutter_tools.snapshot daemon
ericdallo commented 2 years ago

That is expected, lsp-dart launches a flutter daemon in background to listen to devices connected to debug. Just to make sure, check your project roots with M-x lsp-workspace-folders-remove and lsp again if removed any wrong folder.

NANASHI0X74 commented 2 years ago

ok, yes, the project root is correct:

[-] /home/nanashi/Documents/projects/satellite-app
 `-[-] dart_analysis_server:15129

I removed the wrong root /home/nanashi/Documents/projects/circus, but that doesn't solve the envrc issue (FYI to avoid confusion, I have copied the project from projects/circus/satellite-app to projects/satellite app for debugging outside of the direnv)

ericdallo commented 2 years ago

Right, that env seems not related to this issue I guess... So LSP is connected but you don't have any LSP feature? Find definitions, references, completion, anything?

NANASHI0X74 commented 2 years ago

yeah, all of those requests to the lsp server seem to time out. I think I'll try enabling the lsp<->client io logging next 😅

NANASHI0X74 commented 2 years ago

hmm. So the server seems to send an init response:

[Trace - 08:30:56 pm] Received response 'initialize - (1)' in 438ms.
Result: {
  "capabilities": {
    "textDocumentSync": {
      "openClose": true,
      "change": 2,
      "willSave": null,
      "willSaveWaitUntil": null
    },
    "completionProvider": {
      "triggerCharacters": [
        ".",
        "=",
        "(",
        "$",
        "\"",
        "'",
        "{",
        "/",
        ":"
      ],
      "resolveProvider": true
    },
    "hoverProvider": true,
    "signatureHelpProvider": {
      "triggerCharacters": [
        "("
      ],
      "retriggerCharacters": [
        ","
      ]
    },
    "definitionProvider": true,
    "implementationProvider": true,
    "referencesProvider": true,
    "documentHighlightProvider": true,
    "documentSymbolProvider": true,
    "codeActionProvider": {
      "codeActionKinds": [
        "source",
        "source.organizeImports",
        "source.fixAll",
        "source.sortMembers",
        "quickfix",
        "refactor"
      ]
    },
    "colorProvider": {
      "documentSelector": [
        {
          "language": "dart",
          "scheme": "file"
        }
      ]
    },
    "documentRangeFormattingProvider": true,
    "documentOnTypeFormattingProvider": {
      "firstTriggerCharacter": "}",
      "moreTriggerCharacter": [
        ";"
      ]
    },
    "foldingRangeProvider": true,
    "executeCommandProvider": {
      "commands": [
        "edit.sortMembers",
        "edit.organizeImports",
        "edit.fixAll",
        "edit.sendWorkspaceEdit",
        "refactor.perform"
      ],
      "workDoneProgress": true
    },
    "selectionRangeProvider": true,
    "semanticTokensProvider": {
      "legend": {
        "tokenTypes": [
          "annotation",
          "keyword",
          "class",
          "comment",
          "method",
          "variable",
          "parameter",
          "enum",
          "enumMember",
          "type",
          "source",
          "property",
          "namespace",
          "boolean",
          "number",
          "string",
          "function",
          "typeParameter"
        ],
        "tokenModifiers": [
          "documentation",
          "constructor",
          "declaration",
          "importPrefix",
          "static",
          "escape",
          "annotation",
          "control",
          "label",
          "interpolation",
          "void"
        ]
      },
      "range": true,
      "full": {
        "delta": null
      }
    },
    "workspaceSymbolProvider": true,
    "workspace": {
      "workspaceFolders": {
        "supported": true,
        "changeNotifications": true
      },
      "fileOperations": {
        "willRename": {
          "filters": [
            {
              "scheme": "file",
              "pattern": {
                "glob": "**/*.dart",
                "matches": "file"
              }
            }
          ]
        }
      }
    }
  },
  "serverInfo": {
    "name": "Dart SDK LSP Analysis Server",
    "version": "2.16.1"
  }
}

But after that it doesn't react to any requests anymore 😅

NANASHI0X74 commented 2 years ago

does the dart lsp server itself write some logs somewhere as well? Or can I enable that? There's literally only the one occurence of "response" in the entire log buffer if I search for it. There are plenty of requests though

NANASHI0X74 commented 2 years ago

omg, after waiting for minutes the server actually starts doing something and completion, error reporting etc seem to work- but I just restarted and now it's unresponsive again 😞

ericdallo commented 2 years ago

That's pretty weird, could you try another project? I usually test my things on ericdallo/flutter_sample project

ericdallo commented 2 years ago

Also, you can try a flutter not from nixpkgs, that was how we used to use flutter before the derivation, I have a flag on my config.el to use it locally when I need to test anything on older flutters: https://github.com/ericdallo/dotfiles/blob/master/.doom.d/config.el#L112

NANASHI0X74 commented 2 years ago

ahh 🤔 hmm, yeah, when I do flutter create sample and open main.dart it's not nearly as bad. Damn... I've really no idea what could be causing this, the codebase isn't really that big- cloc reports:

files          blank        comment           code
72            646            367           3565

(files and lines of code)

NANASHI0X74 commented 2 years ago

🤔 there's also:

JSON                            955              0              0          89237

which is much more than the sample project... Maybe the lsp server is parsing all of that stuff :| I'm new to this project btw 😅

NANASHI0X74 commented 2 years ago

we use aws amplify, which is producing all of those json files on build... but they're not the culprit. Anyway, removing .dart_tool, build and stray .idea folders from android studio solved the performance issue. Now to debug the envrc error which seems to be unrelated to lsp-dart (though it's not a problem I've had when I previously used direnv with go and gopls) Thanks a lot for your help 😅

NANASHI0X74 commented 2 years ago

the envrc error is weird and I don't know what's causing it, but for the benefit of anyone else reading this, I found a workaround: after opening the buffer, do M-x envrc-reload and M-x dart-mode, that makes the issues go away 🤷🏻