Adding DJango organization causes exception

Attempting to add an organization using the Admin ui (tools.spdx.org/admin) with organizatio name nexB inc. and organization ID nexB causes the following exception:
  File "/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 552, in wrapper
    return self.admin_site.admin_view(view)(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 224, in inner
    return view(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1509, in add_view
    return self.changeform_view(request, None, form_url, extra_context)
  File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
    return bound_func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
    return func.__get__(self, type(self))(*args2, **kwargs2)
  File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1409, in changeform_view
    return self._changeform_view(request, object_id, form_url, extra_context)
  File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1449, in _changeform_view
    self.save_model(request, new_object, form, not add)
  File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 980, in save_model
    obj.save()
  File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 808, in save
    force_update=force_update, update_fields=update_fields)
  File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 838, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 924, in _save_table
    result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
  File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 963, in _do_insert
    using=using, raw=raw)
  File "/usr/local/lib/python2.7/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 1079, in _insert
    return query.get_compiler(using=using).execute_sql(return_id)
  File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 1112, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
IntegrityError: null value in column "id" violates not-null constraint
DETAIL:  Failing row contains (null, nexB inc., nexB).

It looks like the ID column is null - which I would assume is autogenerated.
This is a DJango utility which I believe does not involve application code.
The database was migrated and updated several times over the last couple of years - there may be some issue with the database?

@rtgdk - Can you take a look?

@goneall Looks like a database/migration/postgres error for sure. Will take a look at the prod DB.

@goneall As we guessed it, this is a database migration issue with postgres.  I saw db.sqlite3 file on the prod container which suggests that at some point in time, prod used sqlite3 as database and when we supplied the postgres credentials in settings.py, it started using postgres. This resulted in an error while migrating the schema from sqlite3 to postgres. The schema for organisationname id should have nextval('app_organisationname_id_seq'::regclass)  constraint(screenshot from local postgres database using pgAdmin)

but the RDS postgres database showed empty contraint

Since, id is set as primary key for the table it cannot be null and django is not automatically adding sequential ids.
This happens when we migrate from db.sqlite3 to postgres without reloading/remigrating the database.
Found many cases online too - https://stackoverflow.com/questions/47744721/integrityerror-null-value-in-column-id-for-all-models-fields-with-foreignkey
https://github.com/django-cms/django-filer/issues/351
https://groups.google.com/g/django-users/c/7V3IjKIpKFc?pli=1
Now, there's two way I can think of to fix this.

Run python manage.py migrate on prod and expect database schema to get updated.
(I was not able to replicate the issue locally when migrating from sqlite3 to postgres, it asked me to run migrate command again)

Add the constraints through pgAdmin itself. (Again, I am not sure whether pgAdmin would be able to directly update this on RDS - haven't used pgAdmin much)

I think as pointed out in https://stackoverflow.com/questions/47744721/integrityerror-null-value-in-column-id-for-all-models-fields-with-foreignkey, we can first dump the existing data (save it), and then run these commands (either migrate or create a totally new database and follow SO answer).
I haven't tried any of these methods till now just to not mess up prod database. (Couldn't replicate it locally)
Let me know what you think. I guess 1 would be the better way to do this. I think we should run these commands on a call together for extra security.

Thanks @rtgdk for the analysis.
If we want to update the database directly, we can create the sequence and update the ID constraint.
I'm pretty comfortable making the changes to the database, but I'm wondering if we should try migrating the database first.
I'll coordinate with you via email.

This has not been resolved by updating the production database schema.


refactor: property drawer now reuses cached reference drawers

:tada: This PR is included in version 1.7.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


rctx MUST

Section 7.1 makes the inclusion of an rctx value mandatory (MUST).

Should this be a MUST, or could it be omitted if no additional context is passed
If no additional context is passed, should we specify that it is included, but with a null value?

@gffletch @tulshi

I think it should be a MUST because the requesting workload identity is part of the rctx. Maybe we could clarify that only specifying that value is ok. Is there a reason that the requesting workload should NOT be part of the TraT?

Latest drafts show rctx as optional....


Update svg.js

Remove div.innerHTML = E becaue this causes problems in IE11. Clearing the div in this way causes the extracted svg to be cleared out of all child nodes.

Merged manually, since it’s not targeting dev, but master.


Web apps

Changes require to use test-infra for figure and iviewer
We will need to go a step further if we want to handle repo like https://github.com/MicronOxford/webtagging
(2 apps in one repo)
Check that
https://github.com/ome/omero-iviewer/pull/155 is green
https://github.com/ome/omero-figure/pull/259 is green
I will work on the README when we are happy with the change.
and include Will's PR

See proposal in https://github.com/joshmoore/omero-test-infra/commit/d5492a5cdeecd51e0e6c3e3a64d89cfa8387877d as a way to fix some of the difficulties @jburel has seen with the multi-*-docker file approach.

Few design items that I haven't yet addressed with the commit above:

split 2-3 high-level phases (before server, wait-on-login, after server) to speed things up
discuss naming of phases (e.g. app-build, test-data)
try to minimize parameters, preferring to encode in the .omeroci scripts
provide support for running "super()" from .omeroci scripts

Planning to do a full review
Do we also get rid of the printf?

From the individual $type-$type scripts? I would. That way it can all be controlled by run().

Nice. I have some changes on top (docker cli needs some work) but I would wait until this is merged so we're all working from the same point.

3c20072 is required for ome/scripts to work

@joshmoore last 3 commits required to remove the variables as discussed and to fix ome/scripts. Everything is green now
I have not touched cli and lib since you will do some adjustments in a follow-up PR

@joshmoore removed

Thanks. LGTM. I'd say let's get this in. Happy for it to be 0.2.0 and then my follow-ups can either be 0.2.1 or 0.3.0 as needed.

Discussed with J-m:

I'm merging & tagging
He's updating figure & iviewer to point to origin/master
Next we'll look into activating cron jobs on the other repos


Add Daffio api docs

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/graycoreio/daffodil/blob/master/CONTRIBUTING.md#commit
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?
Daffio does not have api documentation for any of daffodil's packages.
What is the new behavior?
Generated documentation for daffodil packages are now rendered in daffio.
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information
The actual documentation for the packages still needs to be written. This is just for the framework of rendering the generated documentation from dgeni.

This PR is blocked by https://github.com/graycoreio/daffodil/pull/349

This PR is blocked by #349

#349 is merged

Why is api-docs in daffio and not in design-land?

@lderrickable I believe this also needs a rebase, as I think most of the dgeni work has been merged in a separate PR.

@lderrickable I believe this also needs a rebase, as I think most of the dgeni work has been merged in a separate PR.

yea, you right. Rebased

closing in favor of #402


patch 15: maybe remove alt tab fix?

i see stuff in vanilla code about on focus change now

alt doesnt seem to get held anymore, but all the other keys do (like holding forward when alt tabbing)


feat: allow custom ldap configs

🚨 Proposed changes
Allow custom LDAP authentication configuration provided by end-user in the provider options
⚙ Types of changes
What types of changes does your code introduce? Put an x in the boxes that apply

