-
Notifications
You must be signed in to change notification settings - Fork 11
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
getting an error java.lang.IllegalArgumentException: line is not a valid line offset for pointer. #120
Comments
Can you share the contents of your RUSTFLAGS="-Aclippy::missing_safety_doc" cargo clippy --message-format=json > target/clippy.json |
@bzhoek it was working previously , i use this command still does not work |
It looks like a regression that was introduced in v0.2.5. Can you revert to the previous version of the plug-in to see if that still works? |
@manku211 I just tried it with v0.2.4 of the plug-in and that works without a problem (even with SonarQube 10.7. |
@bzhoek I tried with v0.2.4 it still gives the parse error at some line but it does not break this time and does not give error of java.lang.IllegalArgumentException. |
ERROR: Unable to parse file: src/service/crons/process_historical_event/client.rs ERROR: Parse error at line 554 column 25: 544: // transfer reward 545: let reward_fut = client.transfer_rewards(process_reward_rx); 546: let (_res1, _res2) = tokio::join!(process_event_fut, reward_fut); 547: if let Err(err) = super::state::del("quest", ".", redis_pool.clone()).await { 548: tracing::error!("fail to remove quest from queue due to {err}"); 549: } 550: } 551: 552: tracing::info!("process event sleep for 15 sec"); 553: tokio::time::sleep(std::time::Duration::from_secs(15)).await; 554: if !continue_processing {
555: break 'outer; 556: } 557: } 558: } 559: } 560: 561: #[cfg(test)] 562: mod test { 563: use super::*; 564: use crate::config::configuration::build_setting; |
INFO Sensor RustSensor [communityrust]
11:44:14.895 ERROR Unable to parse file: src/service/crons/process_historical_event/client.rs
11:44:14.897 ERROR Parse error at line 554 column 25:
544: // transfer reward
545: let reward_fut = client.transfer_rewards(process_reward_rx);
546: let (_res1, _res2) = tokio::join!(process_event_fut, reward_fut);
547: if let Err(err) = super::state::del("quest", ".", redis_pool.clone()).await {
548: tracing::error!("fail to remove quest from queue due to {err}");
549: }
550: }
551:
552: tracing::info!("process event sleep for 15 sec");
553: tokio::time::sleep(std::time::Duration::from_secs(15)).await;
554: if !continue_processing {
555: break 'outer;
556: }
557: }
558: }
559: }
560:
561: #[cfg(test)]
562: mod test {
563: use super::*;
564: use crate::config::configuration::build_setting;
11:44:20.149 INFO Sensor RustSensor [communityrust] (done) | time=8452ms
11:44:20.150 INFO Sensor Import of Clippy issues [communityrust]
11:44:20.153 INFO Importing /opt/atlassian/pipelines/agent/build/clippy-report.json
11:44:20.265 INFO [stdout] /opt/atlassian/pipelines/agent/build/src/lib.rs
11:44:20.296 ERROR Error during SonarScanner Engine execution
java.lang.IllegalArgumentException: 12 is not a valid line offset for pointer. File src/lib.rs has 11 character(s) at line 6
The text was updated successfully, but these errors were encountered: