Coder Social home page Coder Social logo

coc-julia's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar fannheyward avatar lassepe avatar lgtm-com[bot] avatar peng1999 avatar wangl-cc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

coc-julia's Issues

Dynamically switching environments

Is there a way to dynamically change the environment without re-starting the language server? In vscode, one can pick another environment from the bottom status bar. I am interested in this feature to facilitate development of a monorepo with multiple sub-packages that all provide their own env.

Language server socket in project directory?

Since the latest release (0.5.1) I am observing that coc-julia places a socket (named vscjlsymserv-<some-UUID>) in my current working directory. These seem not to get deleted after the session is closed. Is this desired behavior?

Upgrade to PackageCompiler 2.0

PackageCompiler 2.0 was recently released. The current version of coc-julia does not play nicely with it out of the box since it uses some discontinued API.

Installation issue (create terminal job failed)

Hello,
I get a weird issue when I try to install coc-julia on an Ubuntu 18.04 with coc-nvim (updated to last version) and coc-julia (version 0.10)
The installation works fine

coc-julia Installed extension [email protected] 

But when afterwards I open a Julia file and I am asked to install some compile_env deps, I get immediately (after typing yes) the following error

Error on activate extension coc-julia: request error nvim_call_function - create terminal job failed 

I get some log with the coc#client#open_log() that I put afterwards even if it is quite wordy that I have put here

How can I solve that ?

Incorrect completion if the typed fragment does not match the completion item

In an emtpy .jl file, when I type data (note the lowercase) and trigger completion using TAB to complete the builtin DataType, the completion is inserted but the first bit that I already types is not replaced. Thus, I get dataDataType as a completion. This does not happen when the letters that I already typed have the correct case, e.g. Data<TAB> yields DataType as expected.

Not recognizing all packages (nor local ones)

The langserver seems to handle most packages but not all. In particular I'm using DrWatson and keep getting a "Missing Reference" warning even though the package is in both the base environment and in the project in which I am working.

Also not sure whether this is an issue with coc-julia or if it's the langserver, but I currently also get missing reference errors for things that are not defined in the same directory (but are defined in the same julia project, git repo and nvim pwd).

Error on activate extension coc-julia

On ArchLinux Julia has been updated recently and it seems coc-julia expects some deps to exist for it but they're missing so I get this on fresh coc-julia install, after opening a julia file:

[coc.nvim] Error on activate extension coc-julia: Command failed: /usr/bin/julia --project=/home/francisco/.config/coc/extensions/node_modules/coc-julia/server/compile_env --startup-file=no --history-file=no -e "import PackageCompiler; prin
tln(PackageCompiler.default_sysimg_path())"
ERROR: ArgumentError: Package PackageCompiler [9b87118b-4619-50d2-8e1e-99f35a4d4d9d] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.
❯ julia --version
julia version 1.6.2

Enhance startup speed with commands not work

It's an issue similar to #16.

I've tried :CocInstall coc-julia julia.CompileLanguageServerBin julia.CompileLanguageServerSysimg but encountered the following error.

Looks like an npm error but I don't have a background of it.

Install finished

- ✓ coc-julia Installed extension [email protected] at /Users/jinrae/.config/coc/extensions/node_modules/coc-julia
- ✗ julia.CompileLanguageServerBin Bad response from https://registry.npmjs.org/julia.CompileLanguageServerBin: 404
- ✗ julia.CompileLanguageServerSysimg Bad response from https://registry.npmjs.org/julia.CompileLanguageServerSysimg: 404

For more details, see the below picture (sorry for uploading a picture; I don't know how to copy-and-paste the pop-up message).
image

Formatting crashes with `separate_kwargs_with_semicolon = true`

For some reason, all options I set in .JuliaFormatter.toml work except this one:

.JuliaFormatter.toml

separate_kwargs_with_semicolon = true

main.jl

function f(a, b = 5) end

minimal.vimrc

set nocompatible
set termguicolors
set runtimepath^=$HOME/.vim/plugged/coc.nvim

To reproduce the crash:

$ nvim -u minimal.vimrc main.jl
:CocEnable
:call CocAction('format')

I get

[coc.nvim] Failed to format document: MethodError(Core.var"#Type##kw"(), ((indent = 4, margin = 92, always_for_in = false, whitespace_typedefs = false, whitespace_ops_in_indices = false, remov
e_extra_newlines = false, import_to_using = false, pipe_to_function_call = false, short_to_long_function_def = false, always_use_return = false, whitespace_in_kwargs = true, annotate_untyped_f
ields_with_any = true, format_docstrings = false, align_struct_field = false, align_assignment = false, align_conditional = false, align_pair_arrow = false, conditional_to_if = false, normaliz
e_line_endings = "auto", align_matrix = false, trailing_comma = true, separate_kwargs_with_semicolon = true), JuliaFormatter.Options), 0xffffffffffffffff). use :CocOpenLog for details

With pretty much the same message in :CocOpenLog.

Interestingly, formatting does work from a plain Julia REPL:

julia> using JuliaFormatter
julia> format("main.jl")

So I guess it's not a bug with JuliaFormatter.jl.

Also, it does work from Coc with the following config file instead:
.JuliaFormatter.toml

indent = 1

So I guess the bug is only related to the separate_kwargs_with_semicolon option?

Relative dependencies not found

I have a nested project with a main module Foo and an example directory that makes use of that module. The example directory has its own Project.toml and Manifest.toml which is created by running ]dev .. from withthin example/.

That is, the project has the following layout:

❯ tree   
.
├── examples
│   ├── main.jl
│   ├── Manifest.toml
│   └── Project.toml
├── Manifest.toml
├── Project.toml
└── src
    └── Foo.jl

Content of src/Foo.jl:

module Foo.jl
export foo

foo() = "foo"
end

Content of examples/main.jl

using Foo: foo

print(foo())

When editing main.jl (even with nvim launched in examples), coc-nvim fails to find Foo; that is, I'm getting a missing reference. Accordingly, auto-completion and "go-to-definition" features fail.

In contrast, when I open examples/main.jl in VSCode, Foo is found and I can also jump to the source code.

I suspect that this has something to do with the way that coc-julia detects the package root. It seems that coc-julia is using the top-level {Project,Manifest}.toml here.

