Yii2 framework files deleted, but application still works - include

I'm developing a project with Yii2 in Eclipse IDE. Accidentally I deleted the Yii2 folder under vendor/yiisoft. But still my application works like a charme and it doesn't throw any exceptions. I used Composer installing http://www.yiiframework.com/extension/yii2-improved-basic-template/. The file Vendor/composer/autoload_psr4.php returns an array that includes
'yii\\' => array($vendorDir . '/yiisoft/yii2')
Can anyone tell me where it includes the yii2 framework files from?

It might be using the files from cache. Try flushing all your cache and if it still works. I doubt that it'll :P

I finally resolved the problem by cloning the project to another folder and then copying back all files to the original folder. I still haven't got a clue why this strange behavior occured (every cache I know about was flushed). However, now it works as it should. Thanks for your help.

Related

why log4j is having a problem parsing url even I have fixed the directory name to English which was Korean

while I'm doing my spring project, I got this error message
**log4j:ERROR Could not parse url [file:/Users/gim/내폴더/Workspaces/Workspace_final/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fogams/WEB-INF/classes/log4j.xml].**
so I immediately changed the directory which was named to Korean.
(and it made me to lose all the Workspace that I was working on..so foolish.
but I've re-built it through gitHub)
and now my Workspace directory is
/Users/gim/myfolder/Workspaces/Workspace_final/
but I still get the same exact error.
so I've tried cleaning server, updating maven project...and never worked.
please help me to find the problem.. thanks
Wich IDE are you using?! For intellij, you'll need to download sources and reload your project
It was kind of mac system error. when I searched,
people said I need to switch the system country, and then
switch it back to my country.
so I did that and re-opened the Eclipse and it worked!

Core Data hoses itself

Periodically I launch my app from Xcode to find Core Data errors due to an empty model file. The versioned model files are found in the main bundle but the model file still inits to nil. See my answer for partial workarounds but no solution to date.
I've verified that the files exist and are accessible using the access function. I've tried using initWithContentsOfURL and mergedModelFromBundles with the same result.
This happens randomly and I suspect something is changing the model file behind the scenes but I don't know what.
Restarting my computer seems to have solved the security related crash but this also necessitates removing the existing Core Data store file as it complains the existing one doesn't match the model file.
[UPDATE]
Restarting does not solve the problem. But reseting the current version of the Core Data model file did the trick. I changed it to an older version and then back. This question helped me think of this as something to try. Using mergedModelFromBundles: and versioning (CoreData) Still not sure what the root problem is.
[ANOTHER UPDATE]
I put a file monitor on the .xccurrentversion file in my Core Data momd file bundle to observe when the file is being touched. I've noticed that XCode (or some build tool) updates the .xccurrentversion file periodically when XCode comes to foreground (either when the project is opened or when it's been in background for a while). When it did this today it updated the file setting _XCCurrentVersionName to the main momd file bundle rather than the version file. I replaced the .xccurrentversion file with an older version and it launched. This would explain why reseting the current model version fixes this issue. I have no idea what the conditions are for XCode to update this file.

xcode not compiling with empty project

first of all, i already searched for an answer but with no luck.. i am new in xcode!
i created a project and found out at a later moment that i needed to enable core data, so since i didnt work too much on it i decided to start new. ideleted the project folder and set up a new project with the same name. BUT this project does not run. it hit s a breakpoint and throws error after error. project is empty.. if i make the exact same thing with a project that has another name then it works fine. is there sort of a cache somewhere that is interfering with my project? how can i have my new project with the same name?
thanks
Igor
If you create project with same name with having use of core data, then your model for core data should be exactly the same. Otherwise it will not read will get crashed.
Try cleaning the targets by ⌥⇧⌘K Cmd+Shift+K.

Deleting Derived Data from Xcode 4.2 project doesn't re-index project

Indexing, code completion, & coloring disappear from my projects on a fairly regular basis, usually right after I add a file. And then it returns hours or days later, usually for unknown reasons (I've tried keeping a record but it's pretty random). CMD-clicking on even known terms (like viewDidLoad: or NSLocalizedString) result in a "Symbol Not Found" error.
It happens with Xcode 4.2 (I believe it happened in Xcode 4.0.2, but not as frequent).
I have no build errors, warnings, or static analysis messages.
I've restarted Xcode.
I've tried turning precompile off.
I don't have a case where I've got a circular header file include/import.
It happens if I use gcc, LLVM, CLang (in whatever combo).
It happens if I use iOS 4.3 or 5.0.
I've tried deleting the "derived data.", and even only the Index/ path.
After deletion & re-build I see the .hmap file & .xcindex folder (filled with db.xcodeindexdb* files).
...but I can't get code-completion, symbol detection, or coloring back.
What else can I do? I sincerely appreciate the help.
Have you tried a clean install (sudo /Developer/Library/uninstall-devtools)?
I have exactly the same problem for one particular project. Following workaround works for me: apart from deleting Derived Data , I make an SVN update or revert any file of the project. If the project file itself is changed my Xcode displays wrong target ,so I close the project and re-open it and then indexing starts properly.
The most reliable way I've found to force re-indexing of the project is to change the build settings, specifically 'Run Static Analyzer' - I wish I had a real answer though.
This might seem like a silly response, but have you tried to repair file permissions under disk maintenance?
Your thread is old, but anyway...
Deleting the derived data folder helps me everytime. I have to do it quite regularly, which is very annoying. Your find the path in the xCode-Settings(cmd+,) in the locations-tab.
I just had this issue. What worked for me is clearing the derived data, then closing the project and re-opening it. It didn't reindex until I closed and re-opened the project. The project never compiled fully, so it didn't even have to finish building to work.

How do you flush Netbeans synatx error information?

Opps: This is the same as: Is there a way to reset the error badges in Netbeans? but I don't know how to mark it as such ...
My version of NetBeans 6.9.1 is currently showing a large number of syntax errors in many files, in many projects.
But, if I look at the errors, they are invalid. For example, one error says that an import is referencing a non-existent file. However, that file exists and has no syntax errors.
More importantly, despite all of the errors, the code compiles cleanly and runs correctly.
My guess is that NetBeans is caching some data (OSGi?) that is out of date or has been corrupted. This has happened before, but in the past it wasn't this bad and it magically cleared itself.
I've tried starting and stopping NetBeans, but that doesn't do it. If, as in the above case, I use NetBeans to resave the imported file, it goes away after a minute, but for large projects this is very time-consuming. (Note that I am using jVi, and saving with that embedded editor doesn't not fix the problem, it has to be the NetBeans save command).
I'd really like to find a simple way just to force the whole internal state to refresh itself. Does anybody have any ideas?
To clear this error you need to shut netbeans, go to the .netbeans folder in your home directory C:\users\.netbeans for Win 7,
in there you will see a folder for the version you are using.
in there is a folder called var
delete this folder then re-run netbeans.
This clears the cache in Netbeans allowing it to re scan the folders correctly.
I found a useful plugin you can use called Cache Eraser.

Resources