Serving a project in Ember using `ember s` triggers file changed - javascript

So, I am serving an Ember using ember s command. Even though I do not make any changes to the code I keep seeing the entry file changed <fileName> in the server startup log, this makes the server start process really slow. I am using Windows 11, however this happened in windows 10 also, ember-cli version 3.8.3.
There is an issue raised in github with no solution - https://github.com/ember-cli/ember-cli/issues/9055. This is the only mention of this issue I could find.
Hope someone has a solution to this.

Related

Next.JS Fast Refresh not working on Windows (using ubuntu or wsl)

After changing and saving files using reactJS/Next.JS, the server does not recognize those changes and update itself.
I tried changing various settings per a slew of articles I read, but none worked. Too many things to list.
In Powershell (run as administrator), type: wsl --set-version Ubuntu 1.
if this doesn't work and you're using a more specific version of Ubuntu, you can adjust for that: wsl --set-version Ubuntu-20.04 1, but the key is to use wsl version 1.
I actually found the answer before posting my question, and it was more related to ReactJS, but I wanted to ask this with NextJS to increase visibility, after I spent an hour googling up "nextJS" and the rest of my issue, and getting nothing.
Bro, you know you're an angel, right? Thank you so much for that. I did had to make it trought the second command you told, specifying the Ubuntu version. That in my case was 22.04.
And just to help others, after doing that my next.js was still in trouble, I think it was still not working because the localhost page was aready opened before I run run npm dev again, so I did had to ctrl + c the console and npm run dev again and close and open the localhost for next.js to work properly.

Debugger not working in visual studio

My debugger stopped working as expected in Visual Studio Community 2015 (Update 1).
The solution I'm working on has the following architecture:
"Query" project - written with angularjs 1.4
"Login" project - written with angularjs 1.4
More back-end projects - written with c#/web-api
I run the Query project, it checks for session and redirect to Login. After the login is successful it makes another redirect back to the Query url.
Until yesterday I had no issues debugging the whole solution from VS directly.
Now the behavior is that the first time I run the "Query" project, my breakpoints get hit. After coming back from Login, no breakpoint is hit.
Both client-side projects are hosted using IIS Express.
Things I tried until now:
clean, build, rebuild the solution;
attaching to process from VS. I attached to all IIS Express processes but with no luck;
closing VS and deleting my bin and obj folders from all projects;
restarting the machine;
Also good to mention that I have set in web.config:
<compilation debug="true"></compilation>
Any hint or idea is highly appreciated.
After trying more different solutions, the only thing that worked in my case was to unload/reload the project.
Also, now the breakpoints that I set before the application runs are no longer getting hit, but if I set them after the application started then they work fine.
I can suggest some Stack Overflow answers related to this issue, maybe it helps:
New project and just importing the files into it: Upgrade to Visual Sudio 2015 and now can't hit break points in debuging
Manual check of the Symbol Load Information: Fixing "The breakpoint will not currently be hit. No symbols have been loaded for this document."
Incorrect configuration selected in the debug menu: Visual Studio breakpoints not being hit
In my case (Vs2019) the Microsoft Symbol server was causing the issue.
It was not being able to attach Local IIS.
Enabling only the NuGet Symbol server and disabling the Microsoft worked for me

Breakpoints not hit in javascript files in Visual Studio

I am experiencing some weird behaviors when debugging my MVC Web Application. Some days I experience these issues, but other days everything works fine.
The breakpoints in my javascript files are not getting hit. I get the dreaded "The breakpoint will not currently be hit. No symbols have been loaded for this document." error.
The debugger will detach from the process without me clicking the Stop Debugging button.
I have tried everything I can think of including:
Refreshing the page in IE to force the browser to get the latest version of the javascript files.
Clean / Rebuild the application in Visual Studio
Close / Reopen Visual Studio
Delete all files from bin and obj folders and rebuild
Cleaned up all old sites from my IIS Express applicationhost.config file
Installed VS2013 Update 4
Deleted / Reinstalled VS2013
Removed / Added IE11
Installed VS2015. Same behavior as VS2013
Deleted all local project files and performed a "Get Latest" from TFS
I can manually attach the debugger to an iexplore process and then I'm able to debug that specific file, but it seems like there is a different iexplore instance for each javascript file. I end up having to guess which one to use for each javascript file. To top it off, the debugger keeps detaching in the middle of me trying to find the right process to attach to. It is nearly impossible, and definitely not feasible to try and debug this way.
Our solution is in TFS, we're using IS Express and the three other developers on our team have none of the problems I have. We all have the exact same hardware.
Another clue that might help is that we are using the OWIN functionality to connect to ACS for security. If I bypass authentication through OWIN / ACS I can step into the javascript. This, however, creates other problems since the code is expecting me to be authenticated. This is not an acceptable workaround and, again, the other developers on the team are using OWIN/ACS and do not have any problems.
I'm extremely frustrated and at a loss for how to go about figuring our what is wrong with my environment. Any help will be greatly appreciated.

NodeJS program memory usage won't go down

I was writing a nodejs program but it has some problems, I created an issue in the iojs github but the guys said that it's likely a problem in my code and I should try posting it here.
I'm new to javascript and server-side javascript.
This is a simplified version of my real code that is way bigger.
I tried searching everywhere for a solution for this, tried not using event emitter and everything even tried manually nulling almost everything that would not be used anymore but it won't help at all.
This small snippet "leak" the same way my original code does.
Steps to reproduce:
Download: these three scripts
socket.js: https : //gist.github.com/dumpsters/11dab119e996b802a824)
client.js: https : //gist.github.com/dumpsters/17566cce2777470218e4)
server.js: https : //gist.github.com/dumpsters/860bac40048db45e0424)
Execute server.js
Execute client.js
Let client.js run for a while while checking server.js memory usage in the title bar
Close client.js
Check server.js memory usage
server.js memory usage will either stay the same or even increase and won't ever go down.
Tried with latest stable iojs version and latest nightly version, also tried with stable nodejs.
Any clue on why this happens?

how to add jde components plugin in an eclipse

I need to add jde component plugin in an blackberry eclipse.I have already used the following link in my eclipse:
http://www.blackberry.com/go/eclipseUpdate/3.5/java
But am getting the error as:
'installing software' has encountered a problem.An error occurred while collecting items to be installed.
Please tell me the solution.
That happened with me so many times that I stopped using that update site. Instead, try downloading the component package directly from:
http://us.blackberry.com/developers/javaappdev/javadevenv.jsp
The answer may be simple: Perhaps Windows installs it's updates (and only one installation process can be run at one time), or some other installations or processes may interrupting you.
Try just restart you system and retry your installation.

Categories

Resources