Приветствую товарищи.
Занялся освоением LESS и не очень удачно…
Сделал все, как тут описано — http://rightblog.ru/2773
Проблема возникла в LESS2CSS
[less2css] Using minifier : --clean-css
[less2css] Using verbose mode
[less2css] Converting C:web-testtest-lessstylesstyle.less to C:web-testtest-lessstylesstyle.css
error: less2css error: [WinError 2] Не удается найти указанный файл
Чего я только не шаманил с настройками, и как только в бубен не бил, не хочет работать.
задан 24 апр 2017 в 23:10
В баг-трекере LESS2CSS написано следующее:
- Проверьте путь к less файлу (у вас вроде как корректный)
- После назначения путей надо перезагрузить Sublime.
- Некоторым также помогала перезагрузка Windows (скорее всего, это все тот же пункт 2).
В общем, как что-то поменяли с путями (к файлу less, к less.js и т.д.) — надо перегружать Sublime. Попробуйте.
ответ дан 24 апр 2017 в 23:53
labrislabris
2,1151 золотой знак8 серебряных знаков15 бронзовых знаков
4
Мне помогла эта статья.
Я пробовал менять path, сто раз перезагрузил sublime, но благодаря этой статье у меня всё же получилось одолеть sublime.
Достаточно было в cmd установить два плагина и всё!
ответ дан 29 окт 2020 в 4:04
GrekovGrekov
591 серебряный знак10 бронзовых знаков
Такая ошибка появляется, если вы не указали путь к less.js-windows от Lessc
нужно скачать Lessc c GitHub
распаковать в любую папку, добавить эту папку в переменную окружения Path.
после этого обязательно перезапустить Sublime.
ответ дан 25 янв 2019 в 16:22
Я столкнулся с этой проблемой и в этом посте я попробую сэкономить вам кучу времени на ее решении.Итак, если вы получили это сообщение, то это означает что вы установили менеджер расширений package control, плагин less, и плагин Less2Css. Честно говоря, я сам столкнулся с этой проблемой и начал донимать уважаемого Google поиском ее решения.
Стройного и лаконичного мана я не нашел нигде, поэтому постараюсь его изложить тут.Как только мы попытаемся сохранить .less файл, то получаем такую ошибку:
В интернете полно советов типа «нужно скачать Lessc c GitHub распаковать в любую папку, добавить эту папку в переменную окружения Path. после этого обязательно перезапустить Sublime.» Зря только время на это все потратил. Все дело в том, что установка less у нас не закончена. Сначала скачиваем Node.js и устанавливаем.
Потом запускаем cmd от имени администратора
и вводим команду для установки компилятора less:
npm install -g less
Перезапускаем Sublime text 3 и пробуем сохранить less файл. Появляется новое сообщение об ошибке что у нас не установлен плагин минимизации кода clean-css:
У нас есть два пути: установить плагин или отключить его в настройках. Если вам нужен сжатый код в скомпилированном из .less файла .css файл, то устанавливаем плагин:
npm install -g less-plugin-clean-css
Теперь .less файл сохраняется и компилируется файл .css. Вот так выглядит код в файле .less:
А вот так выглядит код в скомпилированном .css файле плагином clean-css:
Так что если хотите оставить исходный код из .less файла, то отключим этот плагин. Двигаемся: Preferences->Package settings->Less2Css и тут нам надо открыть два файла: Settings-Default и Settings-User. Копируем весь код из Settings-Default в Settings-User. В Settings-User находим «minify»: true, и true меняем на false.
Сохраняем, перезапускаем Sublime text 3. Теперь вид кода в файле .less и в файле .css идентичны.
Если вас напрягают постоянные запросы купить Sublime Text 3, то можете скачать коды активации Sublime Text 3 тут.
Оставить комментарий
Вы должны быть авторизованы, чтобы оставить комментарий.
-
Home -
Software Programming -
Unknown behaviour LESS2CSS in Sublime Text 3 (less2cs error: [WinError 2] Not able to find the file.
This topic has been deleted. Only users with topic management privileges can see it.
-
Hello, comrades.
I’ve been learning LESS, and it’s not good. ♪
I’ve done everything as described here— http://rightblog.ru/2773
The problem arose in LESS2CSS.[less2css] Using minifier : --clean-css [less2css] Using verbose mode [less2css] Converting C:web-testtest-lessstylesstyle.less to C:web-testtest-lessstylesstyle.css error: less2css error: [WinError 2] Не удается найти указанный файлThat I didn’t shamanize with construction, and as soon as I hit the bubble, I don’t want to work.
-
♪ https://github.com/timdouglas/sublime-less2css/issues/51 It reads as follows:
- Check the way to a less file.
- Once the paths have been set, need to reboot Sublime.
- Some also helped reboot Windows.
So, how did something change from the tracks (to the file less, to less.js, etc.) — you need to overload Sublime. Try it.
- 1 / 1
Suggested Topics
-
2
0
Votes2
Posts0
ViewsJ
There’s a CSS for the div’s, not just for them, like «float.» It is responsible for leaking the container to the contents outside. Example:<div class=»content»>
<div id=»slide1″ style=»float:left»>
</div>
<div id=»slide2″ style=»margin-left: 400px; float:left»>
</div></div> -
2
0
Votes2
Posts0
ViewsB
The problem is <div class=»carousel-inner » id=»inner»> that is extrapolating page height, creating an overflow greater than page content, and consequently creating an empty space after footer.Solve by setting the height in 100% so that it doesn’t get bigger than your container:#inner{
height: 100%
}
You can test by running this code on the console:$(«#inner»).css(«height», «100%»);
You’ll see that the problem instantly disappears. -
2
0
Votes2
Posts0
ViewsE
This is much easier) const wss = new WebSocket.Server({server:app});
let userOn={};
function time(){
return parseInt(new Date().getTime())
}
wss.on(‘connection’, function(ws,req) {
const user=getUser(req.url);
let user_id=user[‘viewer_id’];
if(MD5(user[‘api_id’]+»_»+user[‘viewer_id’]+»_»+appkey)!==user[‘auth_key’] || !user[‘auth_key’]){
console.info(‘Conn End’);
ws.close()
}else{
ws.onclient=user[‘viewer_id’];
ws.userFind=»»;ws.timeconnect=time();
userOn={[parseInt(user_id)]:time()};///Функция отключения
ws.funcDouble=function(){
ws.send(JSON.stringify({doubleClient:»запущено в другой вкладке»}));
ws.close();
};
//Поиск пользователя с таким-же id
ws.typeDouble=function () {
const clientOn=wss;
let i=0;
let findDouble = new Promise((resolve, reject) => {
clientOn.clients.forEach((exit) => {
if (exit.userFind === ws.onclient){
exit.funcDouble()
}
i++;
if (i === parseInt(clientOn.options.server._connections)) resolve();
});
});
findDouble.then(() => {
ws.userFind=ws.onclient;
});
};}
ws.on(‘close’, function (data) {
if(data !==1005){
delete userOn[user_id]
}
console.info(‘exit’,data)});
ws.on(‘message’, function (data) {
console.info(data)
try{
const userSend=JSON.parse(data);if(userSend===data.doubleClient){
console.info(‘double’)
}//console.info(userSend)
}catch (e) {
console.info(‘Не JSON’)
return false
}})
});
-
2
0
Votes2
Posts0
ViewsF
Hierarch: a .foto-legenda is above im@charset «UTF-8″;
body {
background-color: gray;
color: rgba(0, 0, 0, 0.7);
}
p {
text-align: justify;
text-indent: 50px;
}
/*formatação imagens*/
.foto-legenda > img {
border: 8px solid red;
}<figure class=»foto-legenda»>
<img src=»glass-quadro-homem-mulher.jpg»>
<figcaption>
<h3>Google Glass</h3>
<p>Uma nova maneira de ver o mundo></p>
</figcaption>
</figure>Is this code what you’re looking for? -
2
0
Votes2
Posts0
ViewsA
You have a file defined as HTML — it can be seen in the right bottom corner.Ctrl+Shift+Pss php — Full team: Set Syntax: PHPEnter
-
2
0
Votes2
Posts0
ViewsE
$(document).ready(function() {
$(«.btn»).click(function() {
$(«.div1″).slideToggle();
});
});.div1 {
border: 1px solid black;
width: 100px;
height: 100px;
background: lightgreen;
display: none;
}<script src=»https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js»></script>
<button class=»btn»>Кликни по мне</button>
<div class=»div1″></div> -
2
0
Votes2
Posts0
ViewsG
The problem is that you use the method once that runs once, when you must use the method on, which every time there is a change in the database:var databaseEstado = firebase.database().ref(‘CubiculosIndividuales/Asiento1/status’);
databaseEstado.on(«value», function(snap){
status = snap.val();
changeColor(status);
});
https://firebase.google.com/docs/database/web/read-and-write?hl=es-419 . -
2
0
Votes2
Posts0
ViewsR
I had the same problem reported above and found out what happened In my case.My backups were being properly encoded in utf-8. Until one day he began to give this error reported above.I found out that it was because I had just created a table that recorded in a field a DOCUMENT, which could be pdf, jpg, png… anyway.That was the problem. It was not only registering the file name and yes, the file itself. That was causing the mistake.I deleted the record of the table and the backup worked perfectly.Instead of saving the file in the bank, I placed the bank to save only the file name and the path. The file was stored on the server itself.
-
2
0
Votes2
Posts0
ViewsD
Prompt like this:string firstFilePath = «…»; // Путь к «первому» файлу
string outFilePath = «…»; // Путь к выходному файлу с уникальными строками
string baseDirPath = «…»; // Путь к папке «База»
string baseFilesPattern = «…»; // Шаблон имен файлов в папке «База»
// Заносим все строки из «первого» файла в HashSet
var set = new HashSet<string>(File.ReadLines(firstFilePath));
// Итератор по всем строкам из «Базы»,
// обратите внимание — он «ленивый» и будет загружать в память только
// по одной строке за раз, материализовать его не нужно(!)
// и использовать именно File.ReadLines() (!), а не File.ReadAllLines()
var baseStrings = Directory.EnumerateFiles(baseDirPath, baseFilesPattern)
.SelectMany(file => File.ReadLines(file));
// Перебираем все строки и удаляем совпадения из HashSet
foreach (var s in baseStrings) set.Remove(s);
// Сохраняем строки
File.WriteAllLines(outFilePath, set);
This way will only require as much memory as the first file takes. -
2
0
Votes2
Posts0
ViewsT
what I would do is to put a variable and an accountant in order to be able to know each one that is nesitated but it is if you use mysql an axis I know this to be able to leave a message of an image and thus put a good data for the user sees it what you have to do is an accountant that every 199 gets a variable 0 or 1 if you don’t know how to code// // // // // // // // // Here is to see the chat data——————>
function cargar_datos(){
require («languages/es.php»);
$id= $_GET[‘v’];
$data_chat = mysql_query(«SELECT * from chat WHERE post=$id «);
if (mysql_num_rows($data_chat) == 0)
{
echo ‘<br><br><br><center><img src=»img/no_messages.png»></img><br>
‘.$Languages_12.’</center>’;}else{
while($res=mysql_fetch_array($data_chat)){
$user=$res[«nombre»];
$ads=$res[«ads»];
$pads=$res[«pads»];
$men=$res[«mensaje»];
$images=$res[«images»];
$audio=$res[«audio»];
$link=$res[«link»];
$tipo=$res[«tipo»];
$post=$res[«post»];
$time=$res[«time»];
$addressID=$res[«id»];
$timeMessage = time_elapsed($time);/////Mensaje
$come[0]=»;
$come[1]=»<img src=’img/publi2.png’ alt=»>»;// // // // // // // // // // // // // // Content type————————->
// // // // // // chat
$type[0]=»<div id=’chat’ class=’message__chat’>
<img class=’resize—img’ src=’img/avatar_default.png’ alt=»>
<p class=’message__text’><spam class=’message__username’>».$user.»</spam>
<spam class=’message__username_time’>».$timeMessage.»</spam>
<br>».nl2br(bb_parse($res[«mensaje»])).»</p>
</div>».$come[$ads].»»;
// // // // // // imagen
$type[1]=»<div id=’chat’ class=’message__img’>
<img class=’resize—img’ src=’img/avatar_default.png’ alt=»>
<p class=’message__text’><spam class=’message__username’>».$user.»</spam>
<spam class=’icons_img’> </spam>
<spam class=’message__username_time’>».$timeMessage.»</spam></p>
</div>
<div class=’message__chat m—user’>
<p class=’message__text t—user’><img src=’uploads/».$post.»/».$images.»‘ alt=» width=’100%’ height=’100%’></p>
</div>
<div class=’line’></div>»;
// // // // // // audio
$type[2]=»<div id=’chat’ class=’message__chat’>
<img class=’resize—img’ src=’img/avatar_default.png’ alt=»>
<p class=’message__text’><spam class=’message__username’>».$user.»</spam>
<spam class=’message__username_time’>».$timeMessage.»</spam><br></p>
<audio controls>
<source src=’uploads/».$post.»/».$audio.»‘ type=’audio/mpeg’>
</audio>
</div>»;
// // // // // // Here are the chat messages
echo Hashtag(«».$type[$tipo].»»); youtube($link);
}
}}
-
2
0
Votes2
Posts0
ViewsWe have to go to the console.export LC_NUMERIC=CFound it. http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8543 ♪ But it’s obviously not a pleasant solution because this team has to be carried out before sublime launches. You can try to write a violin that’s gonna be on top of the team first and then start sublime.
-
2
0
Votes2
Posts0
ViewsN
The method http://api.jquery.com/css/ accepts an object to change various properties at the same time. The correct syntax is pairs ‘propriedade’: ‘valor’Example:{
‘propriedadeCSS_A’: ‘valor_A’,
‘propriedadeCSS_B’: ‘valor_B’,
}
Test this in your code:$(‘#btnContactMob’).css({
‘background-color’: ‘#FFF’,
‘color’: ‘#FFF’
}); -
2
0
Votes2
Posts0
ViewsT
Not included in Android standard package https://developer.android.com/topic/libraries/support-library/index.html?hl=ja It is an error that means that it is not enough.The support library is often added for subordinates and UI elements. https://developer.android.com/topic/libraries/support-library/features.html?hl=ja#v7 for backward compatibilitybuild.gradleIt is written, but is it downloaded?When downloading to the development terminal, https://developer.android.com/topic/libraries/support-library/setup.html?hl=ja Please follow the instructions.Launch Android SDK Manager.In the S。 Manager window, scroll down the Packages list, look for the Extras folder and expand the content to appear as needed.Select the Android Support Repos y item.Click the Install packages… button.If you have already taken this step and there is an error when building, please update it.CommentSorry, this entry is only available in Japanese.build.gradlemaven { … }Please try to solve this problem.allprojects {
repositories {
jcenter()
maven {
url «https://maven.google.com»
}
}
}
http://mio.yokohama/?p=428 Reposのy version 26.0.0 or later of the support library changes, and Google’s Maven repository ( https://maven.google.com ) It seems to be used.Then, edit the build.gradle of the project. https://stackoverflow.com/a/45564965 -
How to generate the series 1,2,2,3,3,4,4,4,5,5,5… up to N number in c language through while?
Software Programming •
c language
while
•
• esther
2
0
Votes2
Posts0
ViewsS
I don’t know if you want it with a while Or two. If you want to get the same nesting loop, I’d say, and that’s what the JackNavaRow tells you, the statements in the for (/*declaraciones*/) Stay outside, between the keys {, } from the loop block. Only the condition stays. while (/*conidción*/). example:int main()
{
int N = 5;
int i = 0, rep = 1;
while (++i <= N) {
rep = 1;
while (rep++ <= i)
printf(«%d «, i);
}
}
the ++i and rep++ get two statements together between the three of us. for (/*declaraciones*/) condition while (/*condición*/)while i = 1 and rep = 1 Stay out.I don’t know if I explain— Dani -
2
0
Votes2
Posts0
ViewsA
Galera, I managed to fix it. The label that comes before the select it has a fixed size of 98px, so when I choose the item with a giant string, the width of the select increases the 98px that the label occupies.I put that in the select:style=»max-width: calc(100% — 98px);»
All right.
- Forum
- Unread
- Recent
- Users
- Groups
- Menu
- Job Openings
- Freelance Jobs
- Companies
- Conferences
- Courses
WinError 2] The system cannot find the file specified
[cmd: [‘H:/python/py3.7.9/python.exe’, ‘-u’, ‘C:UsersAshwin KumarAppDataRoamingSublime Text 3Packages/Kivy Language/preview/kv.preview.py’, ‘H:pythondevelopmentkivy_venvLibsite-packagesftapp.py’, ‘H:pythondevelopmentkivy_venvfirst_app’]]
[dir: H:pythondevelopmentkivy_venvLibsite-packages]
[path: C:Program Files (x86)Common FilesOracleJavajavapath;F:oracleproduct10.2.0db_1bin;C:ProgramDataOracleJavajavapath;C:Program Files (x86)LenovoFusionEngine;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files (x86)ATI TechnologiesATI.ACECore-Static;C:Program Files (x86)Microsoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100DTSBinn;C:Program Files (x86)Microsoft SDKsTypeScript1.0;C:Program FilesMicrosoft SQL ServerClient SDKODBC110ToolsBinn;C:Program Files (x86)Microsoft SQL Server120ToolsBinn;C:Program FilesMicrosoft SQL Server120ToolsBinn;C:Program FilesMicrosoft SQL Server120DTSBinn;C:Program FilesWindows FabricbinFabricFabric.Code;C:WINDOWSSystem32OpenSSH;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program FilesMicrosoft SQL ServerClient SDKODBC170ToolsBinn;C:Program Filesdotnet;C:ProgramDatachocolateybin;C:Program FilesGitcmd;C:py3.7.9;C:py3.7.9Scripts;C:py3.7.9Libsite-packages;C:py3.7.9Libsite-packageskivy;C:python_3.8Scripts;C:python_3.8;C:UsersAshwin KumarAppDataLocalMicrosoftWindowsApps;C:UsersAshwin KumarAppDataLocalatombin;H:2020py_learningPyCharm Community Edition 2019.3.1bin;;C:UsersAshwin KumarAppDataLocalMicrosoftWindowsApps;]
[Finished]
if you get above kind of problem,just check using below steps.
for dependency package installation use below link.
https://kivy.org/doc/stable/installation/installation-windows.html#alternate-win
- Ctrl+Shift+p —> to go package control windows —->type install package , then
next coming entry type package name. i.e kivy - Type kivy in the text entry
- if package installed do step 1. istead of install package type view files, hit entre, type kivy
- edit the file of the path C:Usersuser-nameAppDataRoamingSublime Text 3PackagesKivy LanguageKivy.sublime-build as below.
{
«cmd»: [«python.exe», «-u», «$packages/Kivy Language/preview/kv.preview.py», «$file», «$folder»],
«file_regex»: «^[ ]File «(…?)», line ([0-9]*)»,
«selector»: «source.kv»,
}
- select Build System as kivy , ie… Tools—>Build System—>kivy
6.run the code (ctrl+B)
Edits are welcome!.
WinError 2] The system cannot find the file specified
[cmd: [‘H:/python/py3.7.9/python.exe’, ‘-u’, ‘C:UsersAshwin KumarAppDataRoamingSublime Text 3Packages/Kivy Language/preview/kv.preview.py’, ‘H:pythondevelopmentkivy_venvLibsite-packagesftapp.py’, ‘H:pythondevelopmentkivy_venvfirst_app’]]
[dir: H:pythondevelopmentkivy_venvLibsite-packages]
[path: C:Program Files (x86)Common FilesOracleJavajavapath;F:oracleproduct10.2.0db_1bin;C:ProgramDataOracleJavajavapath;C:Program Files (x86)LenovoFusionEngine;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files (x86)ATI TechnologiesATI.ACECore-Static;C:Program Files (x86)Microsoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100DTSBinn;C:Program Files (x86)Microsoft SDKsTypeScript1.0;C:Program FilesMicrosoft SQL ServerClient SDKODBC110ToolsBinn;C:Program Files (x86)Microsoft SQL Server120ToolsBinn;C:Program FilesMicrosoft SQL Server120ToolsBinn;C:Program FilesMicrosoft SQL Server120DTSBinn;C:Program FilesWindows FabricbinFabricFabric.Code;C:WINDOWSSystem32OpenSSH;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program FilesMicrosoft SQL ServerClient SDKODBC170ToolsBinn;C:Program Filesdotnet;C:ProgramDatachocolateybin;C:Program FilesGitcmd;C:py3.7.9;C:py3.7.9Scripts;C:py3.7.9Libsite-packages;C:py3.7.9Libsite-packageskivy;C:python_3.8Scripts;C:python_3.8;C:UsersAshwin KumarAppDataLocalMicrosoftWindowsApps;C:UsersAshwin KumarAppDataLocalatombin;H:2020py_learningPyCharm Community Edition 2019.3.1bin;;C:UsersAshwin KumarAppDataLocalMicrosoftWindowsApps;]
[Finished]
if you get above kind of problem,just check using below steps.
for dependency package installation use below link.
https://kivy.org/doc/stable/installation/installation-windows.html#alternate-win
- Ctrl+Shift+p —> to go package control windows —->type install package , then
next coming entry type package name. i.e kivy - Type kivy in the text entry
- if package installed do step 1. istead of install package type view files, hit entre, type kivy
- edit the file of the path C:Usersuser-nameAppDataRoamingSublime Text 3PackagesKivy LanguageKivy.sublime-build as below.
{
«cmd»: [«python.exe», «-u», «$packages/Kivy Language/preview/kv.preview.py», «$file», «$folder»],
«file_regex»: «^[ ]File «(…?)», line ([0-9]*)»,
«selector»: «source.kv»,
}
- select Build System as kivy , ie… Tools—>Build System—>kivy
6.run the code (ctrl+B)
Edits are welcome!.








