.less: not to compile variable file - less

On windows I'm using WinLESS to compile my .less files but I've come across a minor issue.
I have several files which import my core variables.less file. It has nothing but variables. When WinLESS compiles, it generates a blank variables.css file as well. Is there a way to stop this blank file from being created?

If you have the latest version (1.3.0) then No, I'm afraid there isn't.
But you should raise a bug on https://github.com/dotless/dotless
I am a developer their and I'll look at it soon..
[Edit]
There is some wanted behaviour - if you change a file and it goes from being non-empty to empty, you would want it to update. However if the input file is a wildcard AND the output is empty AND the file doesn't exist, maybe it shouldn't be created.
What if there is just a bug in the less file causing it to output nothing? But this discussion should be moved to a github bug.

Are you sure your file is unchecked in winless window?
I use it as in the screenshot below and don't get empty files.

Related

IOError although file name is correct and in the same folder

I imported an Excel file (.xlsx) with pandas, and it worked great.
Then, I tested my code with a copy of the same file (I changed something in its content to test something). I named it differently, and changed the name of the file in the code as well, and it worked great.
HOWEVER NOW - I tried to import the original file again (I didn't forget to change the name in the code as well) - and it doesn't recognizes it anymore!
I checked many times that the name of the file is identical to the one I wrote in the code, and that the .py file is in the same folder as the .xlsx file - I don't get it - why doesn't it work anymore?
Please look at the attached screenshot, where you can see the code, and also the actual file name and that the files are in the same folder (left side of the screenshot)
Please help me understand and fix the situation.
Thank you!
p.s - the "Invalid file name" message is what I wrote in the 'except' block after the 'try' block.
except IOError:
print("Invalid file name")
[Screenshot showing file name matches in code + excel file and python file in the same folder][1]
[1]: https://i.stack.imgur.com/FPWhM.pngstrong text
RESOLVED
Has something to do with Right to Left languages aka Hebrew and Arabic... If your language is one of these and you face the same problem - try what I did
How I found out and what I did to fix it:
I tried to rewrite the file name, and when I started deleting it, I noticed the typing pointer is facing the left side (like in languages that write Right to Left)..
After deleting the entire file name I made sure my keyboard is set to English (my native language is Hebrew, which is Right to Left) - although as you saw, I did wrote the file name in English - weird... And then I wrote the file name again - exactly the same - and it worked!
Apparently some bug regarding RtL languages...
Hope it'll help someone in the future, or that Pycharm will fix the issue...

Having trouble with program arguments and Intellij

I'm trying to run some scripts from a Coursera class. The scripts do work if I manually input the data and terminate via ctrl-d. But no matter what format I give to program arguments or place the text file, IntelliJ ignores the argument. It doesn't seem to be at all trying to access the file - I would have expected at least an error if something was wrong in the argument box but the app just runs waiting for input.
I've tried....
1) Placing the file in an "input" folder and setting the program argument to be...
./input/tinyUF.txt
2) I'm pretty sure I tried every possible folder location for the file within the path project and then using the argument...
tinyUF.txt
and "< tinyUF.txt"
3) I tried the full Windows path as the argument as well.
Nothing helps or seems to actually make IntelliJ do anything. Anyone know what I might not be doing correctly?
This feature is not supported in IntelliJ Idea yet. You can find issue here.
Remove the path from program arguments and enable check mark (Redirect input from) option in a configuration and add the file path including file name in it.
PS - I have tried it in IDEA 2019.2 (Community edition).

Two output file names resolved to the same output after changing form icon?

So I know the usual fix for this error is to delete the extra .resx file that was created when you renamed a form or something else on your application.. But I haven't created/renamed any forms, and I don't see any obvious double .resx files.. This all happened after choosing an.ico file for the icon, that's it.
EDIT:
Well I had 2 .resx files that maybe have been about the same form fDesigner.resx and fMain.resx, the last one which was created an hour ago, I deleted it, but I'm STILL getting the same error, isn't there a file that references the .resx files?
Oh well I found it, might as well answer it myself as well.. There should be a .vbproj file on your application directory, for VB.NET, I'm sure other languages have it different. But you have to edit this, whether you deleted your extra .resx or not:
<EmbeddedResource Include="yourMmainForm.resx">
<DependentUpon>yourMainForm.vb</DependentUpon>
</EmbeddedResource>
In my case Designer.resx was already dependent upon my Main form so even after I deleted the file the duplicate was still there, ok now it's fixed.

Embedding an image as a resource in a FireBreath plugin