Undocumented `julia-*` config options?

I'm surprised to read only two configuration options on this repo's README, but I read from coc autocompletion in my coc-settings.json that julia.* yields many more config options.. are they really provided by this extension? Where are they documented?

`coc#status()` frozen at indexing packages (again)

This is the same issue as #33. As before, I have my status line set to print the output of coc#status(). Opening any .jl file will start the language server, and eventually coc#status() gets stuck on Julia Language Server Indexing packages.... The language server process reports no CPU usage in htop.

I see this with both Julia 1.6.2 and a build of Julia from the master branch as of a few days ago (commit JuliaLang/julia@b40ae6b79b).

From :CocInfo:

## versions

vim version: NVIM v0.6.0-dev+135-g222cd4322
node version: v16.6.2
coc.nvim version: 0.0.80-d68523e4cc
coc.nvim directory: /Users/carlocab/.config/nvim/plugged/coc.nvim
term: tmux
platform: darwin

## Log of coc.nvim

2021-08-17T18:13:24.710 INFO (pid:14185) [services] - registered service "highlight"
2021-08-17T18:13:24.768 INFO (pid:14185) [plugin] - coc.nvim 0.0.80-d68523e4cc initialized with node: v16.6.2 after 532ms
2021-08-17T18:13:27.470 INFO (pid:14185) [services] - registered service "julia"
2021-08-17T18:13:27.470 INFO (pid:14185) [services] - Julia Language Server state change: stopped => starting
2021-08-17T18:13:27.475 INFO (pid:14185) [language-client-index] - Language server "julia" started with 14193
2021-08-17T18:13:47.329 INFO (pid:14185) [attach] - receive notification: openList []
2021-08-17T18:13:48.200 INFO (pid:14185) [attach] - receive notification: openList [ 'extensions' ]
2021-08-17T18:14:03.052 INFO (pid:14185) [services] - Julia Language Server state change: starting => running
2021-08-17T18:14:03.064 INFO (pid:14185) [services] - service julia started
2021-08-17T18:14:15.894 INFO (pid:14185) [attach] - receive notification: showInfo []

I am using coc-julia 0.10.0.

manifest not compatible

