My eclipse project has one glitch and one glitch only which is a line of code in automatically generated R file.
How do I find the associated error be it in layout of my resources or in my values strings? I don't know where the error or disfunction is from in the R file.
Please help and advanced thanks to anyone who answers.
Thanks
Check your eclipse Problem or Marker tab, which will tell you exactly which xml resource or image have problem.
I have had this issue on many occasions and sometimes the warnings or error markers do no point to any specific issue.
It could be a letter has been typed in a resource file such as strings.xml or incorrect syntax in one of your layout files.
The most thorough approach, and one that I have had to do when I have exhausted other options, is to go over each of your resources that you have edited since it was last working correctly and look for things like a missing semi-colon or an incorrectly placed letter.
Check your resources such as your layout files, your color and string resources. Any of your .xml files could have an issue with them so check them all. More often than not it is something miniscule so don't give up looking.
Related
In VS Code I have a tab with a plain text file I use for scratch while working during the day. I place all kinds code, questions, TODO lists, etc in this file and will reference it from time to time. It's helpful for history purposes.
At any rate, this file has ballooned up to well over 46,000 lines over the years and I'm now seeing this odd phantom line being injected at my cursor. I am unable to select it or remove it. I thought it was being displayed as VS Codes way of letting me know that a software update was available but when checking that was not the case. This is what it phantom line looks like, it seems to contain a history of CSS classes used over the years which is odd.
If I restart VS Code it goes away for a little while but then reappears. I have a feeling it might be because of the number of lines or perhaps memory but can't say for certain.
Has anyone else seen this behavior? I've probably enabled some setting by mistake and have no idea how to disable it.
Any suggestions would be greatly appreciated. Thank you!
Turns out it was the HTML End Tag Labels plugin that was trying to auto complete some HTML that was somewhere within the 46k lines.
I would have thought by identifying the file as type Plain Text, the plug-in would ignore trying to close HTML tags (since its not an HTML file) but alas that's not the case.
Thank you Mark Ahrens for the tip!
For a while, I have noticed that my config.js file is grey, compared to most other files in the editor. I also have an issue where, other than text/html and image/x-icon, the MIME type of static assets cannot be established. I am wondering whether the two issues are related.
Aside from setting up the server, the config file serves a base Url along with NodeJS global variables to be interpolated into placeholders in the HTML document. While I don't see any reason for there to be an associated problem, I am perplexed why the file is grey and not the same colour as the other .js files.
I have tried to find information on the problem, but I cannot describe the problem well enough to find answers to the issue browser searching. I have tried to find a VSCode forum, but there isn't one where I could make enquiry, even if I were able to articulate my problem.
If anyone has answer to why the file is greyed-out I would appreciate it.
I got a very weird situation that highly needs your assistance. I appreciate your effort and time in advance.
I have a machine which produces a text file that records some information of the machine's working status such as, the coordinate of the drill head and the rotating speed used at that position. While we examine the text file, it appears to be unreadable because most of the contents are garbled. Please see the attached figure. http://ppt.cc/sA1I
If I open it with UltraEdit I see: http://ppt.cc/TrnV
As you can see some part of the file is readable; however many unrecognizable characters, which should be those numeric values we want.
Two reasons that I believe this problem should be solved by Matlab. First, I am sure this machine has many built-in matlab code inside for analysis purpose. Second, we have a .exe file, which is compiled by Matlab, can restore the garbled text file into arranged and readable format (the values of the coordinates are restored).
We desperately want to see the contents of this file by ourselves. Please kindly provide solution or idea or any direction for me to solve this issue.
Sincerely,
Old question without answer: For the record, a suggestion.
Sounds like a case of Mojibake, a problem with text encoding. Here's how I solved it.
Background: I had text files created on a Mac, others on a Windows, others still on Linux, each in different text encoding. So I got a text editor that would allow me to view the format and to change it. In my case, I used TextMate on MacOS, opened the files, picked the correct encoding upon opening, which sometimes was a Windows format, a Mac format, sometimes a Latin format -- had to use trial and error to figure it out based on a preview this particular piece of software gave me. Once I had the file opened in the correct encoding, I would save it in the utf-8format, which is not platform-specific and allows me to move my text files across various computers.
There may be more scalable methods, but I only had a hundred or so files to deal with, so I opted for the manual method, in order to personally visualize the rendering on screen, and because my files came in different encoding to begin with.
I currently had this problem, that after adding a framework (in my case Sharekit), I get dozens of these 'duplicate symbol' errors. I wonder id there is a good why to find them all at once? Currently I clean/build and then find another class/symbol that has a duplicate symbol. Finding them all at once would really speed up this painful cleanup process.
Many thanks for your thoughts.
Sometimes, you end up compiling (and then linking) a file twice. In that case: Delete all the library's source files from your project (and also from any dependencies). Then re-add them to your app… or you could just create a static lib and link to that (once).
Otherwise, some more specifics as to why there are duplicates in the first place might help us narrow it down.
How does the Eclipse editor work to enable code completion? For example, within the XML editor for Hibernate property files, if I ctrl-space within a tag, a list of possible value relevant to hibernate will show up.
I understand that the XML editor is pre-configured to understand xml tag, but how about tag specific to a particular framework? How does Eclipse know about that?
I believe that the eclipse XML editor gets the content assist information from any referenced DTDs, or XMLSchema information it associates with the XML file. Try this experiment: Remove the DOCTYPE entry at the beginning of the file and see if content assist still works.
If you're interested in writing your own content assistants, you may want to start by reading the following:
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/editors_contentassist.htm
In a nutshell, like most things in Eclipse, this is a platform hook. When you press the button, it queries all the registered assistants (I'm simplifying here), and they provide suggestions based on the current element or even the current content.
When writing a source editor or viewer for a particular language or document type, it is common to provide at least some rudimentary content assistants.
Removed the DOCTYPE entry at the beginning of the file and im now able to see the commands while typing ctrl+space...
To add to Uri's answer, you can define your own editor for your own language with XText as long as you have a simple EBNF grammar language for your DSL (domain specific language).
You will have:
syntax coloring,
model navigation (F3, etc.),
code completion,
outline view, and
code templates.
Here is a solution you can work. Actually I was facing a same problem with struts.xml file. I was not able to produce tags by cntrl+space
what i did was...
go to Preferences...Java...Editor...Content Assist...Advanced
check all the check-boxes ON and press OK.
sometimes the problem persists due to some false alarming in eclipse. If it happens, just delete your xml file and create a new one in same location.
I hope it will help.
I had the same issue while using the struts.xml file.
I got fix when I tried below...
Go to “Preferences>Java>Editor>Content Assist>Advanced“. Make sure “Java Non Types Proposals” are ticked on both the places as shown in the image below then click Apply and OK button:-