Comments (6)
@laginha87 I'm trying to solve this issue, but I can't figure out why is this still happening, Do you have some idea? 😅
Received message which is neither a response nor a notification message:
{
"jsonrpc": "2.0",
"error": {
"code": -32001,
"message": "Error reading file: Is a directory",
"data": [
"/usr/lib/crystal/io/file_descriptor.cr:53:9 in 'unbuffered_read'",
"/usr/lib/crystal/io/buffered.cr:206:5 in 'fill_buffer'",
"/usr/lib/crystal/io/buffered.cr:82:7 in 'peek'",
"/usr/lib/crystal/io.cr:638:37 in 'gets'",
"/usr/lib/crystal/io.cr:611:5 in 'gets'",
"/usr/lib/crystal/io.cr:581:5 in 'gets'",
"/usr/lib/crystal/io.cr:580:3 in 'gets'",
"/usr/lib/crystal/io.cr:1167:7 in 'next'",
"/usr/lib/crystal/iterator.cr:913:9 in 'next'",
"/usr/lib/crystal/enumerable.cr:390:15 in 'join'",
"/usr/lib/crystal/enumerable.cr:620:7 in 'join'",
"/home/main/Projects/scry/src/scry/completion_resolver.cr:11:9 in 'run'",
"/home/main/Projects/scry/src/scry/context.cr:115:19 in 'dispatch_request'",
"/home/main/Projects/scry/src/scry/context.cr:27:7 in 'dispatch'",
"/home/main/Projects/scry/src/scry.cr:22:18 in 'start'",
"/home/main/Projects/scry/src/scry.cr:38:1 in '__crystal_main'",
"/usr/lib/crystal/crystal/main.cr:11:3 in '_crystal_main'",
"/usr/lib/crystal/crystal/main.cr:112:5 in 'main_user_code'",
"/usr/lib/crystal/crystal/main.cr:101:7 in 'main'",
"/usr/lib/crystal/crystal/main.cr:135:3 in 'main'",
"__libc_start_main",
"_start",
"???"
]
}
}
from scry.
when does this happen, is it when you open the workspace or a specific file ?
Two sections where this might happen are:
scry/src/scry/completion/method_db.cr
Line 23 in b38f2df
and here
scry/src/scry/completion/dependency_graph.cr
Line 124 in b38f2df
from scry.
is it when you open the workspace or a specific file ?
@laginha87 Not a specific file, but any file inside src
directory.
Code Completions works fine, though, this error is a bit annoying 😅 (fill up my logs)
Maybe this error is caused by some dir inside lib
or crystal path, WDYT?
from scry.
I think we can try to check if file is actually a file?
before analyzing it 😅
Ref: File.file?
from scry.
can you check if adding that check here
scry/src/scry/completion/dependency_graph.cr
Line 112 in b38f2df
from scry.
can you check if adding that check here fixes the issue ?
No, it don't
is it when you open the workspace or a specific file ?
I was wrong, this only happens when I have a file and a directory with similar name, like this:
😅
from scry.
Related Issues (20)
- test failure with latest commit on master and crystal 0.26 HOT 5
- `flag?` crashes compiler HOT 4
- https://github.com/crystal-lang/crystal/issues/7151 HOT 6
- This library should have a set of benchmarks HOT 1
- What unit does scry use in lsp ranges HOT 1
- Building gives `undefined constant Crystal::Codegen::Target` error HOT 12
- Extract LSP protocol to a shard? HOT 2
- Stop depending on the real stdlib for our specs
- Speedup by going full async and manage tasks intelligently HOT 1
- Debug idea: use lsp-inspector
- Prelude Error Message HOT 2
- Completion fails using Emacs and lsp-mode
- Incorrect path reference
- specs failing... HOT 1
- Is the project abandoned? HOT 4
- Fails to build with crystal 0.36 HOT 1
- Broken JSON-RPC message HOT 3
- Build failure on master branch, Crystal 1.0.0; dependency resolution problem. HOT 1
- Can't build with Crystal 1.3.2 (Error: no overload matches 'Crystal.exit' with types Int32) HOT 3
- scry starts itself up and take over 3 gigs of memory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scry.