Dreamweaver CC 2017 not consistent when compiling SCSS files - compilation

When I open a .scss file and save it Dreamweaver compiles it fine for the first few times. But after 4-5 saves it stops compiling the CSS and gives me a "Cannot lint the code. Click here for troubleshooting" error. Then if I quit dreamweaver and then restart it, I can compile 3-4 files then the same error starts up again. I visited one of dreamweavers help articles that instructed me to create a NodePort.json file and put { “toolingport” : 8010 } in it and I did but that didn't help. I would love to use dreamweaver if I can, but I am open to another way to compile scss files if it is easy enough.

I recommend you check out grunt. http://ryanchristiani.com/getting-started-with-grunt-and-sass/ - In my humble opinion using Dreamweaver to do anything "tricky" is best avoided... if you get into grunt you'll never look back :)
Especially when you hook it up to LiveReload. At that point you'll save your SCSS (in Dreamweaver) and the browser will automatically refresh showing your changes :) It's magical. (Plus it does lots more)

Related

PhpStorm/JetBrains: How to Automatically Upload a Gulp Sass generated CSS file

I'm wrecking my brain trying to figure out how to word this so it's understood.
I'm basically using PhpStorm. I have a gulpfile that generates a minified CSS file from a src/sass dir, which gets renamed and placed into the public/css folder.
What I would like to do is automatically upload this minified css file to the server using PhpStorm's deployment tools.
I'm able to get all of the .php files to upload (obviously) and the Sass is able to auto-upload (I disabled this), but I can't figure out how to automatically upload the CSS file that's generated. It's annoying having this fluid setup and then having to manually upload the css file each time I do a few edits.
Any ideas? No pun intended, lol.
Files created or modified by gulp/grunt/etc are considered external changes as they are not created in IDE itself but by some process that runs completely independently (e.g. gulp -watch) or was launched from IDE.
Therefore you need to enable similarly named/appropriate option in Deployment option so that IDE can upload them as well. That option is called Upload external changes -- https://www.jetbrains.com/help/phpstorm/options.html
Once IDE detects changes (e.g. when focus gets back to IDE or by running File | Synchronize) the file should be uploaded using current deployment entry in a same fashion as other (modified in IDE) files.

SSIS script task "The binary code for the script is not found"

This problem is very similiar to those:
"The binary code for the script is not found" and
The binary code for the script is not found” ssis
I have an SSIS project with multiple script files. SSIS claims that one of them has no binary even though there should be. There are no code errors, and I can build it properly. I suspect it's a VS bug because this problem appears and disappears randomly. What I mean by that is that this script is working fine, I open it to see the contents, close and suddenly this error happens! So I open it like 20 times, and it (without me doing anything) repairs itself! Any ideas on how to make it work better? It seems (though I can't confirm with 100% certainty) that this problem happens when you save the SSIS script (as in use ctrl+s) instead of simply exiting from the VS.
Things that I have tried that sometimes work:
Restarting Visual studio, opening the script without doing anything, closing it
Adding a small change to the code, exiting
Removing and adding breakpoints
Going on my knees in the direction of Redmond, Washington, and chanting the names of M$ presidents while opening and closing windows in the building to the rhythm of the windows starting sound
Randomly closing and opening the project, as well as going through items in the script component menu
Things that don't seem to work: rebuilding project, cleaning project, you know the standard stuff
I've found a solution that OFTEN works. Notice the usage of often.
1) Try restarting your computer.
2) If it doesn't work go to your system temp files directory, and find the location of SSIS temp projects (you can also open the script, right click on C# project, explore in windows explorer). Delete the project. (Make copies before deleting just in case). Start Visual studio, and once again edit script, close, hope it works. DON'T SAVE THE SCRIPT PROJECT BEFORE CLOSING! JUST CLOSE!
Note that for the second step, you can also try using a cleaning tool, like CCleaner of similar.
In my case, I did some idiotic changes to main package solution config manager and tried changing the "Target SERVER Version". That wiped out all the scripts project from each packages. Then I came to know that it is auto-generation everytime we open. That means each package is storing script project within it. But now I don't know why its not generating while pressing on "Edit Script button" (really pissed!)
Thank for suggestion. In my case, I did some idiotic changes to main package solution config manager and tried changing the "Target SERVER Version". That wiped out all the scripts project from each packages. Then I came to know that it is auto-generation everytime we open. That means each package is storing script project within it. But now I don't know why its not generating while pressing on "Edit Script button" (really pissed!)
"Lucky I am" . got an fix! Each package file was internally not linked with their Script.cs. So I opened each package file in Notepad++ and found Script.cs content within. I recreated scripts.cs in each package (steps) and pasted the content from notepad++. And it worked!!!

Get changes in .css that where not made using compass

Lets Say I have this structure of files
/sass/screen.scss
/sass/file1.scss
/css/screen.css
And I left it all good, the thing is other developer took over the project and he didn't know I used compass and he Did many changes directly to the screen.css
So I guess you can imagine that I am asking about this because I took over the project again...
Is there a pseudo automatic way of putting all the changes not included in the .scss files so I can create another .scss with all them and continue using compass just with an import?
It's like when you commit, you get the diff; but copying line by line would be too much time consuming.
I've had the same problem and solved it by doing the following:
Compile or convert your css file (the wrong one) to a nested version
(regular multiline css). You can do that using a local editor or
use this online tool and save it to
another location or as a duplicate
compile your (the right one) sass library to screen.css (nested or multiline)
Download UltraCompare.
You can download a fully working 30 day trail version. 4 Open both
files in the editor
In the top toolbar press the red = sign (Just Differences). And it
will show you all the diffs of the files
Copy/paste the diffs and run it through a sassify parser like this
one
Save it as your new.scss

How to make VS2010 quietly reload files in editor

I'm using sass for a project. I keep the CSS file open sometimes, but every time I save the .scss file VS asks me if I want to reload the CSS file, which I do. Is there any way of telling it to always reload the file type without prompting?
In Tools/Options, navigate to Documents and check "Auto-Load changes, if saved."
EDIT: note that this will affect all files; as far as I know it's not possible to enable this selectively. I'm sure an extension could change that!

Export Visual Studio Template error: "Unable to read an exported file"

When exporting a Visual Studio project to a Template (File/Export Template...) I get the following error upon clicking the Finish button:
Unable to read an exported file for the following
reason: The file cannot be opened with the selected
editor. Please choose another editor.
Screenshot http://img687.yfrog.com/img687/1756/templateerror.png
A Google search for this error has only led to several dead ends. There aren't any unusual file types in this project. Any ideas what could be going on?
By laborious trial and error (start with an empty project, add a folder, try to export template) I was able to narrow this down to a single Javascript file. As it happens, it's one of the language definitions for prettify.js (which is used on this site for code coloring). The file in question is lang-hs.js, and for some reason Windows on my machine treats this file differently from other Javascript files: It opens in Notepad, when I have the .js extension mapped to Visual Studio.
I'm not sure what the underlying explanation is, but I've already wasted enough time on this and I believe I can live without Haskell code coloring (!) so I'm just deleting this file and moving on.
It seems ".cur" files are often a culprit in this error. I have removed them from my project and now the exportation works correctly.
Microsoft staff suggest looking at log files (../windows/system32/compmgmt.msc) but this error does not spawn an entry into the Application EventLog.

Resources