Copy link to clipboard
Copied
Lates version of DW on updated Windows 11.
See the cursor, when it is positioned there the editor crashes. Every time.
1 Correct answer
I found out it has to do with the linebreak.
By vincnet
Thank you for your feedback, it's true that porting between Linux and Windows sometimes causes problems when using DW, for that purpose, here at the studio we're used to always having an instance of NotePad++ open, to transfer our pasted copies between OS (and even between applications) this tool has the particularity of respecting encoding (and its permutation) which is quite remarkable.
Copy link to clipboard
Copied
What kind of file is this?
I can't tell much from your screenshot.
If this is a CSS file, validate and fix reported errors:
https://jigsaw.w3.org/css-validator/
Copy link to clipboard
Copied
Thank you for your reaction.
It is a CSS file (SCSS) and the code is validated. It is an example from https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_images/Using_CSS_gradients (see code below) and validated on https://jigsaw.w3.org/css-validator/validator (see image below).
But even if it's not valid CSS, the editor should not crash.
.multi-repeating-linear {
background: repeating-linear-gradient(
190deg,
rgb(255 0 0 / 50%) 40px,
rgb(255 153 0 / 50%) 80px,
rgb(255 255 0 / 50%) 120px,
rgb(0 255 0 / 50%) 160px,
rgb(0 0 255 / 50%) 200px,
rgb(75 0 130 / 50%) 240px,
rgb(238 130 238 / 50%) 280px,
rgb(255 0 0 / 50%) 300px
), repeating-linear-gradient(
-190deg,
rgb(255 0 0 / 50%) 30px,
rgb(255 153 0 / 50%) 60px,
rgb(255 255 0 / 50%) 90px,
rgb(0 255 0 / 50%) 120px,
rgb(0 0 255 / 50%) 150px,
rgb(75 0 130 / 50%) 180px,
rgb(238 130 238 / 50%) 210px,
rgb(255 0 0 / 50%) 230px
), repeating-linear-gradient(23deg, red 50px, orange 100px, yellow 150px, green
200px, blue 250px, indigo 300px, violet 350px, red 370px);
}
Copy link to clipboard
Copied
We can see on your screen grab that the declaration containing repeating-linear-gradient seems to be missing a closing curly brace, just after the declaration of padding.
Copy link to clipboard
Copied
It's part of SCSS so that's allowed.
And in anyways, it should not crash the editor.
Copy link to clipboard
Copied
SCSS is preprocessed code for advanced developers. It's used in SASS or LESS files to create global site mixins, variables & functions
Have you designated a preprocessor to compile SCSS into standard CSS code?
Dreamweaver supports the following:
- Sass: 3.4.25
- LESS: 2.7.2
- Compass: 1.0.3
- Bourbon: 4.2.6
- Bourbon Neat: 1.7.3
- Bourbon Bitters: 1.2.0
See below for more details.
https://helpx.adobe.com/dreamweaver/using/css-preprocessors.html
Copy link to clipboard
Copied
Dear Nancy,
Are you wrinting this reply to me or for the whole community? Thank you for your suggestions, but it is not an answer to my bug report.
I know what SCSS is. I use it for almost a decade. And in my case it is compiled to CSS on the server.
I use DW as editor for years now to edit the SCSS files, without issues.
What happens is simple: I copied the lines of code into my SCSS file and when I clicked into the lines of code, the editor freezes. Every time. I suggest you do the same to reproduce the issue. No compiling, just copy paste it and see what happens if you try to chenge the word "red" for instance.
I hope your response will be more to the point now.
Copy link to clipboard
Copied
I am unable to reproduce the lock-up problem on my end. But I see a code error reported on line 5.
OUTPUT PANEL:
ERROR: Wrong number of arguments (1 for 3) for 'rgb'.
To resolve the error, I inserted commas between values like this.
rgb(255, 0, 0) 50% 40px
Copy link to clipboard
Copied
Have you tried any of the more general troubleshooting steps, like Restoring Preferences yet?
That can clear up all kinds of program oddities.
Copy link to clipboard
Copied
To resolve the error, I inserted commas between values like this.
rgb(255, 0, 0) 50% 40px
By Nancy OShea
In fact, it's DW that's in trouble: the fact that it hasn't been updated means that its code corrector doesn't integrate the higher levels of CSS.
The way @vincnet is coded is correct, there's no need to resort exclusively to comma-based syntax to describe a color in rgb or rgba, https://docs.w3cub.com/css/color_value/rgba.html
Copy link to clipboard
Copied
It's part of SCSS so that's allowed.
And in anyways, it should not crash the editor.
By vincnet
Sorry, I didn't realize you were using SCSS, but in any case, I prefer to use blocks that are closed.
Indeed, the error, if there is one, shouldn't bring down the editor. Perhaps the debugging context should be extended to include other parameters linked to the context of use.
Could you please make your files available, so that we can try to reproduce this crash?
Copy link to clipboard
Copied
I found out it has to do with the linebreak.
- In my Preferences, long time ago, I remember I have set that to LF (Unix) because of issues on a Linux server with the other settings.
- It appears I have to set it to CR LF (Windows) for having a copied piece of code that contains a linebreak not freezing the editor.
- But I'm afraid then I re-introduce the problems on the Linux server.
Now if my first step is going to position 0 on the line after the break and I do Backspace, so the linebreak is removed, it goes well.
Copy link to clipboard
Copied
1. There should be no line breaks inside a continuous code string.
2. Use the correct line break for your server.
3. When copying & pasting, use Edit > Paste Special > Text Only to remove unwanted formatting from code.
Copy link to clipboard
Copied
Hi Nancy, thak you for all your efforts and responses, but your answers are not in respect to my remark that there is a bug in the system. You started evaluating the (S)CSS and how I must work to avoid the given crash or freeze. That's not at debate here.
Copy link to clipboard
Copied
Given DW's minimal maintenance status, I'm showing you that PASTE SPECIAL will help you avoid such problems in the future.
You're welcome. 😄
Copy link to clipboard
Copied
I found out it has to do with the linebreak.
By vincnet
Thank you for your feedback, it's true that porting between Linux and Windows sometimes causes problems when using DW, for that purpose, here at the studio we're used to always having an instance of NotePad++ open, to transfer our pasted copies between OS (and even between applications) this tool has the particularity of respecting encoding (and its permutation) which is quite remarkable.