[x] New feature (non-breaking change which adds functionality)
[x] Bugfix (non-breaking change which fixes an issue)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation Update (if none of the other choices apply)
[x] Refactor

close #101

Big refactor as we talked about this morning, let's take our time to review everything!

Still todo: README


Fix Emission tracker decorator exception handling for offline tracker #310

@qmarcou add an exception handler to prevent the tracker to keep running after exception in code.
TODO:

[ ] Add tests
[ ] Add docs
[ ] Bump version

@SaboniAmine do you have an idea why the test fail ?

@benoit-cty a test data file is periodically not created, both on 3.8 & 3.9 python versions, but that doesn't happen locally. I'll have a look


Borders behavior

Hi, thanks for your awesome work. Coming from Linux, I've been trying to config it lately and I have some questions.

Would it be possible to set a property for borders, to display it outset. Because the inset borders can be embarrassing with large borders.

Is there a proper way to remove borders/gaps in fullscreen (and when there's only one window).
I tried by combining toggle fullscreen;toggle gap offset and it works but sometimes it gets reversed and that's kinda laggy.

This should probably be added as an option to the focused border, but will most likely remain the way it currently is for the other"temporary" border types, such as mouse-drag and preselection borders.

Toggling gaps first, then toggling fullscreen should do the trick. There is currently no way to
automatically remove padding when there is only a single window open. Same goes for border really, the only option right now would be to unload the plugin and load it at some later point.

It would be really nice to see #2 added as a configurable option. It's supported on Linux in i3 and also achievable in bspwm (leaf_monocle + gapless_monocle). For many users it's pretty pointless to have gaps / borders when only a single window is on screen.


Overflow horizontally on iPhone edit mode

Is the bug present when using the default Obsidian theme?
No
Is the bug present when snippets and plugins are disabled?
Yes
Minimal theme version
7.0.7
Describe the bug
Keep getting overflow horizontally when using edit mode in iPhone (preview mode works fine). Screen recording below showing the comparison between minimal theme and default theme (default theme doesn't have this problem)
https://github.com/kepano/obsidian-minimal/assets/4120788/e65ef81a-4c44-45d5-bdd9-30a87d9e4955
Debug info
SYSTEM INFO:
Operating system: ios 16.5.1 (Apple iPhone)
Obsidian version: 1.4.6 (105)
API version: v1.3.5
Login status: logged in
Catalyst license: none
Live preview: on
Legacy editor: off
Base theme: light
Community theme: Minimal v7.0.7
Snippets enabled: 1
Restricted mode: off
Plugins installed: 31
Plugins enabled: 20
1: Advanced Tables v0.18.1
2: Dataview v0.5.56
3: Emoji Shortcodes v2.2.0
4: Minimal Theme Settings v6.3.2
5: Natural Language Dates v0.6.1
6: Paste URL into selection v1.7.0
7: QuickAdd v1.2.1
8: Style Settings v1.0.6
9: Buttons v0.4.19
10: Contextual Typography v2.2.5
11: Outliner v4.7.1
12: Zoom v1.1.2
13: Default New Tab Page v0.11.0
14: Obsidian42 - Strange New Worlds (SNW) v1.2.2
15: Copy as HTML v1.1.3
16: Copy Image and URL context menu v1.5.0
17: Better Word Count v0.9.6
18: Footnote Shortcut v0.1.2
19: Quick Switcher++ v3.3.3
20: Excalidraw v1.9.8
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Do you have "Highlight active line" enabled in Style Settings > Minimal? I usually don't use the setting on mobile, but see this behavior with it on (in source/live preview modes). See ->
https://github.com/kepano/obsidian-minimal/issues/613

@trainbuffer thanks! this has been driving me crazy.
Turns out enabling highlight active line also affect desktop and not just on mobile. Disabling it "fixes" the issue


subscribe stays idle when sentinel master switches

using:
ioredis version 2.4.3
redis version: 3.0.7
setup: 3 vms with 1 redis and 1 sentinel instance each
node: 6.9-7.4
npm: 4.0.5
problem:

connect to sentinels
subscribe to any topic/key via redis.subscribe("anykey",..) add redis.on("message", ..")
sentinel fail-over -> switch sentinel master / redis master
connect with a second client to publish messages on "anykey"
-> first client that is still subscribed does not receive messages anymore

@zauberpony

*rewrote problem, because it was too hard to understand..

this issue is probably related to firewall issues.


[BUG] Consecutive tables get merged into one table

Description
When parsing 2 or more consecutive tables, they will be merged into one table with multiple tbody
Example code
| --- | --- |
| 1   | 2   |
| 3   |  4   |

| --- | --- |
| 5   | 6   |
| 7   | 8    |

Expected output

1
2

3
4

Actual output

1
2

3
4

---
---

5
6

7
8

Hi, this is expected behavior as defined in MultiMarkdown:

You can create multiple
 tags (for HTML) within a table by having a single empty line between rows of the table.

But this rule seems to have confused some (#18).
I'm considering add an option like multitbody: false to disable this.

Hi, Thank you for your very quick response. That would be great to have that feature. For now, I think I should apply the workaround to have 2 or more line breaks between tables. Do you have any better workarounds for the moment (e.g. overriding rules)? I would be appreciated to hear that.

Yes. For now, the best workaround is to introduce more empty lines.
Adding a table caption at the bottom also indicates the end of tables, but this introduces conflict against common standards again.

Closed for version 4.2.0.


queryTagMeta is not an exported function

I renamed this function to queryTagEvents to better reflect what's actually returned. And I also ensured it's exported.


About Scannet Datas

According to the paper, the author said that you used 18 categories in the scan data set for testing. During training, do you take other categories other than 18 categories as the background for training? Or is it that only 18 classes of point clouds are selected for training?

During training (and during testing too) we assign the other categories to background.
In fact:

we assign to such point dummy instance and segmentation labels equal to -1 (https://github.com/zurutech/3DBoNet2/blob/63c162573fc455306b3c985c8f9d6d352ebf54bd/src/bonet2/datasets/scannet/scannet.py#L435);
we do not consider bounding boxes of instances with label -1 (https://github.com/zurutech/3DBoNet2/blob/63c162573fc455306b3c985c8f9d6d352ebf54bd/src/bonet2/datasets/cloud_blocks_dataset.py#L232)
we do not consider the points with segmentation label -1 in the calculation of the cross-entropy loss (https://github.com/zurutech/3DBoNet2/blob/63c162573fc455306b3c985c8f9d6d352ebf54bd/src/bonet2/losses/masked_categorical_crossentropy.py#L19).

The model has to learn how to manage objects from unknown categories because at test time it has to recognise them.
The removal of points from unknown categories during training would be detrimental to performances, because it will create a gap between training and test.

[3DBoNet2/src/bonet2/datasets/scannet/scannet.py]:
if label != -1:
object_id = instance["objectId"]
segments = instance["segments"]
object2segments[object_id] = segments
label2segments.setdefault(label, []).extend(segments)
Here we judge whether the semantic tag is the purpose of - 1, and whether to eliminate the point clouds outside 18 categories? In other words, according to your answer, does it mean that the semantic tags of categories other than 18 categories are treated as - 1 and used for training together?

[3DBoNet2/src/bonet2/datasets/scannet/scannet.py]:
if label != -1:
object_id = instance["objectId"]
segments = instance["segments"]
object2segments[object_id] = segments
label2segments.setdefault(label, []).extend(segments)
Here we judge whether the semantic tag is the purpose of - 1, and whether to eliminate the point clouds outside 18 categories? In other words, according to your answer, does it mean that the semantic tags of categories other than 18 categories are treated as - 1 and used for training together?

[3DBoNet2/src/bonet2/datasets/scannet/scannet.py]:
if label != -1:
object_id = instance["objectId"]
segments = instance["segments"]
object2segments[object_id] = segments
label2segments.setdefault(label, []).extend(segments)
Here we judge whether the semantic tag is the purpose of - 1, and whether to eliminate the point clouds outside 18 categories? In other words, according to your answer, does it mean that the semantic tags of categories other than 18 categories are treated as - 1 and used for training together?

The code you pasted, comes from read_aggregation that uses labels already processed to assign the label -1 to other categories https://github.com/zurutech/3DBoNet2/blob/63c162573fc455306b3c985c8f9d6d352ebf54bd/src/bonet2/datasets/scannet/scannet.py#L511
The processing of labels happens in read_label_mapping
https://github.com/zurutech/3DBoNet2/blob/63c162573fc455306b3c985c8f9d6d352ebf54bd/src/bonet2/datasets/scannet/scannet.py#L450

In other words, according to your answer, does it mean that the semantic tags of categories other than 18 categories are treated as - 1 and used for training together?
Yes, the points from categories other than the 18 selected categories are assigned to a -1 label and used in training accordingly.

https://github.com/Yang7879/3D-BoNet/issues/21
Have you read the answer of 3dbonet author? In his reply, he said that you can eliminate other categories you are not interested in during training and then carry out training. What do you think?

Our results on ScanNet were very bad, so maybe that's a useful trick. Anyhow I don't understand how the model can obtain good results at test time, when it sees a point distribution very different from training data.

The 3DBoNet source code version you uploaded is based on tensorflow2. Why is it so different from the source code test results provided by the original author?

Our code is based on the original source code provided, we manually converted the TF1 code to TF2 and used an object-oriented design similar to the PyTorch style.
The fact is that the original published source code only manages an already processed version of S3DIS and no pre-processing code is directly available. We have succeeded in reproducing the results on S3DIS, but ScanNet is a much larger dataset so the pre-processing has to be different.
We have designed a preprocessing pipeline on ScanNet based solely on common practices and the few suggestions given by the authors in the original repository, but probably we have missed some important parts that weren't explained anywhere.

Well, maybe it's really different from the original author's treatment. Thank you very much for your answer!


proposal: mime: handling duplicate media parameters

It is possible to receive an email that does not follow the specification, i. e. an email with the Content-Type header like
text/plain; charset=UTF-8; charset=UTF-8; format=flowed

Golang standard library does not allow duplicate media parameters so it is impossible to parse such a header. But two instances of the 'charset' parameter have the same value here, so it can be determined unambiguously.
I suggest making the mime.ParseMediaType function more tolerant to such errors. It should not stop the execution if it detected duplicate parameters have the same value. In order not to change behavior of any existing Go program, some special error value may be returned along with parsed media type and parameters.

It would help if you could point to packages that generate this invalid information, and if you could point to how other MIME parsing code, in other languages, handles this case.  That is, we want to accept data that is out there in the wild, but we want to avoid being unnecessarily loose.  Thanks.

@ianlancetaylor I have found the following examples on Python, Java and C#. All of them returns charset as "UTF-8" correctly, none throws an error.
Example in Python 3:
>>> import cgi
>>> mimetype, options = cgi.parse_header("text/plain; charset=UTF-8; charset=UTF-8; format=flowed")
>>> print(mimetype)
text/plain
>>> print(options)
{'charset': 'UTF-8', 'format': 'flowed'}

Example in Java:
import org.apache.http.entity.ContentType;
import java.nio.charset.Charset;

class TestContentTypeParsing {
        public static void main (String args []) {
                ContentType contentType = ContentType.parse("text/plain; charset=UTF-8; charset=UTF-8; format=flowed");
                Charset charset = contentType.getCharset();
                System.out.println (charset);
    }
}

prints "UTF-8"
Example in C#:
using System;
using System.Net.Mime;

public class TestContentTypeParsing
{
    static public void Main ()
    {
        var contentType = new ContentType("text/plain; charset=UTF-8; charset=UTF-8; format=flowed");
        Console.WriteLine("{0} ({1})", contentType.MediaType, contentType.CharSet);
    }
}

prints "text/plain (UTF-8)"

The example in Go:
package main

import (
	"fmt"
	"mime"
)

func main() {
	mediaType, params, err := mime.ParseMediaType("text/plain; charset=UTF-8; charset=UTF-8; format=flowed")
	fmt.Printf("mediaType = '%s', params = %+v, err = %v\n", mediaType, params, err)
}

prints "mediaType = '', params = map[], err = mime: duplicate parameter name"
https://play.golang.org/p/kEMGv60ElWz

@neganovalexey you wrote "It is possible to receive an email ...". The important question is "is it likely?" Do you have instances of this happening in real use cases? If not, then we are unlikely to add what might end up being some kind of security hole (by picking one or the other differently from other software) for purely speculative motivations.

I actually have such an email in my Inbox. The header field is this:
Content-Type: text/html; charset=utf-8; charset=UTF-8


Move embargo date from work settings to main create/edit form

Currently a work cannot be embargoed until after it is created/published since the embargo date field does not appear in the series of forms used to create the work. It would make more sense for a depositor to be able to set an embargo date as the work is being created.
Open questions:

Do we know why it was designed this way in the first place? Was it done purposefully for a reason that we haven't considered?
After we make the change so that a work can be created with an embargo date, should the workflow for changing/removing the embargo date remain as is (in the work settings)? Or should this instead be done in the metadata/file editing workflow also?

To answer question 1: I looked back into old tickets, and it seems like it was done this way so users could change the embargo without having to create a new version (#621 and #601).

To answer question 1: I looked back into old tickets, and it seems like it was done this way so users could change the embargo without having to create a new version

Ah, yes! That makes a whole lot of sense. I thought that there had to be a good reason. So we'll definitely want to keep the ability to edit the embargo in the work settings. For me, that actually clarifies the whole reason why the "work settings" are a separate thing from editing all of the rest of the work data. Thanks so much for digging that up @Smullz622!


Integration is using deprecated DEVICE_CLASS_* constants

Describe the bug
This custom integration uses deprecated DEVICE_CLASS_* constants in its codebase.
The DEVICE_CLASS_* constants have been deprecated and replaced in Home Assistant Core 2021.12 (over a year ago). I would highly suggest updating/migrating this integration to the new enums.
For example, for the device classes supported by the sensor platform, there is now a SensorDeviceClass enum. So if a sensor previously used the DEVICE_CLASS_ENERGY constant, it should now use SensorDeviceClass.ENERGY. Other platforms (like binary_sensor, and number) provide similar enumerations for their supported device classes.
The migration thus only consists of replacing constants with an enumeration member and is, therefore, very low impact and should be fairly straightforward.
If I can help resolve any questions regarding this change or migration, feel free to ask or respond to this issue. I'm happy to help!
Kindest regards,
../Frenck
To Reproduce
n/a
Expected behavior
n/a
Screenshots
n/a
Desktop (please complete the following information):

OS: [e.g. iOS] Any
Browser [e.g. chrome, safari] Any
Version [e.g. 22] Any

Smartphone (please complete the following information):

Device: [e.g. iPhone6] Any
OS: [e.g. iOS8.1] Any
Browser [e.g. stock browser, safari] Any
Version [e.g. 22] Any

Additional context
n/a

Awesome, thanks for the report, will work on those today.
Is there a best place where I can keep track of those changes for devs?

Is there a best place where I can keep track of those changes for devs?

The developer blog @ developers.home-assistant.io.
The major changes are also listed in the breaking changes section of each major Home Assistant release in the release notes.

Thanks, got a PR fixing those, appreciate the report! Lemme know if you spot anything else. Will keep an eye on the blog!

Awesome! Thanks for resolving this one @jseidl 👍
../Frenck


Unable to compile from source on High Sierra (10.13.2) with bazel 0.9.0

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS High Sierra 10.13.2
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): tf 1.4
Python version: 3.6.3
Bazel version (if compiling from source): 0.9.0
GCC/Compiler version (if compiling from source): Apple LLVM version 9.0.0 (clang-9<IP_ADDRESS>)
Exact command to reproduce: bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=- msse4.1 --copt=-msse4.2 --config=opt -k //tensorflow/tools/pip_package:build_pip_package

Describe the problem
I'm unable to compile tensorflow from source. I get too many errors as shown below in the logs:
Source code / logs
Rakshiths-MacBook-Pro:tensorflow rakshithgb$ ./configure
WARNING: Running Bazel server needs to be killed, because the startup options are different.
You have bazel 0.9.0-homebrew installed.
Please specify the location of python. [Default is /Users/rakshithgb/miniconda3/bin/python]:

Found possible Python library paths:
  /Users/rakshithgb/miniconda3/lib/python3.6/site-packages
Please input the desired Python library path to use.  Default is [/Users/rakshithgb/miniconda3/lib/python3.6/site-packages]

Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n
No Google Cloud Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n
No Hadoop File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n
No Amazon S3 File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with XLA JIT support? [y/N]: n
No XLA JIT support will be enabled for TensorFlow.

Do you wish to build TensorFlow with GDR support? [y/N]: n
No GDR support will be enabled for TensorFlow.

Do you wish to build TensorFlow with VERBS support? [y/N]: n
No VERBS support will be enabled for TensorFlow.

Do you wish to build TensorFlow with OpenCL support? [y/N]: n
No OpenCL support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]: n
No CUDA support will be enabled for TensorFlow.

Do you wish to build TensorFlow with MPI support? [y/N]: n
No MPI support will be enabled for TensorFlow.

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]:

Add "--config=mkl" to your bazel command to build with MKL support.
Please note that MKL on MacOS or windows is still not supported.
If you would like to use a local MKL instead of downloading, please set the environment variable "TF_MKL_ROOT" every time before build.
Configuration finished
Rakshiths-MacBook-Pro:tensorflow rakshithgb$ bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=- msse4.1 --copt=-msse4.2 --config=opt -k //tensorflow/tools/pip_package:build_pip_package
..............
ERROR: Skipping 'msse4.1': no such target '//:msse4.1': target 'msse4.1' not declared in package '' defined by /Users/rakshithgb/Documents/Tensorflow/tensorflow/BUILD
WARNING: Target pattern parsing failed.
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:4:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check.
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:6:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check.
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:30:9: Traceback (most recent call last):
	File "/private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD", line 27
		cc_library(name = "syclrt", srcs = [sycl_libr...")], <3 more arguments>)
	File "/private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD", line 30, in cc_library
		sycl_library_path
name 'sycl_library_path' is not defined
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:39:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '@local_config_sycl//sycl:sycl'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:96:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check.
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:98:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:100:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:102:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:104:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:106:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:108:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:110:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:112:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:114:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:116:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:118:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:120:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:122:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:124:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:126:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:131:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:136:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:141:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:146:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:151:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/bitmap256.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/bitstate.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/compile.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/dfa.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/filtered_re2.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/mimics_pcre.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/nfa.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/onepass.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/parse.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/perl_groups.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter_tree.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter_tree.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prog.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prog.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/re2.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/regexp.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/regexp.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/set.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/simplify.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/stringpiece.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/tostring.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_casefold.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_casefold.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_groups.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_groups.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/walker-inl.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/flags.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/logging.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/mix.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/mutex.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/rune.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/sparse_array.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/sparse_set.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/strutil.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/strutil.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/utf.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/util.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/filtered_re2.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/re2.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/set.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/stringpiece.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/platform/default/build_config/BUILD:115:1: Target '@com_googlesource_code_re2//:re2' contains an error and its package is in error and referenced by '//tensorflow/core/platform/default/build_config:platformlib'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/third_party/eigen3/BUILD:20:1: Target '@local_config_sycl//sycl:sycl' contains an error and its package is in error and referenced by '//third_party/eigen3:eigen3'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3169:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:pooling_ops'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3798:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:variable_ops'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:717:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:compare_and_bitpack_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3776:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:scatter_nd_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3764:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:dense_update_ops'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:643:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:gather_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:607:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:bitcast_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:619:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:constant_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:625:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:diag_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:631:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:edit_distance_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:687:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:mirror_pad_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:711:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:quantize_and_dequantize_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:787:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:split_v_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:774:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:slice_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3770:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:scatter_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3758:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:count_up_to_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/BUILD:2215:1: Target '@local_config_sycl//sycl:sycl' contains an error and its package is in error and referenced by '//tensorflow/core:sycl_runtime'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:780:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:split_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:681:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:matrix_set_diag_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:601:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:bcast_ops'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:756:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:reverse_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:699:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:pack_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:813:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:transpose_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:705:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:pad_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:693:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:one_hot_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:649:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:identity_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:661:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:listdiff_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:533:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:immutable_constant_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:655:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:identity_n_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:613:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:concat_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:675:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:matrix_diag_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:839:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:where_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:762:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:reverse_sequence_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:794:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:inplace_ops'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:827:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:unique_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:768:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:shape_ops'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:667:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:matrix_band_part_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:637:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:gather_nd_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:750:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:reshape_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:800:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:tile_ops'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:833:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:unpack_op'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:550:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:debug_ops'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/tools/pip_package/BUILD:101:1: Target '@com_googlesource_code_re2//:LICENSE' contains an error and its package is in error and referenced by '//tensorflow/tools/pip_package:licenses'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/tools/pip_package/BUILD:101:1: Target '@local_config_sycl//sycl:LICENSE.text' contains an error and its package is in error and referenced by '//tensorflow/tools/pip_package:licenses'
WARNING: errors encountered while analyzing target '//tensorflow/tools/pip_package:build_pip_package': it will not be built
INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (204 packages loaded).
INFO: Found 0 targets...
ERROR: command succeeded, but there were errors parsing the target pattern
INFO: Elapsed time: 51.902s, Critical Path: 0.02s
FAILED: Build did NOT complete successfully

you should config before compile @RakshithGB

During the build configuration step, you didn't define (leaving blank) any optimization flags you'd like to compile with which by default will set the ones available and enabled in your system:
Please specify optimization flags to use during compilation **when bazel option "--config=opt" is specified [Default is -march=native]**:
When compiling with bazel though you defined a set of optimization flags not previously configured in the previous step:
Rakshiths-MacBook-Pro:tensorflow rakshithgb$ bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=- msse4.1 --copt=-msse4.2 --config=opt -k //tensorflow/tools/pip_package:build_pip_package
You should have used --config=opt instead.

Also, there is an errant space in your copt specifying msse4.1 which is probably leading to the Bazel complaints.

As loki pointed even if you set default flags and have all the ones
specified, including msse4.1, enabled in your system I suspect it
should've worked either way.
On Mon, Dec 25, 2017, 3:01 PM loki der quaeler<EMAIL_ADDRESS>wrote:

Also, there is an errant space in your copt specifying msse4.1 which is
probably leading to the Bazel complaints.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/15622#issuecomment-353874371,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNCotu5nE5oMV1Mvf35-vA-nl2sCyEks5tD7i8gaJpZM4RMI8b
.

@Carmezim using --config=opt just added more errors.

Could you post the stack trace with commands? I built from source without problems.

Rakshiths-MacBook-Pro:tensorflow rakshithgb$ ./configure
WARNING: Running Bazel server needs to be killed, because the startup options are different.
You have bazel 0.9.0-homebrew installed.
Please specify the location of python. [Default is /Users/rakshithgb/miniconda3/bin/python]:

Found possible Python library paths:
  /Users/rakshithgb/miniconda3/lib/python3.6/site-packages
Please input the desired Python library path to use.  Default is [/Users/rakshithgb/miniconda3/lib/python3.6/site-packages]

Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n
No Google Cloud Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n
No Hadoop File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n
No Amazon S3 File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with XLA JIT support? [y/N]: n
No XLA JIT support will be enabled for TensorFlow.

Do you wish to build TensorFlow with GDR support? [y/N]: n
No GDR support will be enabled for TensorFlow.

Do you wish to build TensorFlow with VERBS support? [y/N]: n
No VERBS support will be enabled for TensorFlow.

Do you wish to build TensorFlow with OpenCL support? [y/N]: n
No OpenCL support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]: n
No CUDA support will be enabled for TensorFlow.

Do you wish to build TensorFlow with MPI support? [y/N]: n
No MPI support will be enabled for TensorFlow.

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]: --config=opt

Add "--config=mkl" to your bazel command to build with MKL support.
Please note that MKL on MacOS or windows is still not supported.
If you would like to use a local MKL instead of downloading, please set the environment variable "TF_MKL_ROOT" every time before build.
Configuration finished

Rakshiths-MacBook-Pro:tensorflow rakshithgb$ bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.1 --copt=-msse4.2 --config=opt -k //tensorflow/tools/pip_package:build_pip_package

Oh, you're confusing steps. During configuration you leave it set to
default e.g. press return leaving it blank.
--config=opt it's to be defined when you're building with bazel as in
bazel build --config=opt ...
On Mon, Dec 25, 2017, 5:18 PM Rakshith G B<EMAIL_ADDRESS>wrote:

Rakshiths-MacBook-Pro:tensorflow rakshithgb$ ./configure
WARNING: Running Bazel server needs to be killed, because the startup options are different.
You have bazel 0.9.0-homebrew installed.
Please specify the location of python. [Default is /Users/rakshithgb/miniconda3/bin/python]:
Found possible Python library paths:
/Users/rakshithgb/miniconda3/lib/python3.6/site-packages
Please input the desired Python library path to use.  Default is [/Users/rakshithgb/miniconda3/lib/python3.6/site-packages]
Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n
No Google Cloud Platform support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n
No Hadoop File System support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n
No Amazon S3 File System support will be enabled for TensorFlow.
Do you wish to build TensorFlow with XLA JIT support? [y/N]: n
No XLA JIT support will be enabled for TensorFlow.
Do you wish to build TensorFlow with GDR support? [y/N]: n
No GDR support will be enabled for TensorFlow.
Do you wish to build TensorFlow with VERBS support? [y/N]: n
No VERBS support will be enabled for TensorFlow.
Do you wish to build TensorFlow with OpenCL support? [y/N]: n
No OpenCL support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]: n
No CUDA support will be enabled for TensorFlow.
Do you wish to build TensorFlow with MPI support? [y/N]: n
No MPI support will be enabled for TensorFlow.
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]: --config=opt
Add "--config=mkl" to your bazel command to build with MKL support.
Please note that MKL on MacOS or windows is still not supported.
If you would like to use a local MKL instead of downloading, please set the environment variable "TF_MKL_ROOT" every time before build.
Configuration finished
Rakshiths-MacBook-Pro:tensorflow rakshithgb$ bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.1 --copt=-msse4.2 --config=opt -k //tensorflow/tools/pip_package:build_pip_package
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/15622#issuecomment-353881019,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNCrqZWoPMvIZY3BHwP3OwzplOnX8dks5tD9jogaJpZM4RMI8b
.

But my build command does have --config=opt

But your configuration command shouldn't,  just be empty if you're
compiling for your native architecture. I strongly recommend you visit the
official docs under installation from source. It has everything well
explained step by step including the commands.
On Mon, Dec 25, 2017, 5:45 PM Rakshith G B<EMAIL_ADDRESS>wrote:

But my build command does have --config=opt
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/15622#issuecomment-353882159,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNCjIv-cNlDIQq7bOhF8fL9O83D-Kcks5tD98vgaJpZM4RMI8b
.

@Carmezim Yes I did. This is what happened when I did:
Rakshiths-MacBook-Pro:tensorflow rakshithgb$ ./configure
WARNING: Running Bazel server needs to be killed, because the startup options are different.
You have bazel 0.9.0-homebrew installed.
Please specify the location of python. [Default is /Users/rakshithgb/miniconda3/bin/python]:

Found possible Python library paths:
  /Users/rakshithgb/miniconda3/lib/python3.6/site-packages
Please input the desired Python library path to use.  Default is [/Users/rakshithgb/miniconda3/lib/python3.6/site-packages]

Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n
No Google Cloud Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n
No Hadoop File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n
No Amazon S3 File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with XLA JIT support? [y/N]: n
No XLA JIT support will be enabled for TensorFlow.

Do you wish to build TensorFlow with GDR support? [y/N]: n
No GDR support will be enabled for TensorFlow.

Do you wish to build TensorFlow with VERBS support? [y/N]: n
No VERBS support will be enabled for TensorFlow.

Do you wish to build TensorFlow with OpenCL support? [y/N]: n
No OpenCL support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]: n
No CUDA support will be enabled for TensorFlow.

Do you wish to build TensorFlow with MPI support? [y/N]: n
No MPI support will be enabled for TensorFlow.

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]:

Add "--config=mkl" to your bazel command to build with MKL support.
Please note that MKL on MacOS or windows is still not supported.
If you would like to use a local MKL instead of downloading, please set the environment variable "TF_MKL_ROOT" every time before build.
Configuration finished
Rakshiths-MacBook-Pro:tensorflow rakshithgb$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
................
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:96:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check.
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:98:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:100:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:102:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:104:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:106:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:108:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:110:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:112:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:114:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:116:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:118:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:120:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:122:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:124:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:126:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:131:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:136:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:141:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:146:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:151:1: name 're2_test' is not defined (did you mean 'ios_test'?)
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:4:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check.
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:6:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check.
ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:30:9: Traceback (most recent call last):
	File "/private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD", line 27
		cc_library(name = "syclrt", srcs = [sycl_libr...")], <3 more arguments>)
	File "/private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD", line 30, in cc_library
		sycl_library_path
name 'sycl_library_path' is not defined
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/tools/pip_package/BUILD:101:1: Target '@com_googlesource_code_re2//:LICENSE' contains an error and its package is in error and referenced by '//tensorflow/tools/pip_package:licenses'
ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/tools/pip_package/BUILD:101:1: Target '@local_config_sycl//sycl:LICENSE.text' contains an error and its package is in error and referenced by '//tensorflow/tools/pip_package:licenses'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Loading failed
INFO: Elapsed time: 3.602s
FAILED: Build did NOT complete successfully (69 packages loaded)
    currently loading: tensorflow/core ... (2 packages)

Thanks for explaining. I am not able to properly take a look on that right now but will Cc @gunan here or wait for another TensorFlower to check it.

@Carmezim looks like the new version of bazel is causing this problem. Many are facing this issue both on Mac and Ubuntu. #15492 And it also looks like the next release of Tensorflow has this fixed.
Building it with --incompatible_load_argument_is_label=false in the bazel build command solved the issue. My build command now is:
bazel build --config=opt --incompatible_load_argument_is_label=false //tensorflow/tools/pip_package:build_pip_package

Ah I see. Cool, great job, thanks for digging this.
On Mon, Dec 25, 2017, 7:33 PM Rakshith G B<EMAIL_ADDRESS>wrote:

@Carmezim https://github.com/carmezim looks like the new version of
bazel is causing this problem. Many are facing this issue both on Mac and
Ubuntu. #15492 https://github.com/tensorflow/tensorflow/issues/15492
And it also looks like the next release of Tensorflow has this fixed.
Building it with --incompatible_load_argument_is_label=false in the bazel
build command solved the issue. My build command now is:
bazel build --config=opt --incompatible_load_argument_is_label=false
//tensorflow/tools/pip_package:build_pip_package
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/15622#issuecomment-353886994,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNCqhZGNqoVYrEtrT30fgDUsXgpCMUks5tD_h9gaJpZM4RMI8b
.

Did you have any success with this suggestion?

Yes it compiled without any errors.

Cool, glad you got it working. Maybe we should close this one as a dupe and keep track there then.

Closing this as a duplicate of #15492


Simple way to pass array of matrices to shader?

I'm trying to implement glsl skinning. What is the simplest way to pass array of bone matrices  (like [[[f32; 4]; 4]; 40]) to shader as uniform?

Should I use UniformBuffer like in https://github.com/tomaka/glium/blob/master/examples/gpgpu.rs ?

If you have 40 elements, then yes you should use a uniform buffer.

This will not work with gles2, right? :(


Bug Fix: Add missing check to return only course specific enrollments

Description: This PR adds a missing check to return only course-specific enrollments.
JIRA:
https://edlyio.atlassian.net/browse/EDLY-2319
Merge checklist:

[ ] All reviewers approved
[ ] Documentation updated (not only docstrings)
[ ] Commits are (reasonably) squashed
[ ] Translations are updated

Post merge:

[ ] Delete working branch (if not needed anymore)

Note: Please add screenshots for any viewable change.

Didn't we need to add the test?

Unit test for this serializer is already added, a bug was found, i have fixed that.


Added support for SSO while login. If Auth0 was used to login in another...

Added support for SSO while login.
If Auth0 was used to login in another site, this will make login automatic.
Overwritten logout action to call Auth0 logout.

@jfromaniello is this going to be implemented? We are needing this.


Always synchronize clipboard on explicit COPY/CUT

Always synchronize clipboard on explicit COPY/CUT
If --no-clipboard-autosync is enabled, the automatic clipboard synchronization whenever the device clipboard changes is disabled.
But on explicit COPY and CUT scrcpy shortcuts (MOD+c and MOD+x), the clipboard should still be synchronized, so that it remains possible to copy-paste from the device to the computer.
This is consistent with the behavior of MOD+v, which pastes the computer clipboard to the device.
Refs #2228
Refs #2817

Here are binaries so that you can test easily. Please replace these files in your v1.20 release:

scrcpy.exe sha256:0cee83cb1c44cf159845b16f3a0ad348fea76c75b846f19d1548866db71e275a
scrcpy-server sha256:c740e7888cdafb1d2753ee5858e8bd566d26498a79a49fe95a47c6f416130495

--no-clipboard-autosync

No problem, it can be synchronized on my Huawei device.

@rom1v   However, on my Xiaomi device, even if --no-clipboard-autosync is not enabled, the device clipboard cannot be synchronized to the computer. I guess that the Xiaomi system may be blocking access to the device clipboard,I don’t know if you can No repair.

@Helaer Does this help: https://github.com/Genymobile/scrcpy/pull/1423#issuecomment-974588319 ?

When I copy the text on the Xiaomi device, the console displays the following log information：
D:\scrcpy-win64-v1.20>scrcpy -Vdebug
INFO: scrcpy 1.20 https://github.com/Genymobile/scrcpy
DEBUG: Using server (portable): D:\scrcpy-win64-v1.20\scrcpy-server
DEBUG: Screensaver enabled
D:\scrcpy-win64-v1.20\scrcpy-server: 1 file pushed, 0 skipped. 76.3 MB/s (37191 bytes in 0.000s)
DEBUG: tunnel reverse 27183
DEBUG: === Tunnel reverse
DEBUG: === video_socket accept()
[server] INFO: Device: Xiaomi M2007J3SC (Android 11)
DEBUG:  --> video_socket ok
DEBUG: === control_socket accept()
DEBUG:  --> control_socket ok
DEBUG: === Close adb tunnel
[server] DEBUG: Using encoder: 'OMX.qcom.video.encoder.avc'
DEBUG: === Device read info
DEBUG:   --> device info: [M2007J3SC] 1080x2400
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
INFO: Renderer: direct3d
DEBUG: Trilinear filtering disabled (not an OpenGL renderer)
DEBUG: Using icon (portable): D:\scrcpy-win64-v1.20\icon.png
INFO: Initial texture: 1080x2400
DEBUG: Starting stream thread
DEBUG: Computer clipboard unchanged

DEBUG: === Tunnel reverse
DEBUG: === video_socket accept()
[server] INFO: Device: Xiaomi M2007J3SC (Android 11)
DEBUG: --> video_socket ok
DEBUG: === control_socket accept()
DEBUG: --> control_socket ok
DEBUG: === Close adb tunnel

Are these your custom logs? (=== or -->)
If not, which binary do you use? (I may have forgot to remove some debug logs on some branches)

DEBUG: Computer clipboard unchanged

This happens when the device sends a clipboard content which is already the same as the computer clipboard.

@Helaer这有帮助吗：#1423（评论）？

Unfortunately, in the latest system, there is no longer a close option.

This is a test version you provided when I reported a bug in version 1.20.

DEBUG: === Tunnel reverse
DEBUG: === video_socket accept()
[server] INFO: Device: Xiaomi M2007J3SC (Android 11)
DEBUG: --> video_socket ok
DEBUG: === control_socket accept()
DEBUG: --> control_socket ok
DEBUG: === Close adb tunnel

这些是您的自定义日志吗？(===或-->) 如果不是，您使用哪个二进制文件？（我可能忘记删除某些分支上的一些调试日志）

调试：计算机剪贴板不变

当设备发送已经与计算机剪贴板相同的剪贴板内容时，就会发生这种情况。

This is a test version you provided when I reported a bug in version 1.20.

Oh, ok, #2779 :+1:

哦，好的，#2779 👍

I originally thought that this version could display more logs, so I used this version for testing.

@Helaer这有帮助吗：#1423（评论） / #1423（评论）？

Many mobile phone manufacturers have begun to restrict clipboard access, If scrcpy cannot request access permissions, it may no longer be able to synchronize the Android clipboard to the computer, which is a pity.


man-pages: 5.10 -> 5.11

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/man-pages/versions.
meta.description for man-pages is: "Linux development manual pages"
meta.homepage for man-pages is: "https://www.kernel.org/doc/man-pages/"
meta.changelog for man-pages is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 5.11 in filename of file in /nix/store/f8jqinzybhbcb3xfkn8s4vs0agj55g1p-man-pages-5.11

directory tree listing: https://gist.github.com/2b8f20f87ca1bc02d5c2d1894ec4e49c

du listing: https://gist.github.com/9b7fccc355d20fd1da03075b42975bda

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
man-pages

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/f8jqinzybhbcb3xfkn8s4vs0agj55g1p-man-pages-5.11 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A man-pages https://github.com/r-ryantm/nixpkgs/archive/95e01742c2a1f2f9584d979d8b060fff3564cacf.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/f8jqinzybhbcb3xfkn8s4vs0agj55g1p-man-pages-5.11
ls -la /nix/store/f8jqinzybhbcb3xfkn8s4vs0agj55g1p-man-pages-5.11/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

manpages (man-pages)

Maintainer pings

Result of nixpkgs-review pr 117612 at 95e01742 run on aarch64-linux 1

1 package built successfully:

man-pages

1 suggestion:

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?
Near pkgs/data/documentation/man-pages/default.nix:24:3:
   |
24 |   meta = with lib; {
   |   ^


Improve error messages when proxy isn't working

The errors we're getting back when a tool like mitmproxy isn't running are super cryptic. This needs to be improved

Fixed in 0.1.2


Moving ARC19 status to Final.

ARC19 should realistically be considered final at this point as almost 14K ARC19 NFTs have already been minted - all completely immutable.
Any changes to the URL spec of ARC19 at this point will likely need to be an independent ARC.

@fabrice102 can we merge this?


[flake8-bandit] Add Rule for S508 (snmp insecure version) & S509 (snmp weak cryptography)

ref: https://github.com/charliermarsh/ruff/issues/1646

Making a lot of typo's today 😅


[feature] Use UTF-8 characters for moon name

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Use "M◐◑N" or something similar when the moon name is used in CLI output.
Describe alternatives you've considered
N/A
Additional context

I tried this but the characters in the terminal render differently than web.

Going a different direction.


Integration testing with ABAP Unit

I think it could be useful to create a test suite to preform a turnaround test: Deserialize a new object from XML, then serialise it and compare the resulting XML to verify it matches. This could be fully automated at object type level, each object type pulling the test from repo abapGit-tests/XXXX
I thought the first part would be quick and easy, but it turned out to be a bit more complex. I am currently implementing PDTS and started off by just pasting the XML from Github into the test code. However on attempting the initial turnaround, I spent way more time than anticipated in trying to match up the input/output XML classes, I think something needs to be harmonised there as the stringified XML is different with all the simple approaches I tried. Or maybe I'm going about it the wrong way and should be using the FILES class. Nevertheless, I'd like to focus on the PDTS/WS objects for now so am parking this issue here and if anyone would like to throw some ideas in or run with it then they're welcome.
If anyone is interested in my first approach, it's zcl_abapgit_object_pdts (not in master yet).

unit tests should not be dangerous to the customer system IMHO, as far as I remember its possible to filter the selection in https://github.com/abapGit/ci, so it can run for just one repo at a time

I see value in both local unit tests and in abapGitCI. CI is a more comprehensive higher level test, but unit test has more TDD-friendly performance. PDTS create-compare-delete now runs pretty quick on my laptop because everything is local.

On a grander scale, it could be feasible to have a common framework of global test classes used by ABAP Unit and abapGitCI. For speed reasons, the unit tests could use hardcoded repos, which could be generated from the GitHub test repos. Feel free to add a low priority or crazy label :)
The reason for critical is because we are creating objects and can mess things up. I've ended with corrupt classes that SE80 says are there, but try to delete or edit and it says doesn't exist.

For the developer of a new ser/deser class it's essential to do frequent end-2-end tests. I currently do it manually with repos from abapgit-test.
For others, I think centralized abapgitCI is sufficient. maybe we can combine both and come up with a generic unit test for these classes. Could be activated by a checkbox on the debug page for selected object types.

or just run the report that already exists

See https://github.com/abapGit/abapGit/pull/3961


rtmidi not found when on my system

OS: Kubuntu 22.04.1 LTS x86_64
Laptop: 20HBCTO1WW ThinkPad P51s
Kernel: 5.15.0-52-lowlatency
CPU: Intel i7-7600U (4) @ 3.900GHz
after running cmake --preset ninja-system, I get the following message:
Preset CMake variables:

  CMAKE_EXPORT_COMPILE_COMMANDS:BOOL="TRUE"
  UsePkgConfig:BOOL="TRUE"

-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Checking for module 'rtmidi'
--   No package 'rtmidi' found
CMake Error at /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:603 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:825 (_pkg_check_modules_internal)
  CMakeLists.txt:36 (pkg_check_modules)

I checked to see if I have rtmidi installed with apt search rtmidi:

hydrogen/jammy,now 1.1.1+52.gb917e057-1 amd64 [installed,automatic]
  advanced drum machine/step sequencer

libportmidi-dev/jammy,now 1:217-6 amd64 [installed]
  library for real-time MIDI input/output

libportmidi0/jammy,now 1:217-6 amd64 [installed,automatic]
  library for real-time MIDI input/output

librtmidi-dev/jammy 5.0.0-2 amd64
  C++ library for realtime MIDI input/ouput (development files)

librtmidi-doc/jammy,jammy 5.0.0-2 all
  C++ library for realtime MIDI input/ouput (documentation files)

librtmidi6/jammy,now 5.0.0-2 amd64 [installed,automatic]
  C++ library for realtime MIDI input/ouput

midisnoop/jammy,now 0.1.2+git20141108.bc30f600187e-1build3 amd64 [installed,automatic]
  MIDI monitor and prober

python3-rtmidi/jammy,now 1.4.7-1build2 amd64 [installed]
  Python wrapper for the RtMidi C++ library written with Cython

I was going to install librtmidi-dev, but it said it would remove many crucial packages on my system.
Some help on this would be much appreciated!

Then you should build using vcpkg.
Try scripts/build.sh


exercise: pointer table

should provide solutions to this

I've written up an answer key, but it's maybe a little wonk, I want check with you guys and see.
The second statement
z = *x + 2;

assigns a new value to z. That new value is 2 + "whatever exists in memory at the address pointed to by x". But x is not a pointer, x is the integer value of 9. So we're going to address 0x9 and adding 2 to whatever we find there ...
Some of the subsequent answers get effected as well, if they depend on z
@digshake @stlou Did I do something wrong?

let's just change this so that it's *px for the second statement

I changed the answer key and the assignment.
Might still be good to have someone double check my answers
@stlou @digshake


prev slide button not working

Previous button(arrow) is not scrolling frames. (next button(arrow) is working)

I am using slick-theme.css and slick.css

====================================================================
            $('.carousel-slide').slick({               slidesToShow: 1,               slidesToScroll: 1,               fade: true,               infinite: true,               speed: 500}             );
here is the html

1

2

3

[  paste your jsfiddle link here  ]
i am unable to recreate in jsfiddle as to reproduce requires fonts.
use this jsfiddle to reproduce your bug:
http://jsfiddle.net/simeydotme/fmo50w7n/
we will likely close your issue without it.
====================================================================
Steps to reproduce the problem

create carousel in html
load slick.css and slick-theme.css stylesheets
3.choose option of arrow: true
note previous button works when slick-theme.css is not used for styling

====================================================================
What is the expected behaviour?
...  I expect that the button turns opaque and the pointer changes on hover and when selected the slide carousel should advance backwards
====================================================================
What is observed behaviour?
nothing happens, no hover and no pointer change, slides do not advance backward
...
====================================================================
More Details

Which browsers/versions does it happen on? chrome firefox
Which jQuery/Slick version are you using?
jquery: v3.1.1
"slick-carousel": "^1.6.0"
Did this work before?
no but it works when i do not use the slick-theme.css file

My solution:

I made sure that my title div did not cover the area where i was placing the button.
i added z-index: 9999 to .slick-prev class

it appeared to fix the issue

Bingo: z-indexing. We should probably add that to the CSS, although we can probably just do z-index: 1. PR's welcome!

Very helpful!!!!

Yes, thanks for the helps on the z-index for the left arrow. Huge.

I am having a similar issue with slick-dots. Runs fine locally, when implemented on server the dots go missing. I am noticing the  doesn't get the "::before 1" appended to it on the server. Any ideas why this might happen?

Bingo: z-indexing. We should probably add that to the CSS, although we can probably just do z-index: 1. PR's welcome!

Thanks a lot!

thank you

My solution:

I made sure that my title div did not cover the area where i was placing the button.
i added z-index: 9999 to .slick-prev class

it appeared to fix the issue

setting z-index helped me to resolve issue. thanks!


[EUWE] Fix IE11 VMRC connectivity

Verified VMRC connectivity in IE10, IE11, Edge, Chrome and Firefox during unit testing (Linux & Windows).
@miq-bot add_labels ui, bug, blocker
https://bugzilla.redhat.com/show_bug.cgi?id=1414869

@himdel can you please review.

Except for the global var, LGTM :+1:
Ah, and you may also want to remove the jquery-1.8 dependency from bower.json.

@himdel Fixed global var reference (had to be lack of caffeine..) and updated bower.json as well.  I referenced the upstream PR in the commit message for historical context.

Looks good.


Some questions about "user settings"  and "emmet" & "snippet"

VSCode Version: 1.6.0
OS Version: windows 10 x64

I am a Chinese, My English is not very good, these words are written using translation software, Excuse me.
I like VScode very much，I used it from V0.9 onwards, from the first day I know it, together with a strong recommendation to a friend, although there are still some problems, but I believe it will be getting better and better!

There are a few problems have always wanted to say, but my English is not good, today I have the courage to say it, hoping to improve.

user settings：

When we set some options, except the "true" or  "false" option, there is no hint at the value of the comment line, like:
    // 控制编辑器是否应呈现空白字符
    "editor.renderWhitespace": "none",
    // 控制是否将代码段与其他建议一起显示以及它们的排序方式。
    "editor.snippetSuggestions": "bottom",

--------------------I wish it could be like the following------------
    // 控制编辑器是否应呈现空白字符, valid values: ["none","boundary","all"]
    "editor.renderWhitespace": "none",
    // 控制是否将代码段与其他建议一起显示以及它们的排序方式。valid values: ["top","bottom","inline","none"]
    "editor.snippetSuggestions": "bottom",

This will be very convenient for us to set up

"emmet" & "snippet"

In VS code, when we enter the PHP built-in function, like "echo", when we enter "echo", It will appear smart tips, but when we press the tab button, it just shows echo .
In Sublime Text, when we enter echo and press the tab, it is 'echo "string";' , and the cursor on the string, it greatly saving times.
// enter `echo` and press tab:
------------In VS code------------
echo

------------In sublime text------------
echo "string";

@Meli55a
For your first question, we do have intellisense that show you the options for the settings.
You can hit Ctrl+Space from inside the double quotes to trigger it.

For you second question, have you tried creating custom user snippets?

Thank you!, he first problem has been solved. For the second question, i know hao to creating custom user snippets, I hope vs code  native support

@alexandrudima @aeschli Do we take snippet requests for languages?

@ramya-rao-a We don't want to add snippets to our built-in extension. Snippets should be in extensions from the marketplace as this gives users more flexibility to control what snippets are available.
Some users don't like some our snippets and there's currently no way of hiding or replacing a single snippet.

Thanks @aeschli.
@Meli55a, you must be using some PHP related extension, you can get in touch with the extension owner to include this snippet

Thanks @ramya-rao-a @aeschli , I tried some PHP extensions. but they are not ideal, i hope the future will be better, I wish you a pleasant job. @ramya-rao-a your smile is pleasan! Thanks again.


Add files via upload

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[ ] Filename in the lowercase format
[ ] Image format: png
[ ] Image size: 256 by 256 px

@zhaojin1229 can you lowercase filename? and remove extra file