I am using Aptana Studio 3 to develop an application in python+django. But for some reason Aptana Studio treats one of my .py file as html.
So, for that file I have no syntax highlighting, moreover when I try to comment code using Ctrl + '/', it wraps the code with html comment tags <!-- --> instead of python comment tags and it also throws a warning message at the end saying: "should insert missing 'title' element". All of this suggesting that Aptana is expecting a html file despite .py extension.
Important: I manually created this file using <Package Name>(right click) > New > File, all my other .py files are auto generated when I created the project and they are working as expected. The file compiles well however.
Any clue, what's happening?
I figured it out, create a new .py file using <Package Name>(right click) > New > PyDev Module. Basically create New PyDev Module doesn't matter how.
Earlier I used New File instead of New PyDev Module, which led to Aptana treating it as regular file (html probably) despite its .py extension.
Related
I am programming a Qt application in MS Visual Studio Community 2019. I am trying to add an icon to my application window with the following command, and I also have the corresponding file my_icon.ico mentioned in the .qrc file:
setWindowIcon(QIcon(":/my_icon.ico"));
When I build and run my program in VS, everything is perfect - the icon replaces the standard one. However, when I make a release and try to run the resulting stand-alone executable, the icon is NOT shown! This is particularly weird as images which I also mention in the .qrc file (pictures for buttons) are on their places.
I have tried to put my_icon.ico alongside the .exe file, but with no result.
I give up, please give me a clue what might be happening here.
Thanks to chehrlic, I understood that it was as simple as running the windeployqt.exe on the .exe file build by the Release configuration by Visual Studio.
This will link all required libraries dynamically.
Avoid using this tool while the .exe file is inside the Release folder as it will create many other files & folders near .exe file. I have copied my_app.exe to a fresh directory and ran the following command from it:
C:\Qt\5.14.1\msvc2017_64\bin\windeployqt.exe my_app.exe --release
See https://doc.qt.io/qt-5/windows-deployment.html for more details.
We are using TFS for source control, and we just started to use scss. I've added in webstorm the file watcher for scss. But the problem is after we commit our changes, all the files are receiving "Read-only" status.
In Visual Studio or in WebStorm if you modify the file it automatically removes the read only status and checks out that file. How can I do it so when I save an scss files to remove the css status and check out that file automatic so I wouldn't be forced to do it manually every time.
In Visual Studio it does automatically with the plugin Web Compiler and I want to do it also in WebStorm, because is much more easy to work in WebStorm than in Visual Studio.
The answered you gaved me Cece is for clear the RO status for the file I'm editing, in this case the scss file. My request was to remove the RO status for the file that is compiled by the node-sass in this case the css file.
I've created a batch file for the moment with this script:
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\TF.exe" checkout %2
node-sass --output-style=compact --source-map-embed=true %1 %2
and the Webstorm program is linked with this batch file instead of node-sass and is working perfectly.
Check Changing Read-Only Status of Files in WebStorm:
To enable explicit removal of read-only status:
In the Confirmation page of the Version Control settings, check the option Show "Clear Read-Only Status" Dialog.
Changing writable status by icon:
You can make a file writable using the lock icon in the Status bar. Open the desired file in the editor, and click the lock, as shown below:
I created my program in QtCreator, but now I have to move it to VS2012 (with Qt add-in 5.2.1). But visual doesn't find the ui files. I get:
error C1083: Cannot open include file "ui_window.h": No such file or directory"
Yes, I write #include "ui_window.h"
I tried two ways to do that:
creating new project and adding existing files
creating new project and creating new classes, and then copy code from old files to new files (named the same)
If anyone knows where the problem is?
I have had the same issue.
Does it create a header file "ui_window.h" from a file "window.ui" and put it to a directory $(ProjectDir)\GeneratedFiles?
Also you could try to compile "*.ui" file by right mouse click/compile or Ctrl+F7
If Visual Studio doesn't compile the file then check properties of the "*.ui" file:
1) check "Configuration properties/General/Item type: Custom Build
Tool"
2) check "Custom Build Tool/general/Commad Line, Description and
other arguments".
If it's empty or not set than try to reinstall "Qt Visual Studio Add-in".
Hm, I had the same problem, In my case i fixed it by first clicking on the .ui form file in visual studio, creating some qui in qtDesigner, then I commented out the include causing the problem, built the solution using release mode, got errors, re enableled the include file, and Voila it works perfectly..
I am using iexpress to make my .jar files into .exe files
for this I add the jar file(myjarfile.jar) and in run command box I type : java -jar myjarfile.jar
but after creating the .exe the cmd that is flashing says cannot find the jar file myjarfile.jar
can any body help me find what I am doing wrong
To test this, I built a simple HelloWorld.jar file (using these instructions) and tested it like so:
java -jar HelloWorld.jar
Then I made an IExpress package with it. The Install program was exactly the command I used above. This worked exactly as it should.
Two possible causes of the error:
In the IExpress wizard, there's a checkbox Store files using Long File Name inside Package. You should definitely select this option; ignore the warning that appears, as it applies to Windows 95/98. In the .sed file, this is:
UseLongFileName=1
Check that the .exe actually contains myjarfile.jar. 7-Zip will open the .exe and show you the archive contents. (IExpress .exe files are just a CAB file with a wrapper.) If the file is missing, then you'll need to check your .sed file to see what went wrong.
I want Notepad++ to treat my .less files just as my .css files and thereby get syntax highlighting for any .less files I open.
To get LESS syntax highlighting, you have to download and import a user defined language file. Here are some links to language files:
LESS language file, as listed in the Notepad++ User Defined Language List
LESS language file on GitHub
Installation instructions from the GitHub repository:
Download the less.xml file
Open Notepad++
Go to Language -> Define your language..., click on Import... and select the less.xml file you've downloaded
Close and restart Notepad++
Done
Another way to install language files is to copy them into a file in the Notepad++ installation directory.
Download from this page the XML file of the language to add (such as Less)
In Notepad++ open Language menu > Define your language... and Import the file