While using VS (2010), I used to be able to add an image as a resource simply by going to the Resource view and then: Right click project > Add > Resource > Import.
I even asked a question about how to then load it: Loading an image from a resource embedded in a dll, but that changed for some reason.
Now when I try the same thing and save the .rc file, I get this message:
"The resource script FILE_PATH.rc was not created using Microsoft
Visual Studio. Comments, macros, preprocessor directives, and
conditionally included information may be modified and/or removed from
this file during the build process. Replace existing file?"
Even if I click "yes" (in order to just test things) then I get all kind of error messages at compile time:
ResourceCompile:
gen\firebreathWin.rc(8): error RC2144: PRIMARY
LANGUAGE ID not a number
gen\firebreathWin.rc(16): error RC2135: file not found VS_VERSION_INFO
etc...
I have two questions:
What is the correct way to add an image resource which will be added to the compiled plugin using CMake? I searched about it and couldn't find any helping information.
What can be the cause for this change in behavior? since I was able to use the same exact steps before and it worked.
Thanks.
First of all, I wouldn't do this; instead, I'd just put the file in the same directory as your DLL and use the path of DLL to find it.
That said, the "correct" way to do this would be to see what changes are made to the .rc file when you add it in the IDE, copy the .rc file from gen_templates/ in the root of the firebreath directory into your project, and then make those changes to your copy of the file. Any changes you make to the generated file will be overridden any time cmake is run again, which can happen any time your cmake files (CMakeLists.txt, *.cmake) change.

Icon specified in info.plist not found under the top level app wrapper

I'm trying to upload my binary to iTunes Connect using Applicaton Loader. When I select the file and hit send, it sends for about a second and then this error pops up,
Icon specified in the info.plist not found under the top level app wrapper: Default -Landscape#2x~ipad.png
What does this mean? How do I fix it?
Another setting that can cause the issue:
You have to make sure the icon files are also found under build phases/bundle resources
Edit your projects .plist file "as source code" i.e. open it in any old text editor. Then manually edit the icon file names until they make sense.
The .plist is case-sensitive when validated and archived for upload to the App Store.
If you have this in the .plist:
icon-72#2X.png
the file name can not be
icon-72#2x.png
owing to the the case change of the x character .
I rename the file and corresponding change the name of icon file in the info.plist and this solution works for me.
Clean your build
Make sure the file is actually on the file system
Make sure you can see the file in the project navigator.
Most likely step 3 will fail. If so, drag the icon from the finder onto the Project Navigator. When asked, uncheck the "copy ..blabla" option because since the file is already there where you are dragging it to, it would fail. Once the file shows up in the Project Navigator you should be golden.
Also check that you dont have 2 icons with the same name anywhere in your project folders.
I am thinking that the answer to this question will vary in time because Apple constantly changes the application validation rules. These validation rules will surface only when you are submitting your app to the AppStore.
In this particular situation, the validation error happened to me while uploading the app on 08/03/2012.
The solution was fairly straight forward. I had to move to icon files which I had located in a folder nested within the project directory all to way up to the TOP LEVEL project directory - one that has the project file in it. Once I did that and readded the files back to the Resources in my project the validation error went away.
Of course you should check that this issue is not caused by misspelled filenames i.e. differences between your plist file and true names of icon files on your file system.
Another little issue that caught me out was an empty string. I got the cryptic failure message ...
Icon specified in the info.plist not found under the top level app wrapper:
And found this lurking in my plist
<string></string>
I was similar problem's. I have resolve to do this
1/ delete your application Icone in your Target
2/ rename your icone ex: applicationNameSmall.png
3/ add your icone in your application.
This, works for me.
Error is coming up because the App Store is checking names of icon files based upon yourProject-info.plist. If they don't match, error message.
To resolve this issue: Go to yourProject-info.plist in xcode and check BOTH "icon-files" and "icon-files(IOS5)" arrays. You'll want to make sure that each string corresponds with the icon files you have in the file directory.
Change or delete mismatched string names (I had to delete a blank string). Rebuild. As other posters have noted, names are case-sensitive, so be mindful of that too.
Sometimes Icon.png files needs to be open in some image editing tool (e.g Adob Photoshop) and save as a new image. This works fine. Check attached images some times image properties don't change by renaming image file manually.
I had the same issue. I just added the image files it complained about to the project in the viewer. Not sure if that was the right thing to do, but it resolved the issue for me.
I had a silly mistake, in my info.plist the i had Icon.png, and the real file name was icon.png (no uppercase)
Fix the images issues it suggests.
Clean your project.
Build and run to make sure nothing has broken.
Delete the previous archive
Make a new archive (Product -> Archive)
This worked for me. I had to rearchive my application cause the previous one was not updated.
I had the same problem. I gone to Targets->Build Phases and deleted from there old (test) icons which I had pushed early. Good luck:)