-
Notifications
You must be signed in to change notification settings - Fork 228
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
Illegal instruction: 4 #75
Comments
Can you share the file that's causing the issue? That'll probably be the easiest way to figure out where SK is choking |
I was trying to render docs on a project - when i don't include this file it works (I was initially using Jazzy - which i guess uses source kitten). When I include this file i get a source kitten error
|
I'm not 100% sure its actually the contents of this file that is causing the issue. It must be with my project structure because if my file only reads "Import Foundation" and nothing else i still get the error. Any verbose settings I can enable? |
This is a small rendition is what caused my SourceKitten crash with illegal instruction: 4
|
Thanks for sharing that code, @AfricanSwift! Sample code that reproduces an issue is extremely useful, so thanks for taking the time to provide that. #79 should resolve that particular issue of documenting declarations within a function body. @jeeftor I'm still working on yours! |
Actually, @jeeftor, your issue is the same as @AfricanSwift, documenting declarations nested in a function declaration: /**
The Heartbeat message includes the current time-of-day in whole seconds elapsed since UTC midnight (0000Z). This requires a 17-bit data field.
*/
public var secondsSinceMidnight : Int {
/*
The Heartbeat message includes the current time-of-day in whole seconds elapsed since UTC midnight (0000Z). This requires a 17-bit data field. The most significant bit (bit 16) is in Status Byte 2 bit 7. The remaining 16 bits are conveyed least significant byte first, using the two Time Stamp bytes.
*/
let v = (UInt32(bytes[2] & 0x8) << 16) | (UInt32(bytes[5]) << 8 ) | UInt32(bytes[4])
return Int(v);
} So that's also resolved with #79. |
Hi there, I'm running into the same issue as above:
this works: running this: It seems this issue has been closed... but I've tried with SourceKitten on both git HEAD and v0.10.0. Am I doing something stupid ? Best, John |
@johncsnyder I have reproduced the issue. |
@johncsnyder I can't verify that is same issue as this. |
update for jf-unavailable
I'm getting the error
Illegal instruction: 4
on a specific file. Is there a verbose mode so I can get more detail about what is causing the error? The project compiles fine (swift 2 Xcode 7)The text was updated successfully, but these errors were encountered: