css class '.when' shows error on netbeans IDE - css

I am using netbeans 8.0.2 for coding. In css, I have used a class name 'when' and that class is showing error in editor. But it works in browser. Anybody have some idea?

Because your IDE expects that when is a function of less, an then your syntax would be wrong. If you don't use less, or everything works just fine for you, ignore the warning and/or change the inspection settings.
If you use less, here are some examples of using when:
http://lesscss.org/features/#mixins-feature-guarded-namespaces
http://lesscss.org/features/#mixins-feature-loops-feature
http://lesscss.org/features/#mixins-feature-mixin-guards-feature
http://lesscss.org/features/#css-guards-feature
http://lesscss.org/features/#detached-rulesets-feature-property-variable-accessors

You can help to improve NetBeans by reporting similar issues in their bug tracking system. I have already reported this problem here:
https://issues.apache.org/jira/browse/NETBEANS-1216

Related

Visual Studio 2022 ASP.NET Core 6 Default application and Add folder to workspace in Chrome DevTools is not working anymore

After some update to either Visual Studio (I have the same issue in both VS2019 and VS2022) or Chrome I can no longer update the CSS in DevTools and have it reflect and persist the changes to site.css file in my project. Instead when I try to change a CSS property I get the following in the DevTools console:
Unable to find a stylesheet to update. Updating all local css files.
15:54:01.800 aspnetcore-browser-refresh.js:82
And the green dot disappears from my CSS pane immediately after I hit the up or down arrow on my keyboard to try and change the CSS value.
Why is that? It used to work not too long ago. I think it's been broken for me for half a year or so now.
I've been googling but haven't find any good resources. Or maybe I'm the only one coding directly in Chrome? :) Surely this can't be the case?
If anyone knows a workaround please share because I'm really frustrated atm :)
Disabling "Enable CSS Auto-Sync" seems to do the trick.
Update 1: The above no longer works for me for some reason. I managed to find another fix on SO: https://stackoverflow.com/a/70096917/687549
And here are some screenshots:
Update 2: Update 1 works when you only need to update the CSS directly in Chrome. It's better to have Hot Reload enabled and the set the following setting to None - then you'll get the best of both worlds (Hot Reload + Edit CSS directly in Chrome using workspaces): https://stackoverflow.com/a/68954979/687549
Update 3: I'm now using VSCode. If none of the above works try the following (block .js file in Network tab in Chrome DevTools): https://stackoverflow.com/a/68966524/687549

Could not navigate to "view"

I am using vaadin 10. I would see this error on my login view class if I used #Route("") but when I write it as #Route(value="") it worked. But doing that to another view I get this error. Most questions asked are way too advanced. I just have a simple project with vaadin and springboot.
With the source code you provided as link in the question's comments, I cannot reproduce your issue. However, there were 2 problems with your code before I was able to run the application:
the #Theme annotation needs to be placed on a view or router layout; I moved it to your LoginView
the Valo theme is not available in Vaadin 10, so the reference on ValoTheme class was a compile error; I removed it
After fixing these problems everything ran fine, #Route(value="") and #Route("") were both working. Which Java version are you using? Java 8 is required minium for Vaadin 10. Also please try to remove lombok for testing, maybe it is causing a problem.
Try annotating your EmployeeDisplay class with #Route(value = "employeeDisplay") instead of #Route(value = "/employeeDisplay"). In other words, remove the /.

GWT - css class names

since some time I have the problem that all my css class names are obfuscated (like div.O0NPTOB-q-k) when I look at them with e.g. Firebug. This is ok for production use but not when running in dev mode (with code server).
Could anybody give me a hint how to disable that?
Thanks.
Sure, use :
<set-configuration-property name="CssResource.style" value="pretty"/>
in your ***.gwt.xml

Eclipse - annoying error when editing css files

Each time I edit a css file in Eclipse, I get this error. It really keeps me from doing my work, because it pops up almost after each character.
Can't find resource for bundle java.util.PropertyResourceBundle, key css2.stylesheet-def.description
I would like to disable the parsing for css in order to not get this error anymore, but I didn't find how. Can you give me any tip on how to solve this issue ?
This sounds like Eclipse bug 419986 which says it because of missing translations in the CSS property files.
The bug report suggests deleting the localization plugin (such as org.eclipse.wst.css.core.nl_fr_4.3.0.jar works around the problem).

MonoDevelop ASP.NET parser error using inline server tags inside html tag attribute

I've compiled monodevelop for mac, version 4.1.4(build 225) and while everything seems to work, I'm getting a parser error whenever I put a server tag inside an attribute of a html tag. For example, this works:
<span id='test'><%=DateTime.Now.Day.ToString()%></span>
But this returns the parser error
<span id='<%=DateTime.Now.Day.ToString()%>'>test</span>
I've used all the latest mono runtimes, and tried C# and VB.NET projects without success. Can anyone help me out ?
http://forums.xamarin.com/discussion/4287/bug-3588-nested-div-tags-throwing-parser-errors-in-html-documents
Xamarin studio seems to have the same problem as MonoDevelop. I updated both and they both broke around the same time (from memory)
The fix mentioned in the post is not in latest stable or even beta yet. I'm going to play with Alpha release, but otherwise seems you might have to go back to 4.01 from one of the comments here. Hope this helps somewhat though maybe way too late.
This issue has been resolved in MonoDevelop version 4.1.11

Resources