I have a NS 6.4.2 application which I am testing on an iPhone 11 ProMax - 13.3 simulator, but the same issue happens if I test on a physical device.
Recently, when I run the app with tns run ios or tns debug ios webpack stopped watching for file changes. It is very strange because sometimes it does, but it stops after the first refresh.
This is what I see in the console:
Project successfully built.
The build result is located at: /Users/mfgmarketing/Documents/MobileApp/platforms/ios/build/Debug-iphonesimulator/MobileApp.app
Installing on device 6E202811-97C0-46CA-8DA7-B55A60FA4BC4...
Successfully installed on device with identifier '6E202811-97C0-46CA-8DA7-B55A60FA4BC4'.
Successfully transferred all files on device 6E202811-97C0-46CA-8DA7-B55A60FA4BC4.
Restarting application on device 6E202811-97C0-46CA-8DA7-B55A60FA4BC4...
CONSOLE INFO file:///node_modules/nativescript-dev-webpack/hot.js:3:0: HMR: Hot Module Replacement Enabled. Waiting for signal.
NativeScript debugger has opened inspector socket on port 18183 for com.company.app.
Successfully synced application com.awlinc.awlmobile on device 6E202811-97C0-46CA-8DA7-B55A60FA4BC4.
CONSOLE LOG file:///node_modules/#nativescript/core/inspector_modules.js:1:0: Loading inspector modules...
CONSOLE LOG file:///node_modules/#nativescript/core/inspector_modules.js:6:0: Finished loading inspector modules.
NativeScript debugger attached.
No mention of a webpack compilation or watching files.
I have updated all plugins to their latest versions and tried cleaning up the project and rebuilding again. Nothing seems to help.
Here is my package.json:
{
"nativescript": {
"id": "com.company.app",
"tns-ios": {
"version": "6.4.2"
}
},
"main": "app.js",
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"#nativescript/theme": "^2.3.3",
"#nstudio/nativescript-loading-indicator": "^3.0.4",
"#types/node": "14.0.22",
"moment": "^2.27.0",
"moment-timezone": "^0.5.31",
"nativescript-email": "^1.6.0",
"nativescript-exit": "^1.0.1",
"nativescript-phone": "^2.0.0",
"nativescript-plugin-firebase": "^10.5.2",
"tns-core-modules": "6.5.10"
},
"devDependencies": {
"nativescript-dev-webpack": "1.5.1",
"tns-platform-declarations": "^6.5.9",
"typescript": "3.9.6"
},
"gitHead": "2250137db8c1e0bd0eb543e8e4563cb71480c00d",
"readme": "NativeScript Application"
}
Any ideas on how to fix that. Currently, I have to stop and rebuild every time I make a change. Not very productive.
Thanks.
So, after several days of trying everything, the issue was resolved by restarting my machine. I have no idea why it is working now, or why it did not work before, but if you find yourself in the same situation, a simple restart may solve the problem.
Related
Im trying to run my project in Xcode version Xcode: 14.1
(in Xcode 13 is running perfectly)
"dependencies": {
...
"react-native": "~0.61.5",
"#stripe/stripe-react-native": "^0.2.2",
...
},
"devDependencies": {
...
"#types/stripe-v3": "^3.1.26",
...
},
Im getting the following error: Stored properties cannot be marked potentially unavailable with '#available' in Pods / Stripe ...
enter image description here
I tried to clean build folder in Xcode, i need a workaround.
Try to change
#available(iOS 13 ...
to
#available(iOS 11 ...
I suddenly am unable to run and compile any code in Vscide, When I try I get the following error message.
unable to find executable for '</home/dennis/Programs/cpp/'
The launch.json reads
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/<executable file>",
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
I am running linux mint 21.
It was working fine and then it suddenly stopped working. Something changed and I'm not sure what changed.
vscode about data.
Version: 1.73.0
Commit: 8fa188b2b301d36553cbc9ce1b0a146ccb93351f
Date: 2022-11-01T15:44:09.336Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux x64 5.15.0-52-generic
Sandboxed: No
Can some one help me.
I tried running previouslly ran code that worked in vscode and they suddenly do not work
I am trying to instrument StoreDevTools with an oldish version of Angular (4.1.x) and #ngrx/store (5.2.0).
The zone.js version installed is 0.8.29
If I do the recommended way (ie. after StoreModule and EffectsModule) (app.module.ts):
StoreModule.forRoot({}),
EffectsModule.forRoot([]),
StoreDevtoolsModule.instrument({
name: 'myApp',
maxAge: 50,
}),
then the StoreDevTools crash with
Error:
zone.js?6788:682 Unhandled Promise rejection: Object(...) is not a function ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Object(...) is not a function
at new StoreDevtools (store-devtools.js?51ff:764)
the js line referred says:
var liftedAction$ = merge(merge(actions$.asObservable().pipe(skip(1)), extension.actions$).pipe(map(liftAction)), dispatcher, extension.liftedActions$).pipe(observeOn(queueScheduler));
When I do the other way around, the StoreDevTols don't crash, but the inspector cannot see the store in there.
Both modules are receiving empty data because I am just putting the store in place and I start with a feature module.
StoreModule.forFeature('Feature1', feature1Reducer),
EffectsModule.forFeature([
Feature1Effects,
]),
There is no data stored at the root level, like app or auth just yet.
Is the error caused by dependencies (like zone.js for example) or by how I set up my store?
Redux DevTools 2.17.0
Old question, but if it helps anyone - I had a the same error after upgrading an old app to use #ngrx/store to 4.1.1
I had to match #ngrx/store-devtools to the same version number as the other #ngrx deps.
npm had initially installed it at latest which was 8.x at time of writing. As soon as the deps were matched the app and store loaded fine
"#angular/core": "5.2.11",
...
"#ngrx/effects": "4.1.1",
"#ngrx/store": "4.1.1",
"#ngrx/store-devtools": "4.1.1",
....
"zone.js": "0.8.12"
I installed my Electron Windows App on a fresh Windows 10, Windows Server 2016 Standard and Windows Server 2012 R2 Build 9600 and it is working fine. The connection to my websocket is also working.
On some machines with Windows Server 2016 Standard the app is not working as expected. I am just getting the windows border of the app but no content nor a menu. But the websocket connection of my app is working. ( i checked it with wireshark). so i guess it is a rendering problem?
Sadly i don't have access to the machines where the problem exists.
I assume same packages are missing?
screenshot with rendering problem:
Electron 5.0.2
Electron Store 3.2.0
Electron Prompt 1.3.1
I had the same issue as you mentioned, I solved it by generating a 32bit version of my Electron app for that Windows Server it did not work on.
Here is my build snippet from my package.json to generate both a 64 and a 32 bit version.
"build": {
"appId": "com.example.app",
"productName": "app",
"copyright": "Copyright © 2019",
"files": [
"build/**/*",
"node_modules/**/*"
],
"directories": {
"buildResources": "assets"
},
"win": {
"target": [
{
"target": "portable",
"arch": [
"x64",
"ia32"
]
}
],
"icon": "assets/app.ico"
}
},
I've installed the latest version of Visual Studio Code (1.1.1) in OSX El Capitan (10.11.4). I also installed the latest version of Core RC2. dotnet --version gives me 1.0.0-preview1-002702. One of the web threads I read said to delete the older version of OmniSharp and install the latest, which I did. I also installed OpenSSL via Brew.
When I installed the newest yo generator for aspnet and created a sample app, it runs fine. When I try to open that folder in Visual Studio Code, I get this in the Output window:
Downloading and configuring the .NET Core Debugger... Telemetry is:
Enabled log : Restoring packages for
/Users/rheckart/.vscode/extensions/ms-vscode.csharp-0.3.7/coreclr-debug/project.json...
info : Committing restore... log : Lock file has not changed.
Skipping lock file write. Path:
/Users/rheckart/.vscode/extensions/ms-vscode.csharp-0.3.7/coreclr-debug/project.lock.json
log :
/Users/rheckart/.vscode/extensions/ms-vscode.csharp-0.3.7/coreclr-debug/project.json
log : Restore completed in 632ms.
NuGet Config files used:
/Users/rheckart/.vscode/extensions/ms-vscode.csharp-0.3.7/coreclr-debug/NuGet.config
Feeds used:
https://www.myget.org/F/dotnet-core/api/v3/index.json
https://api.nuget.org/v3/index.json
https://www.myget.org/F/coreclr-debug/api/v3/index.json Telemetry is: Enabled Error: Can not find runtime target for framework
'DNXCore,Version=v5.0' compatible with one of the target runtimes:
'osx.10.11-x64'. Possible causes:
1. The project has not been restored or restore failed - run dotnet restore
2. The project does not list one of 'osx.10.11-x64' in the 'runtimes' section. Error:
System.InvalidOperationException: Can not find runtime target for
framework 'DNXCore,Version=v5.0' compatible with one of the target
runtimes: 'osx.10.11-x64'. Possible causes:
1. The project has not been restored or restore failed - run dotnet restore
2. The project does not list one of 'osx.10.11-x64' in the 'runtimes' section. at
Microsoft.DotNet.ProjectModel.BuildWorkspace.GetRuntimeContext(ProjectContext
context, IEnumerable1 runtimeIdentifiers) at
System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() at
System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at
Microsoft.DotNet.Tools.Publish.PublishCommand.TryPrepareForPublish()
at
Microsoft.DotNet.Tools.Publish.PublishCommand.<>c__DisplayClass0_0.b__0()
at
Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[]
args) at Microsoft.DotNet.Tools.Publish.PublishCommand.Run(String[]
args) dotnet exited with error code 1 Error while installing .NET Core
Debugger.
I tried to do both steps 1 & 2, but I still get the same error. My project.json file looks like this:
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0-rc2-3002702",
"type": "platform"
},
"Microsoft.AspNetCore.Mvc": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc2-final",
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0-rc2-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc2-final",
"Microsoft.Extensions.Logging": "1.0.0-rc2-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc2-final",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc2-final"
},
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-preview1-final",
"imports": "portable-net45+win8+dnxcore50"
}
},
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"dnxcore50",
"portable-net45+win8"
]
}
},
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"runtimeOptions": {
"gcServer": true
},
"publishOptions": {
"include": [
"wwwroot",
"Views",
"appsettings.json",
"web.config"
]
},
"scripts": {
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
},
"tooling": {
"defaultNamespace": "rc2api"
},
"runtimes": {
"osx.10.11-x64": { }
}
}
If I try to run debug in VS Code using the .NET Core Launch (web), I get an error:
Debug adapter executable
'/Users/rheckart/.vscode/extensions/ms-vscode.csharp-0.3.7/coreclr-debug/debugAdapters/OpenDebugAD7'
not found.
Any ideas as to why this isn't working?
I received the same error. For me, I noticed there was an update available for the VS Code C# extension (I saw the green circle on the icon in the lower-left). Once I installed the update (version 1.0.10) and restarted VS Code, the error went away and I got "Successfully installed .NET Core Debugger".
I managed to resolve this by removing an older .NET Core version and installing the latest one. It appears the installation failed due to command line options the older version did not support.
Uninstall script and latest installation package can be found here (steps 1 and 2): https://www.microsoft.com/net/core#macosx