New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solargraph language server failing to start #345
Comments
Update: it seems to be failing on parsing this specific gem's yardoc, but I still don't know how to get Solargraph to log what it's trying to parse:
|
More information from some injection of static VALUE objectid_generate(int argc, VALUE* args, VALUE self)
{
VALUE oid;
unsigned char oid_bytes[12];
unsigned long t, inc;
unsigned short pid;
int i;
if(argc == 0 || (argc == 1 && *args == Qnil)) {
t = htonl((int)time(NULL));
} else {
t = htonl(NUM2UINT(rb_funcall(*args, rb_intern("to_i"), 0)));
}
MEMCPY(&oid_bytes, &t, unsigned char, 4);
MEMCPY(&oid_bytes[4], hostname_digest, unsigned char, 3);
pid = htons(getpid());
MEMCPY(&oid_bytes[7], &pid, unsigned char, 2);
/* No need to synchronize modification of this counter between threads;
* MRI global interpreter lock guarantees serializaility.
*
* Compiler should optimize out impossible branch.
*/
if (sizeof(unsigned int) == 4) {
object_id_inc++;
} else {
object_id_inc = (object_id_inc + 1) % 0xFFFFFF;
}
inc = htonl(object_id_inc);
MEMCPY(&oid_bytes[9], ((unsigned char*)&inc + 1), unsigned char, 3);
oid = rb_ary_new2(12);
for(i = 0; i < 12; i++) {
rb_ary_store(oid, i, INT2FIX((unsigned int)oid_bytes[i]));
}
return oid;
}
[
[nil, nil],
["self", nil]
]
[
"ext/cbson/cbson.c"
] |
Thanks for the details. I'm guessing you already found the I confirmed the error locally and will have it fixed in a patch release in the next few days. |
Oh I actually didn't know that! I just went into the locally installed gem and changed its source code directly to increase the default log level 🤷🏻♀️ |
Fix released in v0.39.13. |
I have Solargraph as a language server on VSCode, and as of v0.39.11, it fails to start with the following error:
It seems like it's failing to process a specific block of YARDoc but I don't really know how to trace it back. Is there some sort of debug mode for Solargraph so I can provide additional information?
The text was updated successfully, but these errors were encountered: