Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
The Jared Wilcurt
@TheJaredWilcurt
:+1:
matthijs-ll
@matthijs-ll
anyone can explain/help me with variable scope?
I have variables in one included file (theme) that I want to use in the next (base)
The Jared Wilcurt
@TheJaredWilcurt
$cow: #F00

.moo
    color: $cow

$cow: #00F !default

.moo
    color: $cow

$cow: #0F0

.moo
    color: $cow

becomes

.moo { color: #F00 }
.moo { color: #F00 }
.moo { color: #0F0 }

There is no scoping. It just uses whatever the current value is stored in the variable

the !default means, "use this value if this is the first time the variable was defined, otherwise ignore this assignment"
Now this changes in the latest version of dart-sass, with @use. https://sass-lang.com/blog/the-module-system-is-launched
matthijs-ll
@matthijs-ll
Thanks. Your example is about inside 1 file, not?
I'm looking for:
base-scss
  • include theme-scss (variable $nicecolor;)
  • include mixins-scss (Where I want to use theme-scss' $nicecolor)
The Jared Wilcurt
@TheJaredWilcurt
My example shows Variable Declaration/Class 3 times. you could split each of those into their own files, then have a new file import them in the same order and the result would be identical. the when you import a file, pretend that the import gets replaced by the entire file
@import '_cowF00.sass'
@import '_cowMoo.sass'
@import '_coo00F.sass'
@import '_cowMoo.sass'
@import '_cow0F0.sass'
@import '_cowMoo.sass'
Same result
The Jared Wilcurt
@TheJaredWilcurt
@matthijs-ll
Dan Goodspeed
@dangoodspeed
Hi I just started looking into what was killing my MacBook battery so fast, and looking at Activity monitor I noticed Scout uses almost as much energy as my two dozen other apps running combined, and that includes Adobe apps and Safari with at least a dozen tabs open at any given time. Just wondering if you're aware of that and if there's any plans to improve it and if there's anything I can do on my end to limit its energy consumption. I'm already only turning on the one project that I'm working on. Not sure if there's anything else I can do. I do love the app, though.
The Jared Wilcurt
@TheJaredWilcurt
interesting, the app is pretty idle, it doesn't doing anything when it's just sitting there. When running a project it is using chokidar to monitor the input folder for any file changes, but I would not expect that to use much battery. Scout-App is actually built on top of a pretty old version of NW.js (older chromium and older node) and should actually use up relatively little resources compared to most modern apps.
looks like another project using chokidar had some discussions around it's performance, gruntjs/grunt-contrib-watch#429
So it may be related
The Jared Wilcurt
@TheJaredWilcurt
I primarily develop on Windows, where it's CPU is a flat 0%, even when monitoring a project. and the ram usage doesn't fluctuate at all. It's possible that it could be less efficient on OSX, but I would be surprised, as it really doesn't do much if you aren't actively clicking on stuff or having it process sass files, and even then, it's pretty optimized
Dan Goodspeed
@dangoodspeed
I'm not 100% sure how all the processes work, but Activity Monitor says Scout is running a few subtasks of "nwjs Helper", one of which seems to be using a lot of energy.
The Jared Wilcurt
@TheJaredWilcurt
Don't know what to tell you. if it is a major concern, you may want to switch to an alternative for Sass process. Like using Node-Sass directly, or a tool like Gulp-Sass, Vite, or Webpack
though those approaches all require command line knowledge
but would be drastically fewer resources because they would not have a GUI
Dan Goodspeed
@dangoodspeed
It's fine. I was just checking in to see if you were aware of the issue or anything. I do know the command lines, but I just like the simplicity / visual feedback of the GUI, switching between projects etc.
Izzatiy
@Izzatiy
Hi there, anyone from Scout App admins, i need an access to edit the language i added on the google sheet
Izzatiy
@Izzatiy
@TheJaredWilcurt thanks for sharing. I have it translated into my language and opened an issue on GitHub under the ticket number #428.
bear.s
@wing0826
can I use Autoprefixer in scout?
The Jared Wilcurt
@TheJaredWilcurt
No. it just processes .sass and .scss to .css
koreymfirefly
@koreymfirefly
image.png
When I launch scout I get some errors in the console and the app will not work. I am running V2.18.16.
Has anyone run into this before?
koreymfirefly
@koreymfirefly
Update: Somehow a null was generated in the scout-settings.json. I removed it and it works now.
The Jared Wilcurt
@TheJaredWilcurt
you figured it out before I could get here. Yeah, those errors are related to a corrupt settings file
Ghost
@ghost~608715566da03739847b0e16
Hello. This is my first time using Scout but when I try to launch the app just closes itself. Any idea of what is happening?
The Jared Wilcurt
@TheJaredWilcurt
@ghost~608715566da03739847b0e16 I don't know, it's a pretty popular app, meaning others aren't having that issue. My assumption is it is something with your environment
you can check Task Manager and see if there is a stray Scout-App.exe process that needs to be killed
otherwise, you need to provide information like your OS, the version of Scout-App, etc
Ghost
@ghost~608733c26da03739847b0fd5
image.png
@TheJaredWilcurt I am @ghost~608715566da03739847b0e16.
OS: Windows 10 version 20H2 (OS compilation 19042.928)
Version of Scout-App: 2.18.16
So, I am using WSL. I do a map network drive to my ubuntu WSL and that happened. Console:
The Jared Wilcurt
@TheJaredWilcurt
the github avatars failing to load is new, but I can reproduce that. Fortunately that doesn't affect anything other than the About screen showing contributor names instead of faces.
Did you map it to a Drive letter, like Z: or something?
Scout-App just uses the file system to load and save files, so as long as there is a file path with a drive letter, it shouldn't know any different if it's local or on a network
but WSL has a lot of issues with compatibility with native windows software, so it could be something there
The Jared Wilcurt
@TheJaredWilcurt
if you want you could try to run the latest Scout-App from source, it has several bug fixes that have not been released yet. https://github.com/scout-app/scout-app/blob/master/documentation/running-latest.md
tem4ik.cappe
@tem4ik.cappe:matrix.org
[m]
How to reset settings in scout-app ?!
The Jared Wilcurt
@TheJaredWilcurt
@tem4ik.cappe:matrix.org View > DevTools > Console > scout.helpers.deleteLocalSettingsFile(true);require('nw.gui').Window.get().reload()
that will delete all your settings, including your projects
2ty2wo
@2ty2wo_twitter
Hi! Can I use Autoprefixer in scout now? Version 2.18.16
The Jared Wilcurt
@TheJaredWilcurt
Scout-App is just a UI for Sass. Autoprefixer is a plugin for the PostCSS ecosystem
2ty2wo
@2ty2wo_twitter
That's!)
thanks)