yinj3@yinj3:~  projects  jl  traj$ /home/yinj3/.julia-1.6.5/bin/julia --project="/home/yinj3/.config/coc/extensions/node_modules/coc-julia/server/JuliaLS" --startup-file=no --history-file=no -e "using Pkg; Pkg.instantiate()"
ERROR: The manifest file you are using was most likely generated by a different version of Julia and is not compatible with this Julia version
Stacktrace:
[1] load_urls(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:545
[2] #download_source#57
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:733 [inlined]
[3] download_source
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:732 [inlined]
[4] instantiate(ctx::Pkg.Types.Context; manifest::Nothing, update_registry::Bool, verbose::Bool, platform::Base.BinaryPlatforms.Platform, allow_build::Bool, allow_autoprecomp::Bool, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:1408
[5] instantiate
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:1325 [inlined]
[6] #instantiate#252
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:1321 [inlined]
[7] instantiate()
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:1321
[8] top-level scope
@ none:1

Caching package index

It seems that the extension has to index the packages of the environment at every startup; even if the the environment was already indexed before and no changes where made to the Manifeset/Project.jl. Is there a config-option to write the indexing results to disk? It seems like the vscode-extensions does something like that.

Crashes on Julia 1.6

Julia 1.6 has just been released. While the vscode plugin seems to work with Julia 1.6, coc-julia crashes.

The "julia" server crashed 5 times in the last 3 minutes.

I failed to start coc-julia after installation. Here's the log information I get:

2020-12-17T22:28:27.104 DEBUG (pid:11651) [workspace] - buffer created 1
2020-12-17T22:28:27.106 DEBUG (pid:11651) [events] - Event: BufEnter [ 1 ]
2020-12-17T22:28:27.108 DEBUG (pid:11651) [events] - Event: BufWinEnter [ 1, 1000 ]
2020-12-17T22:28:28.123 WARN (pid:11651) [extensions] - Extension coc-julia activate cost more than 1s
2020-12-17T22:28:28.145 DEBUG (pid:11651) [languages] - created service source snippets
2020-12-17T22:28:28.146 DEBUG (pid:11651) [languages] - created service source snippets-source
2020-12-17T22:28:28.146 DEBUG (pid:11651) [extensions] - activate: coc-snippets
2020-12-17T22:28:28.147 INFO (pid:11651) [plugin] - coc.nvim 0.0.79-ada0b910bd initialized with node: v15.4.0 after 1074ms
2020-12-17T22:28:29.535 INFO (pid:11651) [services] - registered service "julia"
2020-12-17T22:28:29.535 DEBUG (pid:11651) [services] - starting service: julia
2020-12-17T22:28:29.536 INFO (pid:11651) [services] - Julia Language Server state change: stopped => starting
2020-12-17T22:28:29.539 INFO (pid:11651) [language-client-index] - Language server "julia" started with 11661
2020-12-17T22:28:31.252 DEBUG (pid:11651) [events] - Event: CursorMoved [ 1, [ 21, 1 ] ]
2020-12-17T22:28:31.556 DEBUG (pid:11651) [events] - Event: CursorHold [ 1 ]
2020-12-17T22:28:43.770 INFO (pid:11651) [services] - Julia Language Server state change: starting => running
2020-12-17T22:28:43.772 DEBUG (pid:11651) [languages] - created service source julia-1
2020-12-17T22:28:43.775 INFO (pid:11651) [services] - service julia started
2020-12-17T22:28:43.775 DEBUG (pid:11651) [extensions] - activate: coc-julia
2020-12-17T22:28:46.987 INFO (pid:11651) [services] - Julia Language Server state change: running => stopped
2020-12-17T22:28:46.987 INFO (pid:11651) [services] - Julia Language Server state change: stopped => starting
2020-12-17T22:28:46.990 INFO (pid:11651) [language-client-index] - Language server "julia" started with 11663
2020-12-17T22:29:02.073 INFO (pid:11651) [services] - Julia Language Server state change: starting => running
2020-12-17T22:29:02.074 DEBUG (pid:11651) [languages] - created service source julia-1
2020-12-17T22:29:05.544 INFO (pid:11651) [services] - Julia Language Server state change: running => stopped
2020-12-17T22:29:05.544 INFO (pid:11651) [services] - Julia Language Server state change: stopped => starting
2020-12-17T22:29:05.548 INFO (pid:11651) [language-client-index] - Language server "julia" started with 11668
2020-12-17T22:29:21.693 INFO (pid:11651) [services] - Julia Language Server state change: starting => running
2020-12-17T22:29:21.693 DEBUG (pid:11651) [languages] - created service source julia-1
2020-12-17T22:29:25.328 INFO (pid:11651) [services] - Julia Language Server state change: running => stopped
2020-12-17T22:29:25.329 INFO (pid:11651) [services] - Julia Language Server state change: stopped => starting
2020-12-17T22:29:25.332 INFO (pid:11651) [language-client-index] - Language server "julia" started with 11670
2020-12-17T22:29:42.826 INFO (pid:11651) [services] - Julia Language Server state change: starting => running
2020-12-17T22:29:42.827 DEBUG (pid:11651) [languages] - created service source julia-1
2020-12-17T22:29:45.428 DEBUG (pid:11651) [events] - Event: CursorMoved [ 1, [ 22, 1 ] ]
2020-12-17T22:29:45.732 DEBUG (pid:11651) [events] - Event: CursorHold [ 1 ]
2020-12-17T22:29:46.388 DEBUG (pid:11651) [events] - Event: CursorMoved [ 1, [ 21, 1 ] ]
2020-12-17T22:29:46.693 DEBUG (pid:11651) [events] - Event: CursorHold [ 1 ]
2020-12-17T22:29:46.753 INFO (pid:11651) [services] - Julia Language Server state change: running => stopped
2020-12-17T22:29:46.754 INFO (pid:11651) [services] - Julia Language Server state change: stopped => starting
2020-12-17T22:29:46.758 INFO (pid:11651) [language-client-index] - Language server "julia" started with 11675
2020-12-17T22:29:46.785 DEBUG (pid:11651) [events] - Event: CursorMoved [ 1, [ 20, 1 ] ]
2020-12-17T22:29:46.933 DEBUG (pid:11651) [events] - Event: CursorMoved [ 1, [ 19, 1 ] ]
2020-12-17T22:29:47.098 DEBUG (pid:11651) [events] - Event: CursorMoved [ 1, [ 18, 1 ] ]
2020-12-17T22:29:47.406 DEBUG (pid:11651) [events] - Event: CursorHold [ 1 ]
2020-12-17T22:30:05.176 INFO (pid:11651) [services] - Julia Language Server state change: starting => running
2020-12-17T22:30:05.177 DEBUG (pid:11651) [languages] - created service source julia-1
2020-12-17T22:30:09.420 INFO (pid:11651) [services] - Julia Language Server state change: running => stopped
2020-12-17T22:30:25.636 DEBUG (pid:11651) [events] - Event: BufWinLeave [ 1, 1000 ]
2020-12-17T22:30:25.637 DEBUG (pid:11651) [events] - Event: BufHidden [ 1 ]
2020-12-17T22:30:25.649 DEBUG (pid:11651) [events] - Event: FileType [ 'log', 2 ]
2020-12-17T22:30:25.661 DEBUG (pid:11651) [events] - Event: BufCreate [ 2 ]
2020-12-17T22:30:25.662 DEBUG (pid:11651) [events] - Event: BufEnter [ 2 ]
2020-12-17T22:30:25.663 DEBUG (pid:11651) [events] - Event: BufWinEnter [ 2, 1000 ]
2020-12-17T22:30:25.698 DEBUG (pid:11651) [events] - Event: CursorMoved [ 2, [ 1, 1 ] ]
2020-12-17T22:30:25.707 DEBUG (pid:11651) [workspace] - buffer created 2
2020-12-17T22:30:26.004 DEBUG (pid:11651) [events] - Event: CursorHold [ 2 ]

It seems that the log didn't tell me what was happening... I may need help to get more information and clarity...

`julia.CompileLanguageServerSysimg` shows confusing error message

When running julia.CompileLanguageServerSysimg, I get the following error message while running compile_env/compile.jl:

9 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

This error seems harmless in practice. At least the system image generated seems to work. However, the error message is a bit confusing and may point to the fact that there is something wrong with the way the project environment is set up.

Unused dependencies

There seem to be quite a few unused dependencies (e.g. DocumentFormat) in the JuliaLS package which may be worth removing to avoid weird interaction with the Pkg resolve step.

LSP completion seems to be broken

This worked fine a while ago, but now if you autocomplete a LaTeX-style symbol in nvim using coc-julia, completion doesn't do replacement correctly.

For example:

  1. Enter insert mode and type \al.
  2. From the completion menu, choose \alpha and confirm your selection.

This used to correctly substitute α in place of \al. Now confirming the completion results in \al being substituted with . Similarly, if you try to complete \alp, it will be replaced with alpα.

vscjlsymserv files in project directory

This issue was already raised in #57 - basically, whenever the LanguageServer starts, this creates a pipe in the working directory.

I have checked by deactivating JuliaFormatter, and it looks like coc-julia is what creates these files.

Broken autocompletion

I don't know since when the autocompletion began to be broken.

When I type some words to see the autocompletion list, it looks like:
image

However, when I press ctrl+p to make it autocompleted, it becomes broken like:
image

I'm not sure that it's a problem of coc-julia.

Note: the broken word is quite random. For example,
image

"Missing reference" for `using LinearAlgebra`

I just installed coc-julia without any configuration.

When I open a julia file like this

using LinearAlgebra

# # Chapter 1

# ## A quick example

A = [2 -1 1.5; 1 0 -4]
x = [8; 7]
A \ x

# ## Example 1

A = [1 -2 1; 0 2 -8; 5 0 -5]
x = [0; 8; 10]
A \ x

tr(A)

det(A)

I get Missing reference at using LinearAlgebra and tr(A) and det(A).

Is this a problem from coc-julia side or LSP side? Or is this simply expected behavoir?

Better way to bundle LanguageServer.jl

So I'm noticing that the Manifest.toml files are present in coc-julia, which shouldn't be the case?

I think this is on purpose. The idea seems to be that coc-julia tries to record an exact state of packages that work together. That of course stops working once the versions recorded in the Manifest.toml have been resolved with a different Julia version. I thus end up calling ]up in ~/.config/coc/extensions/node_modules/coc-julia/server/{compile_env,JuliaLS} from time to time to get an updated language server. Personally, I would probably prefer if the environments therein only had a Project.toml with corresponding [compat] bounds but there may be a good reason why that was not done, @fannheyward ?

Originally posted by @lassepe in #234 (comment)

coc-julia vs julia-vscode?

The julia-vscode extension makes things simple by bundling it's julia dependencies, running with it's own isolated depot, etc. In the future, they plan to ship a precompiled version (e.g. #16). Rather than duplicating all of that effort here, what do you think of making coc-julia a wrapper around julia-vscode? This may also help avoid issues like julia-vscode/LanguageServer.jl#651.

Thoughts?

[coc-nvim] Can't find julia

Hey, whenever I open a .jl file with nvim I get this error in the title.

I have followed the instructions given in the coc-vim and installed with :CocInstall coc-julia.

Moreover, I added this line to my .bashrc:

export PATH="$PATH:~/.julia-1.6.3/bin/julia"

However, I keep getting the same error. I would be very glad if someone could help me!

(I'm using Neovim 0.5 and Ubuntu 20.04)

Thanks in advance!

Format options in configurations do not work

I have installed the plugin and the formatter works by calling CocAction('format'). But it seems that the default indent size of the formatter is 8 and I cannot change it by setting"julia.format.indent" to 4. Even more, I have tried to turn off some other formatting options, but none of them takes effect. My Julia version is 1.7.2.

[Question] Not autoclose bracket from lsp.

When I type println it should be println() instead of just println.

bandicam.2022-04-20.10-50-24-010.mp4

Cocconfig:

{
    "suggest.noselect": false,
    "snippets.priority": 99,
    "vimlsp.trace.server": "verbose",
    "vimlsp.debug": true,
    //coc
    "coc.preferences.extensionUpdateCheck": "weekly",
    "coc.preferences.formatOnType": true,
    "coc.preferences.formatOnTypeFiletypes": ["c", "rust"],
    "coc.preferences.formatOnSaveFiletypes": ["python", "c", "rust"],
    //python
    "python.pythonPath": "~/scoop/apps/python/current/python.exe",
    "python.formatting.provider": "black",
    "python.formatting.blackPath": "~/scoop/apps/python/current/Scripts/black.exe",
    "python.linting.flake8Enabled": true,
    //rust
    "rust-analyzer.cargo.unsetTest": [
        "derivative"
    ],
    "rust-analyzer.inlayHints.typeHints": true,
    "rust-analyzer.inlayHints.refreshOnInsertMode": true,
    //lua
    "sumneko-lua.inlayHints.refreshOnInsertMode": true,
    "Lua.completion.callSnippet": "Replace",
    "Lua.telemetry.enable": true,
    // powershell
    "powershell.integratedConsole.focusConsoleOnExecute": false,
    "powershell.integratedConsole.showOnStartup": false,
    "powershell.enableProfileLoading": false,
    "powershell.developer.editorServicesLogLevel": "Error",
    "powershell.debugging.createTemporaryIntegratedConsole": false,
    //julia
    "julia.executablePath": "~/scoop/shims/julia.exe"
}

Julia language server failing to initialize

I apologize if I make any mistakes here, this is the first time I've reported something like this.
Each time I open a julia file in nvim, the julia language server fails to initialize. This error is provided:

[coc.nvim] The "julia" server crashed 4 times in the last 3 minutes. The server wil l not be restarted.

I am running nodejs v16.14.0 and julia 1.7.3 on fedora 36. It may be worth noting that other language servers run without issue. Looking into the coc logs shows the following:

2022-08-08T13:06:21.649 INFO (pid:10173) [plugin] - coc.nvim initialized with node: v16.14.0 after 78ms 2022-08-08T13:06:24.895 INFO (pid:10173) [services] - registered service "julia" 2022-08-08T13:06:24.896 INFO (pid:10173) [services] - Julia Language Server state change: stopped => starting 2022-08-08T13:06:24.901 INFO (pid:10173) [language-client-index] - Language server "julia" started with 10232 2022-08-08T13:06:24.927 INFO (pid:10173) [services] - Julia Language Server state change: starting => stopped 2022-08-08T13:06:24.927 INFO (pid:10173) [services] - Julia Language Server state change: stopped => starting 2022-08-08T13:06:24.931 INFO (pid:10173) [language-client-index] - Language server "julia" started with 10234 2022-08-08T13:06:24.942 INFO (pid:10173) [services] - Julia Language Server state change: starting => stopped 2022-08-08T13:06:24.942 INFO (pid:10173) [services] - Julia Language Server state change: stopped => starting 2022-08-08T13:06:24.946 INFO (pid:10173) [language-client-index] - Language server "julia" started with 10236 2022-08-08T13:06:24.957 INFO (pid:10173) [services] - Julia Language Server state change: starting => stopped 2022-08-08T13:06:24.957 INFO (pid:10173) [services] - Julia Language Server state change: stopped => starting 2022-08-08T13:06:24.961 INFO (pid:10173) [language-client-index] - Language server "julia" started with 10238 2022-08-08T13:06:24.973 INFO (pid:10173) [services] - Julia Language Server state change: starting => stopped 2022-08-08T13:06:24.973 ERROR (pid:10173) [services] - Server julia failed to start: Error: Connection to server got closed. Server will not be restarted. at Zf.handleConnectionClosed (/home/jangove/.local/share/nvim/plugged/coc.nvim/build/index.js:236:1006) at Zf.handleConnectionClosed (/home/jangove/.local/share/nvim/plugged/coc.nvim/build/index.js:236:28588) at t (/home/jangove/.local/share/nvim/plugged/coc.nvim/build/index.js:236:386) at xN.invoke (/home/jangove/.local/share/nvim/plugged/coc.nvim/build/index.js:36:9670) at Md.fire (/home/jangove/.local/share/nvim/plugged/coc.nvim/build/index.js:36:10436) at xi (/home/jangove/.local/share/nvim/plugged/coc.nvim/build/index.js:37:10897) at xN.invoke (/home/jangove/.local/share/nvim/plugged/coc.nvim/build/index.js:36:9670) at Md.fire (/home/jangove/.local/share/nvim/plugged/coc.nvim/build/index.js:36:10436) at OS.fireClose (/home/jangove/.local/share/nvim/plugged/coc.nvim/build/index.js:36:12716) at Socket.<anonymous> (/home/jangove/.local/share/nvim/plugged/coc.nvim/build/index.js:36:14275)

I have been trying to get coc-julia working with nvim for a while, but this problem has persisted between multiple operating system installs and multiple attempts to reinstall both coc and coc-julia. I'm sure I'm missing something simple here, but I'd really appreciate some help.

Go to definition no longer works for files

I used to be able to call <Plug>(coc-definition) when hovering over a file to jump to that file. That does not seem to work anymore. Yet, I can still use the same feature to jump to symbols defined in that file.

Options in `.JuliaFormatter.toml` are ignored.

I have placed the following .JuliaFormatter.toml file on my repo root, but the options seem not taken into account when I'm invoking e.g. <Plug>(coc-format):

whitespace_in_kwargs = false
indent = 1 # (just to make it obvious if it's working)

What could be wrong? Where is the formatter run from?

Invalid autocomplete for snippets

Issue

Julia snippets provide unexpected output:
snippets

I've also thought it was worth mentioning that the same problem is visible for functions and other built-ins of the language (for a split second), but later it just corrects itself:
functions

This does not occur for other languages I use. It seems as if only the first char is kept while the rest of my typed chars are replaced with the selected ending. For example impo autocompletes to irtrt (the mpo part is replaced with the selected ending rt). Selecting the snippet after typing just one char works as expected. Sometimes the results are different, but my typed chars are always filled with the selected ending, or a fragment of it.

Setup

vim version: NVIM v0.4.4
coc.nvim version: 0.0.79-b71489207a
coc-julia version: 0.2.0

My nvim and coc configs are pretty simple and do not have any Julia specific settings. Just in case here it is.

Logs

Expand logs

2020-09-17T21:48:09.621 DEBUG (pid:50269) [workspace] - buffer created 2
2020-09-17T21:48:09.623 DEBUG (pid:50269) [events] - Event: BufEnter [ 2 ]
2020-09-17T21:48:09.624 DEBUG (pid:50269) [events] - Event: BufWinEnter [ 2, 1000 ]
2020-09-17T21:48:09.772 DEBUG (pid:50269) [extensions] - activate: coc-prettier
2020-09-17T21:48:09.798 DEBUG (pid:50269) [languages] - created service source snippets
2020-09-17T21:48:09.799 DEBUG (pid:50269) [languages] - created service source snippets-source
2020-09-17T21:48:09.800 DEBUG (pid:50269) [extensions] - activate: coc-snippets
2020-09-17T21:48:09.801 INFO (pid:50269) [plugin] - coc.nvim 0.0.79-b71489207a initialized with node: v14.10.0 after 253ms
2020-09-17T21:48:10.552 DEBUG (pid:50269) [events] - Event: CursorMoved [ 2, [ 2, 1 ] ]
2020-09-17T21:48:11.709 DEBUG (pid:50269) [events] - Event: CursorMoved [ 2, [ 1, 1 ] ]
2020-09-17T21:48:12.421 DEBUG (pid:50269) [events] - Event: CursorMoved [ 2, [ 2, 1 ] ]
2020-09-17T21:48:13.287 DEBUG (pid:50269) [events] - Event: OptionSet [ 'iskeyword', '@,48-57,_,192-255', '@,48-57,_,192-255' ]
2020-09-17T21:48:13.292 DEBUG (pid:50269) [events] - Event: OptionSet [ 'iskeyword', '@,48-57,_,192-255', '@,48-57,_,192-255,*' ]
2020-09-17T21:48:13.294 DEBUG (pid:50269) [events] - Event: OptionSet [ 'iskeyword', '@,48-57,_,192-255,*', '@,48-57,_,192-255,*,/' ]
2020-09-17T21:48:13.300 DEBUG (pid:50269) [events] - Event: FileType [ 'netrw', 2 ]
2020-09-17T21:48:13.307 DEBUG (pid:50269) [events] - Event: OptionSet [ 'iskeyword', '@,48-57,_,192-255,*,/', '@,48-57,_,192-255' ]
2020-09-17T21:48:13.309 DEBUG (pid:50269) [events] - Event: DirChanged [ '/home/agent/Projects/Julia/maths' ]
2020-09-17T21:48:13.319 DEBUG (pid:50269) [events] - Event: BufWinLeave [ 2, 1000 ]
2020-09-17T21:48:13.320 DEBUG (pid:50269) [events] - Event: BufHidden [ 2 ]
2020-09-17T21:48:13.331 DEBUG (pid:50269) [events] - Event: FileType [ 'lisp', 3 ]
2020-09-17T21:48:13.354 DEBUG (pid:50269) [events] - Event: FileType [ 'julia', 3 ]
2020-09-17T21:48:13.373 DEBUG (pid:50269) [events] - Event: FileType [ 'julia', 3 ]
2020-09-17T21:48:13.373 DEBUG (pid:50269) [events] - Event: BufCreate [ 3 ]
2020-09-17T21:48:13.375 DEBUG (pid:50269) [events] - Event: BufEnter [ 3 ]
2020-09-17T21:48:13.380 DEBUG (pid:50269) [events] - Event: BufWinEnter [ 3, 1000 ]
2020-09-17T21:48:13.380 DEBUG (pid:50269) [events] - Event: CursorMoved [ 3, [ 1, 1 ] ]
2020-09-17T21:48:13.401 DEBUG (pid:50269) [workspace] - buffer created 3
2020-09-17T21:48:14.035 DEBUG (pid:50269) [events] - Event: CursorMoved [ 3, [ 2, 1 ] ]
2020-09-17T21:48:14.073 INFO (pid:50269) [services] - registered service "julia"
2020-09-17T21:48:14.073 DEBUG (pid:50269) [services] - starting service: julia
2020-09-17T21:48:14.074 INFO (pid:50269) [services] - Julia Language Server state change: stopped => starting
2020-09-17T21:48:14.078 INFO (pid:50269) [language-client-index] - Language server "julia" started with 50308
2020-09-17T21:48:14.387 WARN (pid:50269) [extensions] - Extension coc-julia activate cost more than 1s
2020-09-17T21:48:14.534 DEBUG (pid:50269) [events] - Event: CursorMoved [ 3, [ 3, 1 ] ]
2020-09-17T21:48:14.566 DEBUG (pid:50269) [events] - Event: CursorMoved [ 3, [ 4, 1 ] ]
2020-09-17T21:48:14.595 DEBUG (pid:50269) [events] - Event: CursorMoved [ 3, [ 5, 1 ] ]
2020-09-17T21:48:14.626 DEBUG (pid:50269) [events] - Event: CursorMoved [ 3, [ 6, 1 ] ]
2020-09-17T21:48:14.657 DEBUG (pid:50269) [events] - Event: CursorMoved [ 3, [ 7, 1 ] ]
2020-09-17T21:48:14.687 DEBUG (pid:50269) [events] - Event: CursorMoved [ 3, [ 8, 1 ] ]
2020-09-17T21:48:14.718 DEBUG (pid:50269) [events] - Event: CursorMoved [ 3, [ 9, 1 ] ]
2020-09-17T21:48:15.205 DEBUG (pid:50269) [events] - Event: InsertEnter [ 3 ]
2020-09-17T21:48:15.718 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 9, 2 ] ]
2020-09-17T21:48:16.219 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 9, 3 ] ]
2020-09-17T21:48:16.249 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 9, 4 ] ]
2020-09-17T21:48:16.280 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 9, 5 ] ]
2020-09-17T21:48:16.311 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 9, 6 ] ]
2020-09-17T21:48:16.341 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 9, 7 ] ]
2020-09-17T21:48:16.695 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 10, 1 ] ]
2020-09-17T21:48:16.696 DEBUG (pid:50269) [events] - Event: TextChangedI [ 3, { lnum: 10, col: 1, changedtick: 3, pre: '' } ]
2020-09-17T21:48:18.848 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 11, 1 ] ]
2020-09-17T21:48:18.849 DEBUG (pid:50269) [events] - Event: TextChangedI [ 3, { lnum: 11, col: 1, changedtick: 4, pre: '' } ]
2020-09-17T21:48:33.447 INFO (pid:50269) [services] - Julia Language Server state change: starting => running
2020-09-17T21:48:33.450 DEBUG (pid:50269) [languages] - created service source julia-1
2020-09-17T21:48:33.455 INFO (pid:50269) [services] - service julia started
2020-09-17T21:48:33.456 DEBUG (pid:50269) [extensions] - activate: coc-julia
2020-09-17T21:48:45.085 DEBUG (pid:50269) [events] - Event: CursorHoldI [ 3 ]
2020-09-17T21:48:52.965 DEBUG (pid:50269) [events] - Event: FocusGained []
2020-09-17T21:48:55.215 DEBUG (pid:50269) [events] - Event: InsertCharPre [ 'i' ]
2020-09-17T21:48:55.219 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 11, 2 ] ]
2020-09-17T21:48:55.221 DEBUG (pid:50269) [events] - Event: TextChangedI [ 3, { lnum: 11, col: 2, changedtick: 5, pre: 'i' } ]
2020-09-17T21:48:55.229 DEBUG (pid:50269) [completion] - trigger completion with {
  word: 'i',
  bufnr: 3,
  col: 0,
  synname: '',
  filepath: '/home/agent/Projects/Julia/maths/homework1.jl',
  blacklist: [],
  line: 'i',
  filetype: 'julia',
  linenr: 11,
  input: 'i',
  colnr: 2,
  changedtick: 5,
  triggerCharacter: 'i'
}
2020-09-17T21:48:55.286 DEBUG (pid:50269) [completion-complete] - Source "around" takes 2ms
2020-09-17T21:48:55.286 DEBUG (pid:50269) [completion-complete] - Source "buffer" takes 2ms
2020-09-17T21:48:55.286 DEBUG (pid:50269) [completion-complete] - Source "file" takes 1ms
2020-09-17T21:48:55.286 DEBUG (pid:50269) [completion-complete] - Source "snippets" takes 4ms
2020-09-17T21:48:55.399 DEBUG (pid:50269) [events] - Event: InsertCharPre [ 'm' ]
2020-09-17T21:48:55.400 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 11, 3 ] ]
2020-09-17T21:48:55.400 DEBUG (pid:50269) [events] - Event: TextChangedI [ 3, { lnum: 11, col: 3, changedtick: 6, pre: 'im' } ]
2020-09-17T21:48:55.402 DEBUG (pid:50269) [events] - Event: MenuPopupChanged [
  {
    col: 6,
    row: 11,
    scrollbar: false,
    completed_item: {
      word: 'impo',
      menu: '[A]',
      user_data: '{"cid":0,"source":"around","index":0}',
      info: '',
      kind: '',
      abbr: 'impo'
    },
    width: 15,
    height: 1,
    size: 1
  },
  10
]
2020-09-17T21:48:55.403 DEBUG (pid:50269) [events] - Event: TextChangedP [ 3, { lnum: 11, col: 3, changedtick: 6, pre: 'im' } ]
2020-09-17T21:48:55.783 INFO (pid:50269) [completion-complete] - Results from: around
2020-09-17T21:48:55.784 DEBUG (pid:50269) [events] - Event: CompleteDone [ {} ]
2020-09-17T21:48:55.785 DEBUG (pid:50269) [events] - Event: MenuPopupChanged [
  {
    col: 6,
    row: 11,
    scrollbar: false,
    completed_item: {
      word: 'impo',
      menu: '[A]',
      user_data: '{"cid":0,"source":"around","index":0}',
      info: '',
      kind: '',
      abbr: 'impo'
    },
    width: 15,
    height: 1,
    size: 1
  },
  10
]
2020-09-17T21:48:58.125 DEBUG (pid:50269) [completion-complete] - Source "julia-1" takes 2842ms
2020-09-17T21:48:58.859 DEBUG (pid:50269) [events] - Event: InsertCharPre [ 'p' ]
2020-09-17T21:48:58.863 DEBUG (pid:50269) [events] - Event: MenuPopupChanged [
  {
    col: 6,
    row: 11,
    scrollbar: false,
    completed_item: {
      word: 'impo',
      menu: '[A]',
      user_data: '{"cid":0,"source":"around","index":0}',
      info: '',
      kind: '',
      abbr: 'impo'
    },
    width: 15,
    height: 1,
    size: 1
  },
  10
]
2020-09-17T21:48:58.864 DEBUG (pid:50269) [events] - Event: TextChangedP [ 3, { lnum: 11, col: 4, changedtick: 13, pre: 'imp' } ]
2020-09-17T21:48:58.872 DEBUG (pid:50269) [completion-complete] - Source "julia-1" takes 4ms
2020-09-17T21:48:58.874 DEBUG (pid:50269) [events] - Event: CompleteDone [ {} ]
2020-09-17T21:48:58.875 DEBUG (pid:50269) [events] - Event: MenuPopupChanged [
  {
    col: 6,
    row: 11,
    scrollbar: false,
    completed_item: {
      word: 'ort',
      menu: '[LS]',
      user_data: '{"cid":1600368538,"source":"julia-1","index":0}',
      info: 'import',
      kind: 'k',
      abbr: 'import~'
    },
    width: 15,
    height: 1,
    size: 1
  },
  10
]
2020-09-17T21:49:00.141 DEBUG (pid:50269) [events] - Event: CompleteDone [
  {
    word: 'ort',
    menu: '[LS]',
    user_data: '{"cid":1600368538,"source":"julia-1","index":0}',
    info: 'import',
    kind: 'k',
    abbr: 'import~'
  }
]
2020-09-17T21:49:00.145 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 11, 4 ] ]
2020-09-17T21:49:00.146 DEBUG (pid:50269) [events] - Event: TextChangedI [ 3, { lnum: 11, col: 4, changedtick: 19, pre: 'ort' } ]
2020-09-17T21:49:00.147 DEBUG (pid:50269) [events] - Event: BufWinLeave [ 4, 1000 ]
2020-09-17T21:49:00.147 DEBUG (pid:50269) [events] - Event: BufHidden [ 4 ]
2020-09-17T21:49:00.235 ERROR (pid:50269) [snippets-variable] - Error with clipboardy: Couldn't find the `xsel` binary and fallback didn't work. On Debian/Ubuntu you can install xsel with: sudo apt install xsel
2020-09-17T21:49:00.240 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 11, 4 ] ]
2020-09-17T21:49:00.240 DEBUG (pid:50269) [events] - Event: TextChangedI [ 3, { lnum: 11, col: 4, changedtick: 20, pre: 'ort' } ]
2020-09-17T21:49:00.241 DEBUG (pid:50269) [events] - Event: CursorMovedI [ 3, [ 11, 7 ] ]
2020-09-17T21:49:04.554 DEBUG (pid:50269) [events] - Event: CursorHoldI [ 3 ]
2020-09-17T21:50:31.907 DEBUG (pid:50269) [events] - Event: FocusGained []
2020-09-17T21:50:32.930 DEBUG (pid:50269) [events] - Event: InsertLeave [ 3 ]
2020-09-17T21:50:32.932 DEBUG (pid:50269) [events] - Event: CursorMoved [ 3, [ 11, 6 ] ]
2020-09-17T21:50:35.810 DEBUG (pid:50269) [events] - Event: BufWritePre [ 3 ]
2020-09-17T21:50:35.874 INFO (pid:50269) [willSaveHandler] - Will save cost: 62
2020-09-17T21:50:35.875 DEBUG (pid:50269) [events] - Event: BufWritePost [ 3 ]
2020-09-17T21:50:40.409 DEBUG (pid:50269) [events] - Event: BufWinLeave [ 3, 1000 ]
2020-09-17T21:50:40.410 DEBUG (pid:50269) [events] - Event: BufUnload [ 3 ]
2020-09-17T21:50:40.411 DEBUG (pid:50269) [workspace] - buffer unload 3

