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
Environment
VSG Version 3.23.0
Environment VSCode 1.92.2 on Windows 10
Describe the bug
When using the if_009 rule to align if statements that have multi-line boolean expressions while using smart_tabs with 4 spaces for indentation, the output is incorrect. It does not matter how the conditions of if_009 is set.
To Reproduce if_009: align_left: 'yes' align_paren: 'no'
Expected behavior Expected Output:
` when state_lo_active =>
if pwm = '0' or force_lo_pulse = '1' then
oc_lock <= '0';
end if;
if hi_locked = '1' or oc_lock = '1' or do_ls_on_fast = '1' then
state_locked <= '1';
else
state_locked <= '0';
end if;
if over_current_lo_fast = '1' then
state <= state_dt_init_hi;
hi_start <= '1';
oc_lock <= '1';
elsif over_current_hi_fast = '0' and lo_mpw_end = '1' and state_locked = '0' and
(pwm = '1' or force_hi_pulse = '1') then
state <= state_dt_init_hi;
hi_start <= '1';
oc_lock <= '0';
end if;`
Actual Output:
` when state_lo_active =>
if pwm = '0' or force_lo_pulse = '1' then
oc_lock <= '0';
end if;
if hi_locked = '1' or oc_lock = '1' or do_ls_on_fast = '1' then
state_locked <= '1';
else
state_locked <= '0';
end if;
if over_current_lo_fast = '1' then
state <= state_dt_init_hi;
hi_start <= '1';
oc_lock <= '1';
elsif over_current_hi_fast = '0' and lo_mpw_end = '1' and state_locked = '0' and
(pwm = '1' or force_hi_pulse = '1') then
state <= state_dt_init_hi;
hi_start <= '1';
oc_lock <= '0';
end if;`
Screenshots
Additional context
I have not tested if this happens if the if statement is not already indented.
The text was updated successfully, but these errors were encountered:
Environment
VSG Version 3.23.0
Environment VSCode 1.92.2 on Windows 10
Describe the bug
When using the if_009 rule to align if statements that have multi-line boolean expressions while using smart_tabs with 4 spaces for indentation, the output is incorrect. It does not matter how the conditions of if_009 is set.
To Reproduce
if_009: align_left: 'yes' align_paren: 'no'
Expected behavior
Expected Output:
` when state_lo_active =>
Actual Output:
` when state_lo_active =>
Screenshots
![Capture](https://private-user-images.githubusercontent.com/25343537/361331788-8fbdeab5-4a30-43c9-a409-d7df3c7c9927.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NDQwNzUsIm5iZiI6MTczOTU0Mzc3NSwicGF0aCI6Ii8yNTM0MzUzNy8zNjEzMzE3ODgtOGZiZGVhYjUtNGEzMC00M2M5LWE0MDktZDdkZjNjN2M5OTI3LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE0MzYxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4ODk1YmNkYzNlMTgzZDY2MDBmZjJhMDZmMGNjNWRmMjcxZGE0M2Y2NzI2YzUwNmZkMWY5YWI5MTkyNTM5ODMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Qzn0b2luaOoTJPyBgJmWQI0LgUTCRsdcCoDY37qnzPQ)
Additional context
I have not tested if this happens if the if statement is not already indented.
The text was updated successfully, but these errors were encountered: