Coocox Coide Compiler error : String index out of range: -1 - building

I'm having problems with my project, I'm trying to build it and coocox coide gives me this error.
Building has encountered an error
an internal error occured during building:
An internal error occurred during: "Building".
String index out of range: -1
It doesn't say where it happened or what triggered it ...
I looked all over and I can't find an answer for it, at least not for my situation.
Does anyone know how to fix this ? I could realy use help with this :/
I'm using:
CooCox CoIDE
Version: 1.7.7
Build id: 20140628-3328-1557
I also used CubeMx to generate my project, then manually inserted it into Coide.
you can download my project from here if that helps
https://1drv.ms/u/s!Ao4Ba524gyr6eDpD1FP6UonCjVo
Thanks in advance!

I have various built files open. I think it has sometimes problems to erase them. Even with the rebuild button, it (sometimes) gives an error at first (no popup window though)"something like: cannot delete files" and the second time I try it works. Maybe the build files that are erased need some time after they are deleted to be recognized by coide as deleted, and it returns an error if not done fast enough?!
Well, also with the build button, sometimes pressing a second time works!
Hmm but it is not reliable... this is a work in progress.
follow up:
If there was a compile error, the build button works when building the next time.
If there was a link error, the build button doesn't work for the next compilation.
-interesting link with similar problem: http://www.coocox.org/forum/viewtopic.php?f=2&t=4145&start=15
(unfortunatly does not solve my issue)

I faced the same problem when I tried to build with a custom scatter file for the linker.
The link #lode provided solved the issue for me:
I had to remove every occurence of the string rom from the comments inside the .ld file. I replaced the word from with fr_om and voilà, issue resolved.

Related

Have to restart Visual Studio Code to elimante mistakenly shown errors

sometimes my changes cause an error and after fixing it, VS Code wont get rid of the error. In that case I have to close VS Code and reopen it.
Example:
I add at first an click-event to an html-element, that isnt defined yet in the component.ts File. Angular shows the red unterline and the error message. After defining the missing function, the error does not disapper (even if I save all files and/or refresh explorer). I have to restart VS Code.
Of course I can prevent this using the right order. But sometimes there are errors like this.
Does anybody have an idea how to fix this?
Thanks and best regards

Swift Compiler Error Group

Sorry to post this again. But I really got lost in solving this bug in my Xcode. I am using Xcode Version 8.0 swift 3 , I have got this error when building the project:
Command failed due to signal: Segmentation fault: 11, and it shows me in the storyboards the code in black color for a while. Also, there is a notification says An internal error occurred, Source editor functionality is limited, attempting to restore, Report a Bug.
I have searched a lot and most things I found about building, cleaning, reopening the project. Also, I tried to uncheck and recheck the Automatically managed signing for my project.
I hope to hear from you the best solution for my problem
waiting for your replay greatest coders
I had this same issue. I went to the 'Debug Session' window and saw I had type conversion issues. I was trying to determine is an object was a Set and needed to evaluate it as a Set<String>.
Not sure if that'll help you, but check out the 'Debug Session' window to see which view controller class has the issue and what it is.

Mysterious compile error with groovy eclipse plugin

So, I am developing with eclipse 4.2 and groovy 2.3 / jdk 1.6.0_35.
I just worked on one of my classes when suddenly eclipse showed me a dozen compile errors in different classes out of nowhere. It says e.g. it can't find a class in an import statement, although the class is there. Running the code works fine even though the errors are shown. If I add a comment to one of the classes and save it, some errors go away but may come back as soon as I change another (totally different) class.
It also shows me some errors like these:
error description:
As you see, the error is totally unrelated (Optional is totally independent of any other class, also of course independend of the mentioned classes in the error message). If I add a comment somewhere and save Optional, the error goes away but comes back as soon as I save any other class.
I cleaned the project, deleted the bin-directory and restarted eclipse/computer but it didnt' help. Does anyone already experienced this behaviour? How to fix it?
I got similar problem and error was in file above one with compilation error. So try to comment file before and check if this solve problem.

Netbeans Compiler Error in Wrong Place

I am new to Netbeans. Netbeans shows an error as below:
But the error text is: incompatible types: List cannot be converted to Vertex. I'm sure it's referring to the code below it that uses Vertex in many places, but the file is long and I have no idea which line to go to. Is there a way to fix this, or is this a bug, or am I interpreting everything wrongly?
Bug still there, but a workaround is to run the project and the compile error will show up in the output. I'm used to Eclipse where you normally can't run a project with complier errors. But this is a way to find the line.

JavaScript validator throws NullPointerException in Eclipse

I'm coding some PHP files on Eclipse IDE, and I keep getting an error that says "Building Workspace has encountered a problem" -- Workspace is the name of my project area.
When I click on the "details" link I get this
Errors occurred during the build.
Errors running builder 'JavaScript Validator' on project 'Ullman'.
java.lang.NullPointerException
As mentioned, I'm working in PHP so I don't know why it's trying to set up JavaScript Validator. I can't figure out how to stop it from doing these things. Anyone know?
I'm not experienced, so please provide a detailed answer if you can.
I just ran into this problem myself and the previous accepted answer was not helpful. The problem is not the validator, it is the build. To fix go to Project -> Properties -> Builders, then disable ‘JavaScript Validator’. Since you are working with PHP your build is getting confused when you try and validate a PHP file with a JavaScript validator.
The error message doesn't really do anything it just gets annoying really fast.
http://blindcoder.wordpress.com/2011/03/04/javascript-validator-problem-in-eclipse/
Project->Properties->Builders then disable 'Javascript Validator
http://blindcoder.wordpress.com/2011/03/04/javascript-validator-problem-in-eclipse/
UPDATE: Cleanshooter's answer is the better one for PHP-specific projects. I'm leaving this answer since it is useful for people who run across the error on JavaScript files because of crashes in the JavaScript parser.
You can disable part of the JavaScript validator with Eclipse -> Preferences -> JavaScript -> Validator -> Errors/Warnings and unchecking Enable JavaScript semantic validation
I am using the Spring Source Tool Suit IDE and i have fixed this issue by following the below steps :
select the Project and choose the properties option.
Select JavaScript > Include Path option and then choose the Source tab.
Click on Edit button and Click Add button.
Now enter the value for Inclusion Pattern as *.js then click on Ok button and Finish.
I have solved my problem in this way. Please let me know if any one have any other way to solve this problem.
Just go to Project -> Build Automatically and disable this option.. you won't need it anyway with PHP.. because there is nothing to be build.. but this solves the NPE thrown at each save or f5 action
For those of you who are having trouble with 'dynamic web projects', you may find that none of the other answers work.
I tried all the options stated here and found that disabling the 'Faceted Project Validation Builder' solved the problem..
right click project --> Builders --> uncheck the 'Faceted Project Validation Builder'
I ran into the same problem and the above suggestions would not resolved it completely unless until I came across to this post # How do I remove javascript validation from my eclipse project?
But even then after doing all (as given the other post url), had to manually removed the "Problems" tab statements like 'Errors' and 'warning' then only it goes away completely at least in Eclipse Juno.
Hope it helps someone.
This is a problem that has happened to me on some Web Dynamic projects. Every time the project is built, I get this error:
Errors occurred during the build.
Errors running builder ‘JavaScript Validator’ on project ‘some-project’.
java.lang.NullPointerException
At a first sight it seems that a Javascript validator is throwing a NullPointerException, so probably you will try to disable Client-side Javascript validation from Project->Properties->Validation… but I tell you that the problem is not there, you must go to
Project->Properties->Builders
then disable Javascript Validator.
Problem solved.
Project->Properties->Builders then disable 'Javascript Validator,
this fixed my problem:
Errors occurred during the build.
Errors running builder 'JavaScript Validator' on project 'xxx'.
29
This is a problem that has happened to me on some Web Dynamic projects. Every time the project is built, I get this error:
“Errors occurred during the build. Errors running builder ‘JavaScript
Validator’ on project ‘some-project’. java.lang.NullPointerException”
At a first sight it seems that a Javascript validator is throwing a NullPointerException, so probably you will try to disable ‘Client-side Javascript’ validation from Project->Properties->Validation… but I tell you that the problem is not there,
you must go to Project->Properties->Builders then disable ‘Javascript
Validator’.
Problem solved. Indeed is not a real problem, but the message is a bit annoying because it happens in every build
in my case, right clicking on project -> "Project->Properties->Builders then disable 'Validation" worked for me.
I had the same error. It happened after adding the D3 js libraries.
My solution to get rid of it:
-I moved the libraries to a server and the html page gets them from there.
-Removed the libraries from the project as they weren't needed there.
Problem solved for me.
Recommandation:
- remove the latest added libraries from your project and see if the error message disappears.
- get the libraries dynamically (in the html) from a server but do not have them in your project.
It doesn't solve the root of the problem but it does help to get rid of immediate frustrations.
Good luck.
Disabling ‘Javascript Validator’ is not the ideal solution. It is just hiding the problem.
What worked for me is this:
Switch to a new or a different workspace from File >Switch Workspace
and then import your existing project into this new workspace.
Problem solved.