crisidev / bacon-ls

A Language Server for Rust using Bacon diagnostics
https://github.com/crisidev/bacon-ls
MIT License
22 stars 0 forks source link

bacon_ls do nothing #3

Open realtica opened 3 weeks ago

realtica commented 3 weeks ago

Hello, bacon works fine and it is running, but bacon_ls does nothing, no error log and it is attached: Client: bacon_ls (id: 1, bufnr: [3]) .bacon-locations, bacon-ls.log and bacon.toml files are present, please help me, I do not want to return to rust-analizer.

crisidev commented 3 weeks ago

Hello, I'd be very happy to help you debug this. I think I will need a little bit more info:

1) Do you have actual errors / warning in your code that bacon is picking up? 2) When it does, can you paste the content of your .bacon-locations? 3) What version of bacon are you running? 4) Can you share a crate I can access to where bacon-ls doesn't work for you so I can try to troubleshoot it?

realtica commented 2 weeks ago

Hello, I'd be very happy to help you debug this. I think I will need a little bit more info:

  1. Do you have actual errors / warning in your code that bacon is picking up?

No errors neither warnings.

  1. When it does, can you paste the content of your .bacon-locations?

[export] enabled = true path = ".bacon-locations" line_format = "{kind}:{path}:{line}:{column}:{message}"

  1. What version of bacon are you running?

bacon 3.1.1

  1. Can you share a crate I can access to where bacon-ls doesn't work for you so I can try to troubleshoot it?

No, and a full working example would be better, is there any way to watch logs? (bacon-ls.log is empty!)

crisidev commented 2 weeks ago

Hello, I'd be very happy to help you debug this. I think I will need a little bit more info:

  1. Do you have actual errors / warning in your code that bacon is picking up?

No errors neither warnings.

If there are no errors / warnings in your code, bacon-ls will not report anything to the LSP client. Any chance you can paste a screenshot of bacon properly working in your repository?

  1. When it does, can you paste the content of your .bacon-locations?

[export] enabled = true path = ".bacon-locations" line_format = "{kind}:{path}:{line}:{column}:{message}"

What I mean is the content of the file .bacon-locations when it is populated by bacon, not the settings file.

  1. What version of bacon are you running?

bacon 3.1.1

  1. Can you share a crate I can access to where bacon-ls doesn't work for you so I can try to troubleshoot it?

No, and a full working example would be better, is there any way to watch logs? (bacon-ls.log is empty!)

realtica commented 1 week ago

Hello, as I say before bacon works well: image

This is the .bacon-locations content: (populated by bacon --export-locations)

warning /home/realtica/projects/roll-api/src/main.rs:4:5 unused import:dotenvy::dotenv warning /home/realtica/projects/roll-api/src/main.rs:78:43 unused variable:site_id warning /home/realtica/projects/roll-api/src/main.rs:80:9 variable does not need to be mutable warning /home/realtica/projects/roll-api/src/main.rs:141:5 fieldusernameis never read warning /home/realtica/projects/roll-api/src/main.rs:88:5 unusedResultthat must be used warning /home/realtica/projects/roll-api/src/main.rs:105:5 unused implementer ofFuturethat must be used warning /home/realtica/projects/roll-api/src/main.rs:113:5 unused implementer ofFuturethat must be used

realtica commented 1 week ago

I don't understand bacon-ls depends of rust-analyzer? This don't any sense.

image

crisidev commented 1 week ago

Rust analyzer is still required to do anything that is not error reporting. Things like code completion, snippets, refactoring, etc.

Can you paste how did you configure bacon-ls and rust analyzer in neovim? Do you have some dotfiles I can use to try to debug your issues?

crisidev commented 16 hours ago

I am working on a new version that will allow better troubleshooting of issues.

https://github.com/crisidev/bacon-ls/issues/4