error=13, Permission denied when adding event in CodenameOne - codenameone

Suddenly, and for no apparent reason, whenever I try to add an event to a form element, like a button, in codenameone I get an error:
Cannot run program /path/to/project/src/theme.res: error=13,
Permission denied
This worked fine for several days before now. But now I get the error every time. I tried to create a brand new project from scratch and still get the error. What is really weird is that the /path/to/project/ is for the original project, not the new one! And when it appears for this case, it is file not found instead of permission denied. (Both files ARE there.)
I have searched all over the net and stack exchange and can't find any other reference to this problem.

I had this same issue. It happened after I deleted a project's files without removing the project from NetBeans first. Not sure why that caused it but that is the only thing I can think of because the theme.res file that "could not be found" was for the project that I had deleted.
For some reason the CN1 designer thinks that your theme.res file is the NetBeans executable.
To fix this, open the designer and click on File -> Setup Netbeans, then find your netbeans executable and select it. For me (on linux) it was
home/user/netbeans-8.1/bin/netbeans

Related

Why is my VScode C compiler not working like it used to?

I have been learning C for a month now and I've been using VScode on mac to do it. I followed the following video(i.e by installing homebrew and mingw and installing extentions in VScode) and it ran exactly as shown in the video.
video---->https://www.youtube.com/watch?v=KhGnYWplLVo i.e it automatically opened a .json file after debugging.
I went to my class in the morning and it ran fine, but when I reached home and tried to run a program, it did not compile.
I used to f5(shortcut to debug) and a drop down menu popped which had GDB/LLDB and Microsoft. I used to click the GDB and it opened a .json file. I then ran the program and it would normally run in the terminal. But this time, there was a second popup after clicking GDB:-
-C/C++:gcc build and debug active file prelaunchTask C/C++:gcc build active file Detected task
-after clicking this option the following would appear and had to be closed several times one after another. This had never happened before::-
Developer tools access
And after doing this the following would be shown in vscode, and the .json file would not open:--
Debuggee TargetArchitecture not detected
The only thing I did after my class was download epic games launcher and a game from there.
Can anyone help me so that it can work again like it used to(as shown in video mentioned above).
Thanks a lot, this has been stressing me out a lot.

XCode won't open any of my folders... How do i fix this

Sorry for what's probably about to be a seriously stupid question.
I'm very new to xCode, In fact I haven't even started yet. I'm more of a VSCode Stan. However I wan't to get my newly created RECO (react x Cordova) app opened on my iPhone XS MAX, I've looked online at ways to do so and so far I've learned of one solution that required me to open my VCCode application on XCode.
I cloned my repo from GitHub and saved it to my desktop before trying to open it in the XCode editor (not sure if i'm giving too much info or not, I seriously have no idea what's wrong at this point so the more the merrier).
When I tried to open the folder using the 'Open another project...' button
(Located in the bottom right of the window).
I just get this error every time
After a couple of attempts I tried opening an empty folder and I still got the same error.
MORE INFORMATION :
The folder i'm trying to open is on my desktop.
The folder clones/opens/runs perfectly in VSCode
The XCode application is located on an external 2TB seagate drive
You should open only the xcode workspace.
From your cordova directory, run this in your terminal.
open platforms/ios/WHATEVER_YOUR_PROJECT_NAME_IS.xcworkspace

extjs publish to local pc error could not find part of path

I'm not sure what happened here but I was always able to publish to my local pc for my ExtJs project. Now all of a sudden I am getting this error..
Error Copying file Sencha.sencha\app\app.defaults.json to obj\Release\Package\PackageTmp\Sencha.sencha\app\app.defaults.json failed. Could not find a part of the path 'Sencha.sencha\app\app.defaults.json'. ExtApplication4 0
I think I did upgrade version of ExtJs a while back but not sure this is what caused it.
I also notice the files don't exist when I look at solution explorer.
Any ideas? This is pretty vital to my whole situation.
Did you upgrade Sencha Cmd to 6.5x? This new version does not create the .sencha hidden folder anymore. You error seems to be related to this.

Build project to run it in eclipse

My code runs a previous version of itself, so even though i completely remove all the code, it still runs the old one. I've read a few other posts regarding this problem, and tried it out. My temporary solution is to build the project before running it, but that is kinda stupid. the .exe file is in the Release folder, and my Debug folder dissapeared after the Clean.
How do I stop needing to build the project before everytime I need to run it?
I found out there's a button called auto build in the Launch Configuration properties window. So it build everytime I run it.

Copy file to debug directory on preview

When I use the "Start without Debugging" button in Visual Studio, my app is copied to a debug directory and runs from there, which I discovered via Environment.CurrentDirectory.
However, there is a text file in the root of the project that I also need to copy, regardless of the build options. When I press "Start without Debugging", this file is never copied, despite the properties set:
Can anyone please provide instructions on what options to include this file when starting without debugging?
Oddly enough, I don't have the "AdditionalFiles" listed in my WinForms app Build Action, also tried with VS2015. Though setting the Build Action to "Content" works for me, when doing the CTRL-F5.

Resources