Reduce time to first action by adding precompile execution file

It seems that currently, coc-julia only precompiles the package using statement but does not include any precompilation for any code actions such as formatting, "go to definition", or refactoring. However, the compile_env already supports this by setting an exec_files list. It would be nice to have an exec file by default as this should speed up the time to first action substantially.

Tag system image with julia version

Currently, coc-julia stores a "global" system image in coc-julia-data/sysimg. When the user upgrades to a new julia version and forgets to delete this system image, the server crashes without any informative error. A simple fix may be to store the system image with the corresponding julia version in the file name. This way, coc-julia can automatically detect that there is no valid system image for the current version. This would also make it easier for users to switch between different julia versions.

Server seems to ignore project environment

To reproduce:

  1. Generate a new project
  2. Add package, eg DataFrames
  3. Open source file in project
  4. DataFrames functions result in Missing reference warnings

Functions from stdlib work fine. If I install DataFrames to the default environment, it is found as expected.

This is with LanguageServer et al from master.

Better package environment search?

This is somewhat related to, but different from, #45.

As I understand it, coc-julia is currently configured so that LanguageServer.jl checks the current working directory for a Manifest.toml file from which it indexes the packages in the current environment. This means, for instance, that the Julia LS will not find this file if you are in a subdirectory of your project folder that contains the manifest. Moreover, it seems that it ignores Project.toml files, even though Manifest.toml can be generated from the project file, which is also more common than the manifest file. (For example, Manifest.toml is an entry in the template .gitignore for Julia projects.)

