You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation throws an exception when getting a warning such as:
java: Some input files use unchecked or unsafe operations.
java: Recompile with -Xlint:unchecked for details.
This is clearly not a compilation error. Also, I don't really understand why you added the "throw an exception" behavior. As implemented, an error on the initial compile will prevent the background loop from initializing. This seems very much at odds with how I've used Virgil in the past. Can you expand on why you thought it was necessary?
The text was updated successfully, but these errors were encountered:
Thank you for the report! You are right on both counts. Warnings shouldn't throw an exception in any case. Regarding why exception is thrown at all – it makes sense for the workflow where compile-java is invoked manually for faster feedback. Naturally, it doesn't suit the watch-and-recompile workflow.
My latest commit addresses both issues. It's going to be released as 0.3.2.
Wow, I literally just encountered this issue this morning and had the same questions, only to see it fixed in 0.3.2. Thanks for the quick fix @alexander-yakushev!
The current implementation throws an exception when getting a warning such as:
This is clearly not a compilation error. Also, I don't really understand why you added the "throw an exception" behavior. As implemented, an error on the initial compile will prevent the background loop from initializing. This seems very much at odds with how I've used Virgil in the past. Can you expand on why you thought it was necessary?
The text was updated successfully, but these errors were encountered: