castwide / atom-solargraph

An Atom package for Solargraph.
MIT License
39 stars 5 forks source link

solargraph is triggered by changes of log and cache-files #15

Open dwarfi09 opened 5 years ago

dwarfi09 commented 5 years ago

Every change of every file in my project's directory notifies solargraph of a file-change and causes a new indexing-process.

So in my rails-projects every page-reload triggers a lot of reindexing-processes, because a lot of files change while handling the request (multiple changes in log-file, cache-files etc.). This slows atom down to be unusable.

I created a .solargraph.yml in the project's directory, but this seems to be ignored.

I'm using rbenv for managing ruby-versions.

castwide commented 5 years ago

The language server depends on the client to monitor the filesystem and report changes to watched files. In VS Code, the client can minimize server notifications with a filter on the filesystem watcher. I'm not sure if there's a similar mechanism in Atom. I'll have to research it.

dwarfi09 commented 5 years ago

I understand, thank you.

Switching the "File System Watcher" from "Native operating system APIs" to "Experimental filesystem watching library" in the core-settings seems to do the trick.