I am working on a project which includes CLucene library. It Builds and runs fine on Xcode 6 but after upgrading to Xcode 7 it gives an error -Clucene/stdHeader.h file not found.
Any help appreciated.
Fixed it
Select the project in the navigation panel and select target to TechEFB, Then switch to "Build Settings" tab.
Goto "Search paths” -> “User Header Search Paths"
Double click the value and add the following paths of the library or file:
/Users/Lax/Documents/MyProj/subfolder/Libraries/Clucene/include/shared
/Users/Lax/Documents/MyProj/subfolder/Libraries/Clucene/include/core
NOTE: this is an absolute path. You will need to change the first part to find where your Xcode project is and replace the path.
In the same page, click on ALL option, search for “Bitcode”. Xcode will filter the options for you.
Set “Enable Bitcode” to NO
I had the same error in react-native. Was trying to add Crashlytics to my application following this crashlytics-tutorial and ended up failing the build due to RCTLog.h not found.
Using Lax's solution I also ended up in "Header Search Paths" and added the following search path
$(SRCROOT)/../node_modules/react-native/React/Base
Then it was able to build!
Related
I use command react-native init "name project" then open vscode appear to have error message code. (image)
This is what you need to do with VS Code, observe the gif carefully
Steps to resolve error
1. Go to extension
2. Click on more (...) and select Show Built-in extension
3. Search "TypeScript and JavaScript Language Features" - yellow & blue icon
4. Click on Setting icon of extension and select Disable (workspace)
5. Click on Reload / Restart Required
If you are getting this in React Native its probably a known bug in VSCode, that when Google Flow (which competes with MS Typescript) is coded, shows errors erroneously mentioning Typescript.
Your current .js code is supposed to be preprocessed by Flow into another .js file with "proper" js.
So make sure Flow is installed and then disable the Typescript parsing support. Here's the official answer on the Flow installation webpage:
Set javascript.validate.enable option to false or completely disable
the built-in TypeScript extension for your project (see gif below)...
Otherwise, you may want to stay as is and just change your code as suggested by C2P1 on March 19, 2018 on the github issue 631
To disable the [js] parser (connected to Typescript),
In VSCode menu: File -> Preferences -> User settings, (or ctrl+,) and add the following line
"javascript.validate.enable": false,
This answer was completed after seeing Idan Dagan's answer (Not the accepted answer) here: js 'types' can only be used in a .ts file - Visual Studio Code using #ts-check
And here's an excellent albeit old page about setting up the react-native environment, from Hackernoon. (You also have the VSCode React-native-full plugin)
Just disable built-in extension for TypeScript in VSCode. On the VSCode Extensions choose "Show Built-in Extensions" and then search for "TypeScript and JavaScript Language Features", Click disable then reload the VSCode. It works for me
In VScode
Press
CTRL + SHIFT + P
Use this command
Open User Settings
copy and paste the next line in the search bar in settings
#ext:vscode.typescript-language-features
ready uncheck JavaScript validation
Helped me to resolve
To disable the [js] parser (connected to Typescript),
In VSCode menu: File -> Preferences -> User settings, (or ctrl+,) and add the following line
"javascript.validate.enable": false,
This is what you are looking for. Unfortunately I haven't Googled a proper solution but we have to disable some JS checking.
https://github.com/Microsoft/vscode-react-native/issues/631
I've solved this with a plugin for VSCode "Flow Language Support". It will control the errors of the code instead of the plug-in TS-JS (built-in plugin of VS Code). In Details of plugin, guides you how to disable the original plugin TS-JS VSCode.
instead of disabling Typescript and Javascript language features extension, you can go to the extension settings, find the option Javascript > Validate: Enable, and uncheck it to remove any warnings.
I'm trying to get Sublime Text 3 to work well with Cake's ctp (view) files. The syntax highlighting works fine out-of-the-box, but I can't get the HTML autocomplete to work.
If I open an .html file, I can get the tags and attributes to autocomplete (except in the attribute "style", it doesn't autocomplete CSS styles).
However, if I work on a .ctp file, autocomplete doesn't work at all. I've already tried changing the View->Syntax settings to both PHP and HTML and nothing... I've even tried using the "Open all with current extension as..." with no result.
I've tried using different plugins (ApplySyntax, cakephp plugins, etc) with any success.
Another thing I've noticed, also for javascript code, is that for "short" tags and functions, if I place the cursor at the opening tag or {, the closing tag or } gets automatically highlighted. However, if there's a bunch of lines of code in-between (same language) then the highlight won't happen...
Any help with these things would be really appreciated! I really want to like and use Sublime!
NO NEED FOR A PLUGIN NOW!
In the latest version of SublimeText 3 (at least), you can open a CTP file, then:
View -> Syntax -> Open all current extension as -> PHP
Then just close your open files, and when you re-open them, they'll be highlighted like the language you chose for that extension.
Just install the ApplySyntax plugin for sublime-text.
ApplySyntax can be installed in a variety of ways:
Through Package Control http://wbond.net/sublime_packages/package_control
Open Package Control
Select 'Install Package'
Find and select 'ApplySyntax'
By cloning this repository in Packages
cd into your Packages folder
git clone git://github.com/facelessuser/ApplySyntax.git .
By downloading the files and placing them in a directory under Packages, such as ApplySyntax or User
If you don't put the files in Packages/User (you can, but probably shouldn't), make sure they live in Packages/ApplySyntax. If you download and extract a compressed archive from GitHub, the directory will be facelessuser-ApplySyntax. Remove facelessuser-.
Courtesy for installation steps: https://github.com/facelessuser/ApplySyntax/blob/master/readme.md
N.B: I installed it and now the *.ctp files are displayed with proper syntax-highlighting for me.
Update:
In Sublime Text 3, you don't have to use the plugin, you can use the following solution:
https://stackoverflow.com/a/35297789/749232
I am working with Code::Blocks and trying to program with the C language. I have created a header file, an implementation file and the main. When I compile, I have no errors, but when I run it I get the following error.
You must select a host application to "run" a library...
The libraries are all in the same folder.
I also did include the header files in my main program.
I have tried on 2 different PCs, and it didn't work. i tried with a different piece of code and it worked flawlessly.
What should I do?
Thanks.
EDIT: Solved.
Go to Project -> Properties -> Build Targets
From the 'Type' drop down list select 'Console Application' (in my case).
Seems like you have created dll. Change to executable.
You may find details how to fix it/
Properties -> Build Target -> 'Type' -> Console application
https://stackoverflow.com/a/8506935/2648826
You have it set up to build a library, not an application.
In File->New Project, you need to choose 'console type'
I have a menu link with the alias "inside" on a joomla 3.1.5 site here: http://naiwellness.com
Every morning I check the site and a folder named "inside" has been created in the root dir which prevents the site from loading as it should, instead displaying a directory contents listing at http://naiwellness.com/inside
Anyone have any ideas how to prevent this please?
Thanks
This is just a theory, but check the xml files of your installed modules and plugins (most likely a plugin) for this line...
<folder>inside</folder>
and if it exists try deleting that line of code - or better still uninstall the extension - that should fix it. It's possible that a plugin requires that folder and has php code to create the folder if it doesn't exist - and so creates the folder each time it is run - i.e. when the site is loaded. The above line of xml code I have asked you to look for will go someway to helping determine if this is the case.
I built chipmunk with the codeblocks project file and have linked to the libchipmunk.a file but I am still getting 1 error when trying to built the hello world sample file.
Undefined reference to 'cpBodySetPos'
Any body know how to fix this?
Its either you haven't linked the libchipmunk.a file properly in the linker tab or if it an older version of chipmunk, then the generated libchipmunk.a file does not contain the declaration/definition of the cpBodySetPos().
To link libchipmunk.a file:
Open the project file.
Then right click on the project (from the left pane) and click "Build Options."
In the window, on the left there should be , Release, Debug.
Select your project name, then click on the "linker" tab.
From there, add the library into link libraries.
If you're using windows, you'll have to manually find the library, or in linux, just type "chipmunk" and gcc/ld should do the rest for you.
Also do refer this link to find out if you are generating the libchipmunk.a file properly for codeblocks and from the latest version of chipmunk.