I'm pretty new to coding so bear with me. I coded a simple program in python 3 and created an .exe file with pyinstaller. I noticed that when i open the .exe, the cmd window opens as well and runs in the background. How would I go about running it silently, so just my window opens up. thanks for any insight
I'm tasked with creating a simple calculator application for entry to a programming course. I'm having issues with Terminal :(
I'm not looking for an answer to my overall task, I just want to know why Terminal wont RUN!! What am I doing wrong?
Steps as follows:
Create a directory that you will keep your Calculator application in. Call it
something sensible, like "Calculator".
Open up a command prompt and navigate to your calculator directory
Run npm init to create a new Node.js project. Use the default answer to every
question it asks you (just press "Enter") - don't worry if you don't understand
what all the questions mean!
If it doesn't do anything after the final question "Is this ok?", double-check
there's a file in the folder called package.json . If it's there, everything went
smoothly and you can exit the npm init process by typing in the console
Ctrl + C .
So my problem is... when I run npm, all that happens is my Mac asks if Terminal can access or change files in my system, I click yes, then Terminal doesn't do anything from there, no questions etc I just get:
I can't see package.json, so I take it it hasn't worked properly? How can I fix this to move on?
I'm using zsh on terminal.
Well, first off. What ide do you use? (Personally I like Visual Studio Code).
I'm not sure what the short command is for you to open up the terminal but just google it. Otherwise, you can click "Terminal" on the very top and open a new terminal.
When you do this, you will get a new window at the bottom of your screen. This window has some tabs, make sure you are in the terminal tab.
While there, type "npm init".
This will give you your package.json-file.
If you want to use your terminal for outputs I recommend you get nodejs too.
I'm trying to find out if is possible using vim as IDE to write python/c programms. Today I've installed pyclewn as a debugger. When I open it with :Pyclewn pdb tests.py all pyclewn windows are opened inside nerdtree window, is it possible to fix this issue and place them in main window.
Ok, I've got it, what I need
let g:pyclewn_args = "--window=bottom"
Next question, how to restart python script again?
Maybe some one can suggest tutorial for pyclewn?
When trying to update Sublime Text 3 to version 3083 on a Windows 10 computer I keep getting an error message at the end of the update saying
'Unable to rename C:\Program Files\Sublime Text 3 to C:\Program
Files\Sublime Text 3 (3083), error code: 32'
I looked it up on Microsoft's website and error 32 stands for 'The process cannot access the file because it is being used by another process'.
So I tried closing down all other programs and tried updating again but I still get the same problem. I have also tried running the program as an administrator but the update creates the same error message.
I only have package control installed and the Haxe plugin installed and so I can't find any other reason why it wouldn't work, although I haven't updated it before.
Can anyone offer any advice?
All the application is trying to do is copy the new files into the sublime program folder. You can do this yourself:
Close your Sublime Text program
Open a file browser C:\Users\...\AppData\Local\Sublime Text 3\Update (or wherever your update landed)
Open another C:\Program Files\Sublime Text 3 (Make a backup of this folder if you want to be cautious)
Copy everything from the update to the Program Files folder
Run Sublime Text (you should now see the update dialog)
Remove the update folder and backup if everything looks good
For me, I found that my antivirus (Malwarebytes) was causing the issue.
(I was alerted to this because I tried to update using the installer from the website and it warned me that Malwarebytes was holding on to files it needed to complete.)
I cancelled the installer, turned off Malwarebytes, and opened sublime to let it update itself normally and it worked nicely.
It seems this is common:
https://forum.sublimetext.com/t/build-3143-flagged-as-virus/31272?u=spenceryue
I can't believe chrome.exe (Google Chrome) was using the folder where Sublime Text was installed. Removing that lock with unlocker fixed the update error.
It's not like I have ANY plugin or open tab related to sublime text on chrome.
I really recommend unlocker though, saves you more than one time.
I was troubled by this problem for some days on Windows 10, and resolved it at last.
Navicate to sublime text path, like 'C:/program files/sublime text/'
find 'update_installer.exe' and 'sublime_text.exe'
Open the file's properties - compatibility - Run as administrator...(Something like that, maybe the spelling is wrong)
Select OK, and rerun sublime text.
In my case, the reason was a package (the Powershell Editor Services package), which establishes a handle to C:\Program Files\Sublime Text 3. Those processes continued to run even after cleanly quitting Sublime Text. Killing them and removing the package that spawned them allowed Sublime Text to install its update.
I found this by using Process Explorer (procexp). Here's how:
In procexp, run "Find Handle or DLL" (ctrl+F). Type "sublime" in the search field. When I did this, I saw "C:\Program Files\Sublime Text 3" appear several times in the search results.
Click on one of the results in the search window. The process that has a handle on the folder will be highlighted in procexp's main window.
Hover over the process name. You will see a Windows hint containing the command line that invoked the process. This is the command line which ran the process which had a lock on the Sublime Text 3 folder on my machine:
powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "& \"C:\Users\YourUser\AppData\Roaming\Sublime Text 3\Packages\PowerShell\editorservices/Start-EditorServices.ps1\" -EditorServicesVersion \"0.7.1\" -HostName \"Sublime Text Host\" -HostProfileId \"SublimeText\" -HostVersion \"3.0.3170\" -LogLevel \"Verbose\" -LogPath \"c:\users\yourus~1\appdata\local\temp\1526304355-EditorServices.log\" -BundledModulesPath \"C:\Users\YourUser\AppData\Roaming\Sublime Text 3\Packages\PowerShell\editorservices\modules\""
The issue is documented here and has been resolved here. So, the team is being responsive. Hopefully the procedure described here will help others find and resolve similar issues, with other processes that leave unnecessary handles floating around.
In my case the reason was I had Sublime Text opened with another user in the same computer. I closed Sublime Text for each user and then the installer worked.
For me it was a plugin running in background called host plugin 3-8 and i ended it right away by clicking end process tree in task manager (Windows 7)
I didnt change any file paths and everything was working fine. I made one quick change saved it ok, did another change and I went to save it and got the following error. How can I solve this. It will save other files ok
Unable to save
D:\xampp\htdocs\websites\dev.liverpool\style\main.scss
Error:
MoveFileEx(D:\xampp\htdocs\websites\dev.liverpool\style\.sublae1.tmp, D:\xampp\htdocs\websites\dev.liverpoolzstylezmain.scss) failed,
Access is denied.
seems it's because Windows or another program is blocking the file. Sublime text uses a temporal file instead of editing the file directly, and when you save the file uses a API command to move this edited file to the original, so this command has restrictions when one file is locked and Sublime shows this alert.
Maybe this setting {"atomic_save": false} will work for you.
Go to the path where you installed sublime text 2 and...
Right click on the sublime_text 2.exe file.
Go to its properties.
Go to compatibility section under this.
Set its privilege level to "Run this program as an administrator".
Now change settings for all users and there also check the field "Run this program as an administrator".
Apply the changes.
I just solved the same issue on Sublime Text 3 beta, Stable Channel Build 3065 by doing the following under Windows 7:
Navigate to the Sublime Text 3 executable file, wherever you have it installed.
Right-click it and select properties.
Click on the tab marked "Security"
About half way down the tab, on the right hand side, under the list of group and user names is this little button:
Click it.
If your machine is setup the way I suspect it is (otherwise you probably would not be having this issue), you should be prompted for your administrator account credentials. Enter them.
Now, select the Users group in the list, then take a look in the box at the bottom labeled 'Permissions for Users'. Put a check mark in the 'Allow' column for the 'Write' item.
Click 'Apply'
Click 'OK'
You should be set. What this does is it essentially gives Sublime the ability to write files while running with regular user privileges, no administrator level access required. Upon taking a better look at your error, what is happening is Sublime Text is creating a temp file for editing, rather than editing to file itself, then attempting to overwrite the original file with the temp on save. The problem is that the program is not being run by a user with sufficient privileges to perform the overwrite, hence the failure with an 'Access denied' message.
A simple and effective solution: Right-click on the file you want to save, in my case it is index.html, go to the properties and uncheck read-only.
The Sublime text will start working fine.
I have come across this error quite many times and by un-checking read-only file attribute of index.html, I am able to get rid of it
I found out more ways to fix this:
Close and reopen the Sublime Text windows or
Open the file with Np++, add a space, save, quit, then you're prompted by ST to reload the file, click yes, and it works again... or
Open the FTP console to see if there's a transaction in progress - then cancel it
In my case the SFTP plugin seems to be causing this problem, as when the FTP connection is timed out, the file which is waiting to be uploaded is being used, and you try to overwrite it.
This happens because you're using ScoutApp or Compass, they block your SCSS files because they are checking for changes as you specified for a directory for those files.
I suggest you reading this:
http://aspirecode.com/how-to-add-sass-support-in-sublime-text/
Good luck!
On mac using a remote volume sometimes I experience this. The solution is to remove the temp file then save again and all fixed.
IE: if you are working on test.html then the temp file would be ._test.html
Remove ._test.html then save again.
For Mac-
Try changing the destination from 'Macintosh HD' to 'Documents' or any other folder.
Worked for me.
The plugin of Superlime solved this problem. It tries to save the file as root in SublimeText.
Reference Link: https://github.com/azubr/Superlime
Try switching your SublimeText process priority to higher level in process manager (it has to have higher priority than your scss compiling app, if you're using one).
It seems to have worked for me.
if it's not working after doing all suggestions, reinstall the program
On Mac I saved the file in Home directory and it gave me this alert, later when I re saved the file again this time in Document directory the file is working now. Using SublimeText 3.
I found this occurred when the folders are read-only. Right-click on the folders where your site is contained and see if read-only is selected in the properties.
Just open it as an administrator.
Because I want to edit anything and write as admin all the time, I set this program to always open as an administrator using "Configure Applications to Always Run as an Administrator".
Just got your file folder properties which you want to save and deselect to read only attribute.