Is it possible for coc-julia to employ slightly more sophisticated behaviour regarding this? For example, it could check for Project.toml files as well, and do that search in the parent directories of the working directory. As a fallback, it could check $JULIA_DEPOT_PATH/environments for directories containing these files. (If this is not set in the user's shell, one can recover this in Julia using Base.DEPOT_PATH. The first directory in this path on a nix-like OS is $HOME/.julia.)

Is this something that can be implemented in coc-julia? I remember reading that the standard config for the built-in nvim-lsp does something like this, so it seems like it's something configured at the plugin-level. (I can't find the GH issue/PR where I read it, unfortunately, but I'm trying to track it down.)

Thanks again for your time.

Leave server running when I leave neovim?

Julia language server is especially long to start because it needs to compile everything on first use.
Can I configure coc-julia so that the server does not stop when I leave neovim, and my future neovim instances attach to the same running server?

Confusion on how to install

Hello,

Apologies but I am having some confusion with how to install this, is :CocInstall coc-julia supposed to mean this works right out of the box? I have tried this and just receive [coc.nvim] Can't find julia whenever I open a .jl file.

I have also tried adding the following to my CocConfig json file

{
   "languageserver":{
      "julia":{
         "command":"julia",
         "args":[
            "--startup-file=no",
            "--history-file=no",
            "-e",
            "using LanguageServer, Pkg, Sockets, SymbolServer; env_path = dirname(Pkg.Types.Context().env.project_file); server = LanguageServer.LanguageServerInstance(stdin, stdout, true, env_path, \"\"); server.runlinter = true; run(server);"
         ],
         "filetypes":[
            "julia"
         ]
      }
    }
}

which returns [coc.nvim] Sever languageserver.julia failed to start: Launching server "languageserver.julia" using command julia failed

However when I run the command in full in terminal it appears to start a server no problem.

Language server crashed upon launch

(using latest versions of everything)

It looks like coc-julia does not recognize the packages anymore - this is true of packages from stdlib and from packages installed in Project.toml

`coc#status()` frozen at indexing packages

I have my statusline set to show me the output of coc#status(). After the Julia language server starts, at some point coc#status() says Julia Language Server Indexing packages..., and stays frozen there.

I decide to leave it overnight to see if it will finish, but it hasn't. I suspect the language server isn't actually doing anything, because htop reports 0.0 in the CPU% column for the language server process.

Is this a bug in coc#status?

couldn't create connection to server

Problem Description

When I open a .jl file, coc-julia met error [coc.nvim] Julia Language Server client: couldn't create connection to server., looks it failed to connect the language server

Reproduce

I first install the following packages in Julia

(@v1.9) pkg> add LanguageServer SymbolServer StaticLint

then install coc-julia in NeoVim via

:CocInstall coc-julia

Platform Info

Julia info

julia> versioninfo()
Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 1 on 4 virtual cores

NeoVim info

nvim --version
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.1/share/nvim"

Run :checkhealth for more info

Additional Information

First, I'm sure the julia.executablePath json configuration of coc-json is as same as which julia output, i.e.

$ which julia
/usr/local/bin/julia

and this is my julia.executablePath in :CocConfig file

"julia.executablePath": "/usr/local/bin/julia",

And I found the following json configuration of coc.nvim can make Julia server work for me (without coc-julia)

{
    "languageserver": {
        "julia": {
            "command": "julia",
            "args" : ["--startup-file=no", "--history-file=no", "-e",
            "using LanguageServer;\n       using Pkg;\n       import StaticLint;\n       import SymbolServer;\n       env_path = dirname(Pkg.Types.Context().env.project_file);\n       server = LanguageServer.LanguageServerInstance(stdin, stdout, env_path, \"\");\n       server.runlinter = true;\n       run(server);" ],
            "filetypes": ["julia"]
        }
    },
}

coc-julia does not start

Julia 1.4
NVIM v0.4.4
coc.nvim version: 0.0.78-bdd9a9e140

I get a LanguageServer startup error:

syntax: "/" is not a unary operator

I believe it's a problem with:

server = LanguageServer.LanguageServerInstance(stdin, stdout, debug, env_path, "")

Seems like this was a recent change.

Jump to other files no longer works

As of 0.13, <Plug>(coc-definition) no longer works when invoked on file names. For variables and functions it still works but invoking it on something like include("foo.jl") it always fails with "definition not found".

Definition provider not found error

CocInfo output

## versions

vim version: NVIM v0.4.3
node version: v14.4.0
coc.nvim version: 0.0.78-0c2ff5e505
term: alacritty
platform: linux

## Output channel: Julia Language Server Trace


## Output channel: languageserver.julia

ERROR: 
MethodError: Cannot `convert` an object of type String to an object of type Function
Closest candidates are:
  convert(::Type{T}, !Matched::T) where T at essentials.jl:171

Stacktrace:

 [1] 
convert
(
::
Type{Union
{
Nothing, Function
}}, ::String) at ./some.jl:34
 [2] LanguageServer.JSONRPCEndpoints.JSONRPCEndpoint(::Base.PipeEndpoint, ::Base.PipeEndpoint, ::String) at /home/direwolf/.julia/packages/LanguageServer/mpNvN/src/jsonrpcendpoint.jl:62
 [3] LanguageServerInstance(::Base.PipeEndpoint, ::Base.PipeEndpoint, 
::Bool, ::String, ::String, ::Nothing) at /home/direwolf/.julia/packages/LanguageServer/mpNvN/src/languageserverinstance.jl:62
 (repeats 
2 times)

 [4] top-level scope at none:7
[Info  - 1:04:35 AM] Connection to server got closed. Server will restart.
[Error  - 1:04:35 AM] /usr/bin/julia exited with code: 1
ERROR: 

LanguageServer Error

I'm running this extension for the first time, and it's not working. On my statusbar, I see Starting LS Julia, and after a while duplicates of this will form. In addition, when I :CocInfo I get the following:

## Output channel: Julia Language Server Trace
ERROR: 
MethodError: no method matching Union{Int64, String}(::String)

Stacktrace:

 [1] 
LanguageServer.InitializeParams
(
::
Dict{
String,Any}) at /home/samueltwallace/.julia/packages/LanguageServer/mpNvN/src/protocol/initialize.jl:111
 [2] parse_params(::Type{Val{
:
initialize}}, ::
Dict{String,Any}) at /home/samueltwallace/.julia/packages/LanguageServer/mpNvN/src/requests/init.jl:123
 [3] parse(::Type{
LanguageServer.JSONRPC.Request
}, ::Dict{String,Any}) at /home/samueltwallace/.julia/packages/LanguageServer/mpNvN/src/jsonrpc.jl:46
 [4] run(::LanguageServerInstance) at /home/samueltwallace/.julia/packages/LanguageServer/mpNvN/src/languageserverinstance.jl:246
 [5] top-level scope at none:1
[Info  - 11:51:51 PM] Connection to server got closed. Server will restart.
[Error  - 11:51:51 PM] /usr/bin/julia exited with code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.