Author Topic: SlickEdit thinks Rust attributes start open a clause  (Read 1118 times)

spongyryno

  • Community Member
  • Posts: 53
  • Hero Points: 0
SlickEdit thinks Rust attributes start open a clause
« on: April 14, 2024, 12:48:24 PM »
Open a new Rust file in SlickEdit (such as "foo.rs"), and type in an attribute, such as:

Code: [Select]
#[allow(dead_code)]

Now, at the end of the line, hit <ENTER>. You should be in column 1, the same column as the #.

But you're not... you're indented one tab. Why?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6939
  • Hero Points: 531
Re: SlickEdit thinks Rust attributes start open a clause
« Reply #1 on: April 14, 2024, 01:15:08 PM »
We will look into this

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6939
  • Hero Points: 531
Re: SlickEdit thinks Rust attributes start open a clause
« Reply #2 on: April 14, 2024, 04:16:52 PM »
A hot fix is available for this.

Download the hot fix here:

https://www.slickedit.com/hotfixes

Then load the hot fix: Help>Product Updates>Load Hot Fix...

spongyryno

  • Community Member
  • Posts: 53
  • Hero Points: 0
Re: SlickEdit thinks Rust attributes start open a clause
« Reply #3 on: April 14, 2024, 06:53:35 PM »
The name of that hotfix appears to be "hotfix_se2802_3_cumulative.zip".

However, when I try to apply it, I get:

Code: [Select]
---------------------------
SlickEdit Pro
---------------------------
Invalid hot fix version:
------------------
The selected hot fix is for SlickEdit 28.0.2.0.
You are currently running 28.0.1.0.

However, the "cumulative" implies it should apply to 28.0.1.0 as well. Regardless, I cannot find any other hotfixes, much less one for 28.0.1.0.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6939
  • Hero Points: 531
Re: SlickEdit thinks Rust attributes start open a clause
« Reply #4 on: April 14, 2024, 09:19:22 PM »
You need to download and install SlickEdit 28.0.2 and then install this hot fix

All 28.0.1 hot fixes are already in SlickEdit 28.0.2 which also includes other fixes.
« Last Edit: April 14, 2024, 09:51:53 PM by Clark »

spongyryno

  • Community Member
  • Posts: 53
  • Hero Points: 0
Re: SlickEdit thinks Rust attributes start open a clause
« Reply #5 on: April 14, 2024, 09:54:23 PM »
Okay, I got the hotfix loaded.

That fixes:

Code: [Select]
#[allow(dead_code)]

...but not:

Code: [Select]
#![allow(dead_code)]

(Note the "!" in the 2nd column, indicating this atttribute applies globally instead of locally).

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6939
  • Hero Points: 531
Re: SlickEdit thinks Rust attributes start open a clause
« Reply #6 on: April 14, 2024, 10:57:03 PM »
Added a hot fix for this too. You can download it now.

spongyryno

  • Community Member
  • Posts: 53
  • Hero Points: 0
Re: SlickEdit thinks Rust attributes start open a clause
« Reply #7 on: April 15, 2024, 11:07:50 PM »
Thanks, Clark. With the latest hotfix, despite my best efforts, I haven't been able to find out a new way to break it.  ;D

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6939
  • Hero Points: 531
Re: SlickEdit thinks Rust attributes start open a clause
« Reply #8 on: April 15, 2024, 11:44:28 PM »
Thanks for posting about these issues.