text:
@XMLRootElement and @XmlAttribute ignored

Version 2.8.0
Question/Bug?

I have some issues setting up Springfox for usage in Swagger UI.
I got it working in general, but the XML examples which are created are partly wrong.
I have these models:
@XmlRootElement(name = "ApplicatorUnits")
@XmlAccessorType(XmlAccessType.FIELD)
public class EHDTOApplicatorUnits
{
    @XmlElement(name = "UnitGroup")
    private List<EHDTOUnitGroup> ehdtoUnitGroups;

    public List<EHDTOUnitGroup> getEhdtoUnitGroups()
    {
        return ehdtoUnitGroups;
    }

    public void setEhdtoUnitGroups(List<EHDTOUnitGroup> ehdtoUnitGroups)
    {
        this.ehdtoUnitGroups = ehdtoUnitGroups;
    }
}

@XmlRootElement(name = "UnitGroup")
@XmlAccessorType(XmlAccessType.FIELD)
public class EHDTOUnitGroup
{
    @XmlAttribute(name = "name")
    private String name;

    @XmlElement(name = "unit")
    private List<EHDTOUnit> ehdtoUnits;

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public List<EHDTOUnit> getEhdtoUnits()
    {
        return ehdtoUnits;
    }

    public void setEhdtoUnits(List<EHDTOUnit> ehdtoUnits)
    {
        this.ehdtoUnits = ehdtoUnits;
    }
}

You see some usages of @XmlAttribute, @XmlRootElement and @XmlElement.
After adding jackson jaxb annotation introspectors (I tried different ways) the XML was partly correct, as the @XmlAttribute annotations have been considered after this step:
        JaxbAnnotationModule jaxbAnnotationModule = new JaxbAnnotationModule();
        jaxbAnnotationModule.setPriority(Priority.PRIMARY);
        mapper.registerModule(jaxbAnnotationModule);
        /*AnnotationIntrospector primary = new JacksonAnnotationIntrospector();
        AnnotationIntrospector secondary = new XmlJaxbAnnotationIntrospector(mapper.getTypeFactory()); //new JaxbAnnotationIntrospector(mapper.getTypeFactory());
        AnnotationIntrospector pair = new AnnotationIntrospectorPair(primary,secondary);
        mapper.setAnnotationIntrospector(pair);*/

However, the other 2 are still ignored, resulting in this example xml:
<?xml version="1.0"?>
<EHDTOApplicatorUnits>
  <UnitGroup>
    <name>string</name>
    <unit>
      <id>1</id>
      <name>string</name>
      <unitSystem>string</unitSystem>
    </unit>
  </UnitGroup>
</EHDTOApplicatorUnits>

While the real output of the API is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ApplicatorUnits>
  <UnitGroup name="coefTempErrorSpan">
    <unit>
      <id>1</id>
      <name>% span /10K</name>
      <unitSystem>SI</unitSystem>
    </unit>
    <unit>
      <id>2</id>
      <name>% span /50F</name>
      <unitSystem>SI</unitSystem>
    </unit>
  </UnitGroup>
...
</ApplicatorUnits>

You see the different naming of the root element, and also the "name" of the UnitGroup which is not an attribute in the example xml but an own child-node.
Is there any step I missed?

Xml support is not really great. I won't be surprised if its a bug.

I would be very thankful if you could have a look at this and maybe provide a fix, as I am introducing this in a project right now where we use this annotations extensively :( ...

I think this is related to this issue: https://github.com/springfox/springfox/issues/2076

Let me investigate.

Ok, thanks for your effort! Any quick workaround you know which I could use instead of @XmlAttribute to continue already now?

Hey @dilipkrish,
without wanting to bring you in hurry/stress or getting on your nerves, can you give me some update on this if you already had time to look into it and maybe give some estimation until when there could be a fix? Or maybe you have some workaround for me? I just need to know some timeframe so I can update some planning for my team, that would help me a lot :)
But anyway: Thanks for your effort!

@rstmm I'm planning to take a look at this, this week. Will let you know, sorry for the delay.

Have you seen the docs?

Seems like i have overseen this part in the docs. Sorry! Thanks that's all I need I guess. Will try it later today. Thanks a lot for your effort!

@dilipkrish Thanks again, I can confirm it's working. However, the swagger-ui.html is not working anymore in snapshot versions, I reported this here already, could you please have a look? https://github.com/springfox/springfox/issues/2281#issuecomment-372806807

@rstmm the demos project works just fine. If you load the project and run ./gradlew :spring-java-swagger:appRun and follow instructions in readme it works just fine.

The remaining issue was fixed in https://github.com/springfox/springfox/issues/2309.
Thanks!

authors: dilipkrish rstmm

repo: springfox/springfox


text:
Cannot execute request after a path variable(param) is given at swagger ui

I am not sure if it is a bug of swagger-ui or my misusage of it.
I have given a value for path variable which is required, and then I still cannot execute the request.here is the screen shot.

My code snippet is as follows:
	@ApiOperation(value="Get parameter by id", notes="Get parameter by id")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "id", value = "Parameter id", required = true, dataType = "Integer", paramType="path")
	})
	@GetMapping(value = "/{id}")
	@ResponseBody
	public Parameter getParameter(@PathVariable Integer id) {
		return parameterBiz.getParameter(id);
	}

maven dependencies:
			<dependency>
				<groupId>io.springfox</groupId>
				<artifactId>springfox-swagger2</artifactId>
				<version>2.9.2</version>
			</dependency>

			<dependency>
				<groupId>io.springfox</groupId>
				<artifactId>springfox-swagger-ui</artifactId>
				<version>2.9.2</version>
			</dependency>

It seems you have a cached version of the javascript/ui. Can you refresh and try with 2.9.2

Sorry for not making sense.
I found this issue with the version 2.9.2 first and then I tried to downgrade the version one by one. I found this issue away when there was version 2.7.0.
Therefore, I don't think I have an old version issue. Could you help to check this, please?

Whats causing your issue is dataType = "Integer". There is no need for the implicit parameter annotation, but leaving it blank will do the same trick

Thank you. Maybe there is a better way to tell user dataType  is unnessesary here.
Anyway, it can work without dataType = "Integer" now.

Its typically used for only complex types. Additionally if you may need to add the model to the additional models via the docket.additionalModels(...) api.

source: gharchive/issue

authors: JackEggie dilipkrish

license_type: permissive

license_source: github-api


text:
Can not create a Path from an empty string

The code is throwing java.lang.IllegalArgumentException. Could you please shed some light on the workaround.
Below is the usage
val df = spark.read.
format("com.springml.spark.sftp").
option("host", "ftp-server").
option("username", "uname").
option("password", "pwd").
option("fileType", "csv").
option("inferSchema", "true").
option("copyLatest","true").
option("inferSchema", "false").
option("tempLocation", "/tmp").
load("/file-location/file.CSV")
Output:
java.lang.IllegalArgumentException: Can not create a Path from an empty string
at org.apache.hadoop.fs.Path.checkPathArg(Path.java:126)
at org.apache.hadoop.fs.Path.(Path.java:134)
at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:244)
at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:411)
at org.apache.spark.SparkContext$$anonfun$hadoopFile$1$$anonfun$29.apply(SparkContext.scala:1013)
at org.apache.spark.SparkContext$$anonfun$hadoopFile$1$$anonfun$29.apply(SparkContext.scala:1013)
at org.apache.spark.rdd.HadoopRDD$$anonfun$getJobConf$6.apply(HadoopRDD.scala:179)
at org.apache.spark.rdd.HadoopRDD$$anonfun$getJobConf$6.apply(HadoopRDD.scala:179)
at scala.Option.foreach(Option.scala:257)
at org.apache.spark.rdd.HadoopRDD.getJobConf(HadoopRDD.scala:179)
at org.apache.spark.rdd.HadoopRDD.getPartitions(HadoopRDD.scala:198)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:252)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:250)
at scala.Option.getOrElse(Option.scala:121)
at org.apache.spark.rdd.RDD.partitions(RDD.scala:250)
at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:252)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:250)
at scala.Option.getOrElse(Option.scala:121)
at org.apache.spark.rdd.RDD.partitions(RDD.scala:250)
at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:252)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:250)
at scala.Option.getOrElse(Option.scala:121)
at org.apache.spark.rdd.RDD.partitions(RDD.scala:250)
at org.apache.spark.rdd.RDD$$anonfun$take$1.apply(RDD.scala:1333)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:362)
at org.apache.spark.rdd.RDD.take(RDD.scala:1327)
at org.apache.spark.rdd.RDD$$anonfun$first$1.apply(RDD.scala:1368)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:362)
at org.apache.spark.rdd.RDD.first(RDD.scala:1367)
at org.apache.spark.sql.execution.datasources.csv.CSVFileFormat.findFirstLine(CSVFileFormat.scala:206)
at org.apache.spark.sql.execution.datasources.csv.CSVFileFormat.inferSchema(CSVFileFormat.scala:60)
at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$7.apply(DataSource.scala:184)
at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$7.apply(DataSource.scala:184)
at scala.Option.orElse(Option.scala:289)
at org.apache.spark.sql.execution.datasources.DataSource.org$apache$spark$sql$execution$datasources$DataSource$$getOrInferFileFormatSchema(DataSource.scala:183)
at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:387)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:152)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:135)
at com.springml.spark.sftp.DatasetRelation.read(DatasetRelation.scala:44)
at com.springml.spark.sftp.DatasetRelation.(DatasetRelation.scala:29)
at com.springml.spark.sftp.DefaultSource.createRelation(DefaultSource.scala:84)
at com.springml.spark.sftp.DefaultSource.createRelation(DefaultSource.scala:43)
at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:330)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:152)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:135)
... 47 elided

@rbheemana What version of spark you are using? Is it 1.6.x or 2.x?

2.x

On Jul 12, 2017 at 12:56 AM,  <samuel-pt (mailto:notifications@github.com)>  wrote:
@rbheemana (https://github.com/rbheemana)  What version of spark you are using? Is it 1.6.x or 2.x?
—
You are receiving this because you were mentioned.
Reply to this email directly,   view it on GitHub (https://github.com/springml/spark-sftp/issues/11#issuecomment-314644095), or   mute the thread (https://github.com/notifications/unsubscribe-auth/AMEsF_LxxqJubwTUTbxlOavUmH44Wx0fks5sNFHggaJpZM4OPtsb).

@rbheemana I am not able to reproduce this issue. I've tried it in Spark 2.1.0 without hadoop.
Please let me know the following details

Are you trying this in any notebooks like Jupyter, Zeppelin?
Do you have Spark on top of hadoop?
What hadoop distributions you are using? Like HDP, CDH ...
Or do you use any cloud setup like AWS EMR, Google Dataproc or Azure HDI?
Are you using internal SFTP or SFTP provides like brickftp?
Is it possible to share your setup?

Hi,

Are you trying this in any notebooks like Jupyter, Zeppelin?
I have both Zeppelin and command line, it gave me same error.
Do you have Spark on top of hadoop?
Yes.
What hadoop distributions you are using? Like HDP, CDH ...
I have HDP latest version.
Or do you use any cloud setup like AWS EMR, Google Dataproc or Azure HDI?
My HDP is installed on AWS EC2 RHEL7 instances.
Are you using internal SFTP or SFTP provides like brickftp?
I used internal SFTP

Thanks,
Ram

On Jul 20, 2017 at 3:09 AM,  <Girish Reddy (mailto:notifications@github.com)>  wrote:
@rbheemana (https://github.com/rbheemana)  I am not able to reproduce this issue. I've tried it in Spark 2.1.0 without hadoop.
Please let me know the following details
Are you trying this in any notebooks like Jupyter, Zeppelin?
Do you have Spark on top of hadoop?
What hadoop distributions you are using? Like HDP, CDH ...
Or do you use any cloud setup like AWS EMR, Google Dataproc or Azure HDI?
Are you using internal SFTP or SFTP provides like brickftp?
Is it possible to share your setup?
—
You are receiving this because you were mentioned.
Reply to this email directly,   view it on GitHub (https://github.com/springml/spark-sftp/issues/11#issuecomment-316616691), or   mute the thread (https://github.com/notifications/unsubscribe-auth/AMEsF0bPcSCg4LmMAJp0xgXzYJoQWf0Qks5sPv0NgaJpZM4OPtsb).

@rbheemana Will setup a HDP cluster and update this ticket

@rbheemana When we tried with HDP cluster we got similar issue but not the same. We've fixed it and the changes are committed via https://github.com/springml/spark-sftp/commit/3720389daba7e325b8dfcba1c176c4878b7eddf3. Please try this fix and let us know if you still face this issue.
Please note that this fix is not yet pushed into maven repository. To use this fix, build spark-sftp and include it in spark-shell using --jars option

Hi,
I have build the jar file uisng 'build/sbt package'. Added  jar file to spark-shell using --jars option. When tried to execute it fails with java.lang.NoClassDefFoundError: com/springml/sftp/client/SFTPClient. Checked the jar file no classes for client. Should I add any dependencies to download the client files while building jar.
Thanks,
Ram

Thanks for fixing.. It is working perfectly now..

I run Spark SMOTE program from git hub and get the same error . Could you please shed some light on the workaround.
17/11/10 14:10:30 INFO SparkContext: Created broadcast 0 from textFile at loadData.scala:12
[error] (run-main-0) java.lang.IllegalArgumentException: Can not create a Path from an empty string
[error] java.lang.IllegalArgumentException: Can not create a Path from an empty string
[error] 	at org.apache.hadoop.fs.Path.checkPathArg(Path.java:127)
[error] 	at org.apache.hadoop.fs.Path.(Path.java:135)
[error] 	at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:241)
[error] 	at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:362)
[error] 	at org.apache.spark.SparkContext$$anonfun$hadoopFile$1$$anonfun$32.apply(SparkContext.scala:1016)
[error] 	at org.apache.spark.SparkContext$$anonfun$hadoopFile$1$$anonfun$32.apply(SparkContext.scala:1016)
[error] 	at org.apache.spark.rdd.HadoopRDD$$anonfun$getJobConf$6.apply(HadoopRDD.scala:176)
[error] 	at org.apache.spark.rdd.HadoopRDD$$anonfun$getJobConf$6.apply(HadoopRDD.scala:176)
[error] 	at scala.Option.map(Option.scala:145)
[error] 	at org.apache.spark.rdd.HadoopRDD.getJobConf(HadoopRDD.scala:176)
[error] 	at org.apache.spark.rdd.HadoopRDD.getPartitions(HadoopRDD.scala:200)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)
[error] 	at scala.Option.getOrElse(Option.scala:120)
[error] 	at org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
[error] 	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)
[error] 	at scala.Option.getOrElse(Option.scala:120)
[error] 	at org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
[error] 	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)
[error] 	at scala.Option.getOrElse(Option.scala:120)
[error] 	at org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
[error] 	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)
[error] 	at scala.Option.getOrElse(Option.scala:120)
[error] 	at org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
[error] 	at org.apache.spark.ShuffleDependency.(Dependency.scala:82)
[error] 	at org.apache.spark.rdd.ShuffledRDD.getDependencies(ShuffledRDD.scala:78)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$dependencies$2.apply(RDD.scala:226)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$dependencies$2.apply(RDD.scala:224)
[error] 	at scala.Option.getOrElse(Option.scala:120)
[error] 	at org.apache.spark.rdd.RDD.dependencies(RDD.scala:224)
[error] 	at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$getPreferredLocsInternal(DAGScheduler.scala:1405)
[error] 	at org.apache.spark.scheduler.DAGScheduler.getPreferredLocs(DAGScheduler.scala:1371)
[error] 	at org.apache.spark.SparkContext.getPreferredLocs(SparkContext.scala:1595)
[error] 	at org.apache.spark.rdd.PartitionCoalescer.currPrefLocs(CoalescedRDD.scala:178)
[error] 	at org.apache.spark.rdd.PartitionCoalescer$LocationIterator$$anonfun$6$$anonfun$apply$2.apply(CoalescedRDD.scala:195)
[error] 	at org.apache.spark.rdd.PartitionCoalescer$LocationIterator$$anonfun$6$$anonfun$apply$2.apply(CoalescedRDD.scala:194)
[error] 	at scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371)
[error] 	at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:350)
[error] 	at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:350)
[error] 	at org.apache.spark.rdd.PartitionCoalescer$LocationIterator.(CoalescedRDD.scala:189)
[error] 	at org.apache.spark.rdd.PartitionCoalescer.setupGroups(CoalescedRDD.scala:240)
[error] 	at org.apache.spark.rdd.PartitionCoalescer.run(CoalescedRDD.scala:341)
[error] 	at org.apache.spark.rdd.CoalescedRDD.getPartitions(CoalescedRDD.scala:87)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)
[error] 	at scala.Option.getOrElse(Option.scala:120)
[error] 	at org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
[error] 	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)
[error] 	at scala.Option.getOrElse(Option.scala:120)
[error] 	at org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
[error] 	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)
[error] 	at scala.Option.getOrElse(Option.scala:120)
[error] 	at org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
[error] 	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)
[error] 	at scala.Option.getOrElse(Option.scala:120)
[error] 	at org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
[error] 	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)
[error] 	at scala.Option.getOrElse(Option.scala:120)
[error] 	at org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
[error] 	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)
[error] 	at scala.Option.getOrElse(Option.scala:120)
[error] 	at org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
[error] 	at org.apache.spark.SparkContext.runJob(SparkContext.scala:1944)
[error] 	at org.apache.spark.rdd.RDD$$anonfun$reduce$1.apply(RDD.scala:1007)
[error] 	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
[error] 	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
[error] 	at org.apache.spark.rdd.RDD.withScope(RDD.scala:310)
[error] 	at org.apache.spark.rdd.RDD.reduce(RDD.scala:989)
[error] 	at SMOTE.SMOTE$.runSMOTE(SMOTE.scala:31)
[error] 	at driver$.main(driver.scala:40)
[error] 	at driver.main(driver.scala)
[error] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error] 	at java.lang.reflect.Method.invoke(Method.java:498)
[error] 	at sbt.Run.invokeMain(Run.scala:89)
[error] 	at sbt.Run.run0(Run.scala:83)
[error] 	at sbt.Run.execute$1(Run.scala:61)
[error] 	at sbt.Run.$anonfun$run$4(Run.scala:73)
[error] 	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
[error] 	at sbt.util.InterfaceUtil$$anon$1.get(InterfaceUtil.scala:10)
[error] 	at sbt.TrapExit$App.run(TrapExit.scala:252)
[error] 	at java.lang.Thread.run(Thread.java:748)
17/11/10 14:10:33 ERROR Utils: uncaught error in thread SparkListenerBus, stopping SparkContext
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:998)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1304)
at java.util.concurrent.Semaphore.acquire(Semaphore.java:312)
at org.apache.spark.util.AsynchronousListenerBus$$anon$1$$anonfun$run$1.apply$mcV$sp(AsynchronousListenerBus.scala:65)
at org.apache.spark.util.Utils$.tryOrStopSparkContext(Utils.scala:1136)
at org.apache.spark.util.AsynchronousListenerBus$$anon$1.run(AsynchronousListenerBus.scala:63)
17/11/10 14:10:33 ERROR ContextCleaner: Error in cleaning thread
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
at org.apache.spark.ContextCleaner$$anonfun$org$apache$spark$ContextCleaner$$keepCleaning$1.apply$mcV$sp(ContextCleaner.scala:157)
at org.apache.spark.util.Utils$.tryOrStopSparkContext(Utils.scala:1136)
at org.apache.spark.ContextCleaner.org$apache$spark$ContextCleaner$$keepCleaning(ContextCleaner.scala:154)
at org.apache.spark.ContextCleaner$$anon$3.run(ContextCleaner.scala:67)
17/11/10 14:10:33 INFO SparkUI: Stopped Spark web UI at http://127.0.0.1:4040
[debug] 	Thread run-main-0 exited.17/11/10 14:10:33 INFO DAGScheduler: Stopping DAGScheduler
[debug] Interrupting remaining threads (should be all daemons).
[debug] Interrupting thread New I/O worker #1
[debug] 	Interrupted New I/O worker #1
[debug] Interrupting thread qtp2016764812-49 Acceptor0 SocketConnector@0.0.0.0:38375
[debug] 	Interrupted qtp2016764812-49 Acceptor0 SocketConnector@0.0.0.0:38375
[debug] Interrupting thread shuffle-client-0
[debug] 	Interrupted shuffle-client-0
[debug] Interrupting thread qtp2016764812-56
[debug] 	Interrupted qtp2016764812-56
[debug] Interrupting thread New I/O boss #3
[debug] 	Interrupted New I/O boss #3
[debug] Interrupting thread Thread-3
[debug] 	Interrupted Thread-3
[debug] Interrupting thread qtp1820541255-65
[debug] 	Interrupted qtp1820541255-65
[debug] Interrupting thread SPARK_CONTEXT cleanup timer
[debug] 	Interrupted SPARK_CONTEXT cleanup timer
[debug] Interrupting thread sparkDriver-akka.actor.default-dispatcher-5
[debug] 	Interrupted sparkDriver-akka.actor.default-dispatcher-5
[debug] Interrupting thread qtp1820541255-60 Acceptor0 SelectChannelConnector@0.0.0.0:4040
[error] java.lang.RuntimeException: Nonzero exit code: 1
[error] 	at sbt.Run$.executeTrapExit(Run.scala:120)
[error] 	at sbt.Run.run(Run.scala:73)
[error] 	at sbt.Defaults$.$anonfun$bgRunTask$5(Defaults.scala:1152)
[error] 	at sbt.Defaults$.$anonfun$bgRunTask$5$adapted(Defaults.scala:1147)
[error] 	at sbt.internal.BackgroundThreadPool.$anonfun$run$1(DefaultBackgroundJobService.scala:359)
[error] 	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
[error] 	at scala.util.Try$.apply(Try.scala:209)
[error] 	at sbt.internal.BackgroundThreadPool$BackgroundRunnable.run(DefaultBackgroundJobService.scala:282)
[error] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] 	at java.lang.Thread.run(Thread.java:748)
[error] (compile:run) Nonzero exit code: 1
[error] Total time: 116 s, completed Nov 10, 2017 2:10:36 PM
17/11/10 14:10:37 INFO DiskBlockManager: Shutdown hook called
17/11/10 14:10:37 INFO ShutdownHookManager: Shutdown hook called
17/11/10 14:10:37 INFO ShutdownHookManager: Deleting directory /tmp/spark-73df991b-101f-44df-b410-31db9125cf94
I used hadoop 2.6.0 and Spark 1.5.2 version.

@Cherryko - Could you please provide your code. It will be useful to reproduce the issue.
What version spark-salesforce connector you are using?

Hi Girish,
I am trying to connect to Hive that is present in Google DataProc cluster from R. I am able to establish the connectivity to "local" but when I establish a connectivity to "yarn-cluster", I am getting the below error. Please help me find the route cause.
Error:
Error: java.lang.IllegalArgumentException: Can not create a Path from an empty string
at org.apache.hadoop.fs.Path.checkPathArg(Path.java:163)
at org.apache.hadoop.fs.Path.(Path.java:175)
at org.apache.spark.sql.catalyst.catalog.CatalogUtils$.stringToURI(ExternalCatalogUtils.scala:236)
at org.apache.spark.sql.internal.SharedState.externalCatalog$lzycompute(SharedState.scala:111)
at org.apache.spark.sql.internal.SharedState.externalCatalog(SharedState.scala:102)
at org.apache.spark.sql.hive.HiveSessionStateBuilder.externalCatalog(HiveSessionStateBuilder.scala:39)
at org.apache.spark.sql.hive.HiveSessionStateBuilder.catalog$lzycompute(HiveSessionStateBuilder.scala:54)
at org.apache.spark.sql.hive.HiveSessionStateBuilder.catalog(HiveSessionStateBuilder.scala:52)
at org.apache.spark.sql.hive.HiveSessionStateBuilder$$anon$1.(HiveSessionStateBuilder.scala:69)
at org.apache.spark.sql.hive.HiveSessionStateBuilder.analyzer(HiveSessionStateBuilder.scala:69)
at org.apache.spark.sql.internal.BaseSessionStateBuilder$$anonfun$build$2.apply(BaseSessionStateBuilder.scala:293)
at org.apache.spark.sql.internal.BaseSessionStateBuilder$$anonfun$build$2.apply(BaseSessionStateBuilder.scala:293)
at org.apache.spark.sql.internal.SessionState.analyzer$lzycompute(SessionState.scala:79)
at org.apache.spark.sql.internal.SessionState.analyzer(SessionState.scala:79)
at org.apache.spark.sql.execution.QueryExecution.analyzed$lzycompute(QueryExecution.scala:57)
at org.apache.spark.sql.execution.QueryExecution.analyzed(QueryExecution.scala:55)
at org.apache.spark.sql.execution.QueryExecution.assertAnalyzed(QueryExecution.scala:47)
at org.apache.spark.sql.Dataset$.ofRows(Dataset.scala:74)
at org.apache.spark.sql.SparkSession.sql(SparkSession.scala:642)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sparklyr.Invoke.invoke(invoke.scala:139)
at sparklyr.StreamHandler.handleMethodCall(stream.scala:123)
at sparklyr.StreamHandler.read(stream.scala:66)
at sparklyr.BackendHandler.channelRead0(handler.scala:51)
at sparklyr.BackendHandler.channelRead0(handler.scala:4)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:138)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
at java.lang.Thread.run(Thread.java:748)
Error: java.lang.IllegalArgumentException: Can not create a Path from an empty string
at org.apache.hadoop.fs.Path.checkPathArg(Path.java:163)
at org.apache.hadoop.fs.Path.(Path.java:175)
at org.apache.spark.sql.catalyst.catalog.CatalogUtils$.stringToURI(ExternalCatalogUtils.scala:236)
at org.apache.spark.sql.internal.SharedState.externalCatalog$lzycompute(SharedState.scala:111)
at org.apache.spark.sql.internal.SharedState.externalCatalog(SharedState.scala:102)
at org.apache.spark.sql.hive.HiveSessionStateBuilder.externalCatalog(HiveSessionStateBuilder.scala:39)
at org.apache.spark.sql.hive.HiveSessionStateBuilder.catalog$lzycompute(HiveSessionStateBuilder.scala:54)
at org.apache.spark.sql.hive.HiveSessionStateBuilder.catalog(HiveSessionStateBuilder.scala:52)
at org.apache.spark.sql.hive.HiveSessionStateBuilder$$anon$1.(HiveSessionStateBuilder.scala:69)
at org.apache.spark.sql.hive.HiveSessionStateBuilder.analyzer(HiveSessionStateBuilder.scala:69)
at org.apache.spark.sql.internal.BaseSessionStateBuilder$$anonfun$build$2.apply(BaseSessionStateBuilder.scala:293)
at org.apache.spark.sql.internal.BaseSessionStateBuilder$$anonfun$build$2.apply(BaseSessionStateBuilder.scala:293)
at org.apache.spark.sql.internal.SessionState.analyzer$lzycompute(SessionState.scala:79)
at org.apache.spark.sql.internal.SessionState.analyzer(SessionState.scala:79)
at org.apache.spark.sql.execution.QueryExecution.analyzed$lzycompute(QueryExecution.scala:57)
at org.apache.spark.sql.execution.QueryExecution.analyzed(QueryExecution.scala:55)
at org.apache.spark.sql.execution.QueryExecution.assertAnalyzed(QueryExecution.scala:47)
at org.apache.spark.sql.Dataset$.ofRows(Dataset.scala:74)
at org.apache.spark.sql.SparkSession.sql(SparkSession.scala:642)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sparklyr.Invoke.invoke(invoke.scala:139)
at sparklyr.StreamHandler.handleMethodCall(stream.scala:123)
at sparklyr.StreamHandler.read(stream.scala:66)
at sparklyr.BackendHandler.channelRead0(handler.scala:51)
at sparklyr.BackendHandler.channelRead0(handler.scala:4)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:138)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
at java.lang.Thread.run(Thread.java:748)

authors: Cherryko KrishnaThali rbheemana samuel-pt springml

repo: springml/spark-sftp

license_source: bigquery


text:
Added an attempt at enabling Self attestation

This PR attempts to add a self-attestation flow that support credentialing and issuance of VCs from certified bodies such as governments or educational institutions.

It's unclear to me how this particular flow would work from the code that's posted. Definitely take a look at these docs, they might help.
Rebase already supports self-issued credentials, so perhaps that build out is closer to what you want. The diagram of self-issued credentials is shown here in the docs.
A hack-a-thon project using self-issued credentials is found here. This makes heavy use of DIDKit to do the issuance from the browser. There is currently no supported way to do browser-issuance in just Rebase, so if that's what you're going for, you can still add a Content entry to Rebase for the purposes of credential construction, but you will need DIDKit to do the actual issuance, because creating a client for self-issued credentials have not been made a priority in Rebase.
These resources (DIDKit and self-issued credentials) might be more what you're looking for. Even so, the way the context was implemented does not follow the way all other Rebase credentials are, which is:
json!([
  "https://www.w3.org/2018/credentials/v1",
  "https://spec.rebase.xyz/contexts/v1",
]))

Witness flows (diagrammed here) have an "owned" post component which allows the witness to verify the attestation made by the credential (a tweet of a signature for Twitter, an emailed challenge derived from two signatures, etc).
Because there's no owned post component to the flow described in code, there's no reason for this flow to be a witnessed flow -- nor to have a file in the flow folder. As described in the linked docs, because it doesn't have a content, statement, or proof implementation, the addition to the flow module doesn't follow the convention.
I'm not sure what version of Rebase this PR is based it on, but most of the types imported in the file don't exist. The comments and tests are copy and pasted from the SameController flow and don't belong in this new file. It isn't added to the mod.rs, and thus not even picked up by the compiler, but if it was it wouldn't compile due to the references to non-existent types and files.
Please look at the existing flows and the documentation linked above to better understand how the project works.

Closing due to lack of activity.

source: gharchive/pull-request

repo: spruceid/rebase


text:
Support for Instagram Verification

Clarification and Motivation
As Tezos Profiles grows, it's going to need additional public account credentials to build a stronger foundation for a user's identity. In order to bolster these efforts, we must continue to introduce additional verifications on the platform, starting with a number of social profile verifications.
A majority of the users on the platform will likely be artists attempting to verify their identity against their public key in order to prove the authenticity of their created works (and to prevent copy-minting). Next to Twitter, Instagram is another incredibly popular platform for artists and should be included as an available credential.
Acceptance Criteria
As a user:

I can connect my wallet to Tezos Profiles and view available credentials
I can obtain an Instagram credential through Tezos Profiles by:

Entering my Instagram handle
Signing a message containing my handle and additional information
Including this message in a comment on an existing post on Instagram
Verifying that comment based on the permalink from the Instagram web application

I can add this Instagram credential to my existing smart contract if I've already deployed a profile.

Closing - deprioritized due to API issues.

repo: spruceid/tzprofiles


text:
Fix encoding for prefix and commonPrefixes

This pr addresses issue #5228. Now that the list_objects_v2 response has the EncodingType attribute, Boto3 tries to decode the attributes Prefix and the CommonPrefixes like with the name of a Key Object.
Changes:

Encoding of Prefix and CommonPrefixes if necessary.
The added test groups the multiple reproducers provided in the issue.

Codecov Report

Merging #5239 (079eaa9) into master (6a1a8ee) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5239      +/-   ##
==========================================
- Coverage   95.86%   95.85%   -0.02%
==========================================
  Files         688      688
  Lines       68240    68244       +4
==========================================
- Hits        65419    65415       -4
- Misses       2821     2829       +8

Flag
Coverage Δ

servertests
36.39% <25.00%> (-0.01%)
:arrow_down:

unittests
95.80% <100.00%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

moto/s3/responses.py
95.51% <100.00%> (+0.01%)
:arrow_up:

moto/resourcegroupstaggingapi/models.py
82.93% <0.00%> (-0.60%)
:arrow_down:

moto/sns/models.py
96.81% <0.00%> (-0.40%)
:arrow_down:

moto/route53/responses.py
86.91% <0.00%> (-0.34%)
:arrow_down:

moto/sqs/models.py
96.73% <0.00%> (-0.18%)
:arrow_down:

moto/config/models.py
99.21% <0.00%> (-0.14%)
:arrow_down:

moto/ssm/models.py
94.50% <0.00%> (-0.11%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6a1a8ee...079eaa9. Read the comment docs.

authors: codecov-commenter pinzon

repo: spulec/moto


text:
Internal Python Language Server error

Description
What steps will reproduce the problem?

installing pip packages while spyder is opened crashes it
Traceback
  File "/home/ulises/.local/lib/python3.6/site-packages/pyls_jsonrpc/endpoint.py", line 113, in consume
    self._handle_request(message['id'], message['method'], message.get('params'))
  File "/home/ulises/.local/lib/python3.6/site-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request
    handler_result = handler(params)
  File "/home/ulises/.local/lib/python3.6/site-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler
    return method(**(params or {}))
  File "/home/ulises/.local/lib/python3.6/site-packages/pyls/python_ls.py", line 161, in m_initialize
    processId, _kwargs.get('capabilities', {}))
  File "/home/ulises/.local/lib/python3.6/site-packages/pyls/config/config.py", line 53, in __init__
    entry_point.load()
  File "/home/ulises/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2442, in load
    self.require(*args, **kwargs)
  File "/home/ulises/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2465, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/home/ulises/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)

Versions

Spyder version: 4.0.0b3
Python version: 3.6.8
Qt version: 5.12.4
PyQt5 version: 5.12.3
Operating System: Linux 4.15.0-58-generic

Dependencies
pygments >=2.0    :  2.4.2 (OK)
qdarkstyle >=2.6.4:  2.7 (OK)
sphinx >=0.6.6    :  2.1.2 (OK)
psutil >=0.3      :  5.6.3 (OK)
pyls >=0.27.0     :  0.27.0 (OK)
nbconvert >=4.0   :  5.5.0 (OK)
pandas >=0.13.1   :  0.25.1 (OK)
numpy >=1.7       :  1.17.0 (OK)
sympy >=0.7.3     :  None (NOK)
cython >=0.21     :  0.26.1 (OK)
qtconsole >=4.5.0 :  4.5.1 (OK)
IPython >=4.0     :  7.6.0 (OK)
matplotlib >=2.0.0:  3.1.1 (OK)
pylint >=0.25     :  2.3.1 (OK)

Please update to beta4 and open a new issue if the error appears again.

If the error report dialog doesn't appear automatically, then it's not the same error.

And please also run
pip install --user -U python-language-server

That should also take care of this problem.

Okey! i did it and now, the spyder closes when i try to import the package
or restart the kernel.
this is much better! cause if i running something from spyder and try to
install a package it won't close inmediatelly.
Thank you for your help and time! Sorry for my bad english!
Ulises
El mar., 27 ago. 2019 a las 23:41, Carlos Cordoba (notifications@github.com)
escribió:

And please also run
pip install --user -U python-language-server
That should also take care of this problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/10091?email_source=notifications&email_token=AGD3OEBFSWPSEDYGDILJS5DQGXQUFA5CNFSM4IPVJHI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5JWROY#issuecomment-525559995,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGD3OECEFEEPKSDSVLZ7CDDQGXQUFANCNFSM4IPVJHIQ
.

repo: spyder-ide/spyder

license: MIT


text:
ModuleNotFoundError: No module named 'importlib_metadata'

Issue Report Checklist

[ x] Searched the issues page for similar reports
[x ] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[ x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[x ] Tried basic troubleshooting (if a bug/error)

[ ] Restarted Spyder
[ x] Reset preferences with spyder --reset
[x ] Reinstalled the latest version of Anaconda
[ x] Tried the other applicable steps from the Troubleshooting Guide

[ x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
I reinstalled the latest version of anaconda and I am getting the error:
ModuleNotFoundError: No module named 'importlib_metadata'
`(base) Jaes-MacBook-Pro:~ jaemoon$ spyder
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/site-packages/jsonschema/init.py", line 31, in
from importlib import metadata
ImportError: cannot import name 'metadata' from 'importlib' (/opt/anaconda3/lib/python3.7/importlib/init.py)
During handling of the above exception, another exception occurred:
I am somewhat new to python and am not sure why this is happening. How can I fix it?
I initially had to reinstall anaconda because I mixed up conda with pip. I removed anaconda library and reinstalled.
What steps reproduce the problem?

install anaconda
run spyder

What is the expected output? What do you see instead?
I expect to see spyder up and running, like before the reinstall. But What I see is this:
Traceback (most recent call last):
  File "/opt/anaconda3/bin/spyder", line 11, in <module>
    sys.exit(main())
  File "/opt/anaconda3/lib/python3.7/site-packages/spyder/app/start.py", line 212, in main
    mainwindow.main(options, args)
  File "/opt/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3685, in main
    mainwindow = run_spyder(app, options, args)
  File "/opt/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3571, in run_spyder
    main.setup()
  File "/opt/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 886, in setup
    from spyder.plugins.completion.plugin import CompletionManager
  File "/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 22, in <module>
    from spyder.plugins.completion.languageserver.plugin import (
  File "/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/plugin.py", line 31, in <module>
    from spyder.plugins.completion.languageserver.confpage import (
  File "/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/confpage.py", line 31, in <module>
    from spyder.plugins.completion.languageserver.widgets.snippetsconfig import (
  File "/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/widgets/snippetsconfig.py", line 17, in <module>
    from jsonschema import validate as json_validate
  File "/opt/anaconda3/lib/python3.7/site-packages/jsonschema/__init__.py", line 33, in <module>
    import importlib_metadata as metadata
ModuleNotFoundError: No module named 'importlib_metadata'`

Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Versions

Spyder version: 4.2.0
Python version: 3.7.7
Qt version: 5.9.7
PyQt version: 5.9.2
Operating System name/version: mac Os catalina 10.15.7

Dependencies

PASTE DEPENDENCIES HERE

Hi @moonj94 thanks for reporting this. Can you please try running in your terminal
conda install importlib_metadata

and then run spyder again. If this doesn't work please paste the output of:

Running conda list in your terminal
Running conda info in your terminal

Hi @moonj94 thanks for reporting this. Can you please try running in your terminal
conda install importlib_metadata

and then run spyder again. If this doesn't work please paste the output of:

Running conda list in your terminal
Running conda info in your terminal

Closing for no response

Closing for no response

I also see a same issue today.
(base) C:\WINDOWS\system32>spyder --new-instance
Traceback (most recent call last):
File "C:\Users\cliu96\AppData\Local\Continuum\anaconda3\lib\site-packages\jsonschema_init_.py", line 31, in
from importlib import metadata
ImportError: cannot import name 'metadata' from 'importlib' (C:\Users\cliu96\AppData\Local\Continuum\anaconda3\lib\importlib_init_.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\cliu96\AppData\Local\Continuum\anaconda3\Scripts\spyder-script.py", line 10, in
sys.exit(main())
File "C:\Users\cliu96\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\app\start.py", line 228, in main
mainwindow.main(options, args)
File "C:\Users\cliu96\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 3630, in main
mainwindow = create_window(app, splash, options, args)
File "C:\Users\cliu96\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 3488, in create_window
main.setup()
File "C:\Users\cliu96\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 802, in setup
from spyder.plugins.completion.plugin import CompletionManager
File "C:\Users\cliu96\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\completion\plugin.py", line 22, in
from spyder.plugins.completion.languageserver.plugin import (
File "C:\Users\cliu96\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\completion\languageserver\plugin.py", line 31, in
from spyder.plugins.completion.languageserver.confpage import (
File "C:\Users\cliu96\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\completion\languageserver\confpage.py", line 31, in
from spyder.plugins.completion.languageserver.widgets.snippetsconfig import (
File "C:\Users\cliu96\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\completion\languageserver\widgets\snippetsconfig.py", line 17, in
from jsonschema import validate as json_validate
File "C:\Users\cliu96\AppData\Local\Continuum\anaconda3\lib\site-packages\jsonschema_init_.py", line 33, in
import importlib_metadata as metadata
ModuleNotFoundError: No module named 'importlib_metadata'


text:
Crash on changing options in Run Preferences

Description
What steps will reproduce the problem?

Tools -> Preferences. Tick Remove all variables before execution in General settings (Run tab)
Traceback
Traceback (most recent call last):
  File "C:\Users\Pawel\anaconda3\lib\site-packages\spyder\plugins\preferences\widgets\configdialog.py", line 136, in button_clicked
    configpage.apply_changes()
  File "C:\Users\Pawel\anaconda3\lib\site-packages\spyder\plugins\preferences\api.py", line 110, in apply_changes
    self.apply_callback()
  File "C:\Users\Pawel\anaconda3\lib\site-packages\spyder\plugins\preferences\api.py", line 142, in <lambda>
    self._apply_settings_tabs(self.changed_options))
  File "C:\Users\Pawel\anaconda3\lib\site-packages\spyder\plugins\preferences\api.py", line 170, in _apply_settings_tabs
    self.apply_settings(options)
  File "C:\Users\Pawel\anaconda3\lib\site-packages\spyder\api\preferences.py", line 101, in wrapper
    opts = self.previous_apply_settings()
TypeError: apply_settings() missing 1 required positional argument: 'options'

Versions

Spyder version: 5.0.0
Python version: 3.8.5
Qt version: 5.9.7
PyQt5 version: 5.9.2
Operating System: Windows 10

Dependencies

# Mandatory:
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  1.6.0 (OK)
cookiecutter >=1.6.0          :  1.7.2 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  7.22.0 (OK)
jedi =0.17.2                  :  0.17.2 (OK)
jsonschema >=3.2.0            :  3.2.0 (OK)
keyring >=17.0.0              :  22.3.0 (OK)
nbconvert >=4.0               :  6.0.7 (OK)
numpydoc >=0.6.0              :  1.1.0 (OK)
paramiko >=2.4.0              :  2.7.2 (OK)
parso =0.7.0                  :  0.7.0 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.8.1 (OK)
pylint >=1.0                  :  2.7.4 (OK)
pyls >=0.36.2;<1.0.0          :  0.36.2 (OK)
pyls_black >=0.4.6            :  0.4.6 (OK)
pyls_spyder >=0.3.2           :  0.3.2 (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.1.10 (OK)
qtawesome >=0.5.7             :  1.0.2 (OK)
qtconsole >=5.0.3             :  5.0.3 (OK)
qtpy >=1.5.0                  :  1.9.0 (OK)
rtree >=0.8.3                 :  0.9.7 (OK)
setuptools >=39.0.0           :  52.0.0.post20210125 (OK)
sphinx >=0.6.6                :  3.2.1 (OK)
spyder_kernels >=2.0.1;<2.1.0 :  2.0.1 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3;<2.0.0      :  1.0.2 (OK)
zmq >=17                      :  20.0.0 (OK)

# Optional:
cython >=0.21                 :  0.29.23 (OK)
matplotlib >=2.0.0            :  3.3.4 (OK)
numpy >=1.7                   :  1.20.1 (OK)
pandas >=1.1.1                :  1.2.4 (OK)
scipy >=0.17.0                :  1.6.2 (OK)
sympy >=0.7.3                 :  1.8 (OK)

Hi @pavl0squiet0s,
This error is fixed in our latest version, so please update to it to have the fix in your side. In case you are using conda, please follow the instructions:
conda update anaconda
conda install spyder=5.0.3

Thanks for reporting!


text:
h5py package not avilable -- using ascii conversion

What steps will reproduce the problem?

I have reinstalled Anaconda and Spyder recently on my macOS (M1). Now, whenever trying to execute any code, the following line shows up and the kernel restars without completing the eecution:
h5py package not avilable -- using ascii conversion
I tried:

brew install h5py
brew install cython

Also I uninstalled and then reinstalled anaconda and spyder. But couldn't fix the issue.
Any help will be highly appreciated.

Hey @MuhammadRRahman, thanks for reporting. It seems you're trying to mix Homebrew and Anaconda packages, which is a recipe for disaster (as you discovered).
My only recommendation is for you to untangle that mess and use only one of those alternatives.


text:
Spyder-2.3b2 crashes on x86 when ipython-1.1 is installed

From wat...@gmail.com on 2013-12-25T17:37:15Z
Please note that reporting bugs from Spyder's help menu ("?" > "Report
issue...") will fill version details for Spyder, Python and Qt in this description for you.
What steps will reproduce the problem?

Install python-3.3.3
Install Spyder spyder-2.3.0beta2.win32-py3.3
Install PyQt4-4.10.3-gpl-Py3.3-Qt4.8.5-x32

Test Spyder, starts fine

pip install ipython

get a windows crash report "python.exe has stopped working" What is the expected output? What do you see instead? Spyder should start, instead get crash report. What version of the product are you using? On what operating system? Python-3.3.3 + spyder-2.3.0beta2 + ipython-1.1 on Windows8 x64
Please provide any additional information below
. The x64 installation works fine, the x86 crashes.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1683

From techtonik@gmail.com on 2014-01-11T07:02:19Z
Labels: OpSys-Windows Component-IPython

From ccordoba12 on 2015-01-02T19:09:46Z
Closing because of lack of further info.
Status: WontFix


text:
Drag-and-drop to the console does not work

Description
What steps will reproduce the problem?

While running a script, which processes files, it was always possible to drag-and drop the file from the Windows Explorer to the Console. Now it is blocked.
Versions

Spyder version: 5.3.2  (standalone)
Python version: 3.8.10 64-bit
Qt version: 5.15.2
PyQt5 version: 5.15.7
Operating System: Windows 10

Dependencies
# Mandatory:
atomicwrites >=1.2.0                 :  1.4.1 (OK)
chardet >=2.0.0                      :  5.0.0 (OK)
cloudpickle >=0.5.0                  :  2.1.0 (OK)
cookiecutter >=1.6.0                 :  2.1.1 (OK)
diff_match_patch >=20181111          :  20200713 (OK)
intervaltree                         :  None (OK)
IPython >=7.31.1;<8.0.0              :  7.34.0 (OK)
jedi >=0.17.2;<0.19.0                :  0.18.1 (OK)
jellyfish >=0.7                      :  0.9.0 (OK)
jsonschema >=3.2.0                   :  4.7.2 (OK)
keyring >=17.0.0                     :  23.6.0 (OK)
nbconvert >=4.0                      :  6.5.0 (OK)
numpydoc >=0.6.0                     :  1.4.0 (OK)
paramiko >=2.4.0                     :  2.11.0 (OK)
parso >=0.7.0;<0.9.0                 :  0.8.3 (OK)
pexpect >=4.4.0                      :  4.8.0 (OK)
pickleshare >=0.4                    :  0.7.5 (OK)
psutil >=5.3                         :  5.9.1 (OK)
pygments >=2.0                       :  2.12.0 (OK)
pylint >=2.5.0;<3.0                  :  2.14.4 (OK)
pyls_spyder >=0.4.0                  :  0.4.0 (OK)
pylsp >=1.5.0;<1.6.0                 :  1.5.0 (OK)
pylsp_black >=1.2.0                  :  1.2.1 (OK)
qdarkstyle >=3.0.2;<3.1.0            :  3.0.3 (OK)
qstylizer >=0.1.10                   :  0.2.1 (OK)
qtawesome >=1.0.2                    :  1.1.1 (OK)
qtconsole >=5.3.0;<5.4.0             :  5.3.1 (OK)
qtpy >=2.1.0                         :  2.1.0 (OK)
rtree >=0.9.7                        :  1.0.0 (OK)
setuptools >=49.6.0                  :  63.1.0 (OK)
sphinx >=0.6.6                       :  5.0.2 (OK)
spyder_kernels >=2.3.2;<2.4.0        :  2.3.2 (OK)
textdistance >=4.2.0                 :  4.3.0 (OK)
three_merge >=0.1.1                  :  0.1.1 (OK)
watchdog                             :  2.1.9 (OK)
zmq >=22.1.0                         :  23.2.0 (OK)

# Optional:
cython >=0.21                        :  0.29.30 (OK)
matplotlib >=3.0.0                   :  3.5.2 (OK)
numpy >=1.7                          :  1.22.4 (OK)
pandas >=1.1.1                       :  1.4.3 (OK)
scipy >=0.17.0                       :  1.8.1 (OK)
sympy >=0.7.3                        :  1.10.1 (OK)

# Spyder plugins:
spyder_terminal.terminalplugin 1.2.2 :  1.2.2 (OK)

Environment
Environment
# packages in environment at C:\Users\300223613\Miniconda3:
#
# Name                    Version                   Build  Channel
backcall                  0.2.0              pyhd3eb1b0_0
brotlipy                  0.7.0           py39h2bbff1b_1003
ca-certificates           2022.4.26            haa95532_0
certifi                   2021.10.8        py39haa95532_2
cffi                      1.15.0           py39h2bbff1b_0
charset-normalizer        2.0.4              pyhd3eb1b0_0
cloudpickle               2.0.0              pyhd3eb1b0_0
colorama                  0.4.4              pyhd3eb1b0_0
conda                     4.12.0           py39haa95532_0
conda-content-trust       0.1.1              pyhd3eb1b0_0
conda-package-handling    1.7.3            py39h8cc25b3_1
console_shortcut          0.1.1                         4
crc8                      0.1.0                    pypi_0    pypi
cryptography              36.0.0           py39h21b164f_0
cycler                    0.11.0                   pypi_0    pypi
debugpy                   1.5.1            py39hd77b12b_0
decorator                 5.1.1              pyhd3eb1b0_0
entrypoints               0.4              py39haa95532_0
fonttools                 4.33.3                   pypi_0    pypi
idna                      3.3                pyhd3eb1b0_0
ipykernel                 6.13.0                   pypi_0    pypi
ipython                   7.31.1           py39haa95532_0
jedi                      0.18.1           py39haa95532_1
jupyter_client            7.2.2            py39haa95532_0
jupyter_core              4.10.0           py39haa95532_0
kiwisolver                1.4.2                    pypi_0    pypi
matplotlib                3.5.2                    pypi_0    pypi
matplotlib-inline         0.1.2              pyhd3eb1b0_2
menuinst                  1.4.18           py39h59b6b97_0
nest-asyncio              1.5.5            py39haa95532_0
numpy                     1.22.3                   pypi_0    pypi
openssl                   1.1.1n               h2bbff1b_0
packaging                 21.3                     pypi_0    pypi
parso                     0.8.3              pyhd3eb1b0_0
pickleshare               0.7.5           pyhd3eb1b0_1003
pillow                    9.1.0                    pypi_0    pypi
pip                       21.2.4           py39haa95532_0
powershell_shortcut       0.0.1                         3
prompt-toolkit            3.0.20             pyhd3eb1b0_0
psutil                    5.9.0                    pypi_0    pypi
pycosat                   0.6.3            py39h2bbff1b_0
pycparser                 2.21               pyhd3eb1b0_0
pygments                  2.11.2             pyhd3eb1b0_0
pyopenssl                 21.0.0             pyhd3eb1b0_1
pyparsing                 3.0.8                    pypi_0    pypi
pysocks                   1.7.1            py39haa95532_0
python                    3.9.7                h6244533_1
python-dateutil           2.8.2              pyhd3eb1b0_0
pywin32                   302              py39h827c3e9_1
pyzmq                     22.3.0           py39hd77b12b_2
requests                  2.27.1             pyhd3eb1b0_0
ruamel_yaml               0.15.100         py39h2bbff1b_0
scipy                     1.8.0                    pypi_0    pypi
setuptools                58.0.4           py39haa95532_0
six                       1.16.0             pyhd3eb1b0_0
spyder-kernels            2.3.0                    pypi_0    pypi
sqlite                    3.37.0               h2bbff1b_0
tornado                   6.1              py39h2bbff1b_0
tqdm                      4.62.3             pyhd3eb1b0_1
traitlets                 5.1.1              pyhd3eb1b0_0
tzdata                    2021e                hda174b7_0
urllib3                   1.26.7             pyhd3eb1b0_0
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
wcwidth                   0.2.5              pyhd3eb1b0_0
wheel                     0.37.1             pyhd3eb1b0_0
win_inet_pton             1.1.0            py39haa95532_0
wincertstore              0.2              py39haa95532_2
yaml                      0.2.5                he774522_0

Hey @rycoolcat, thanks for reporting. I was not aware of that. I have a couple of questions for you:

What console are you talking about? This one

or this one

What was the behavior that you got after dropping a file into it?

Hey @rycoolcat, thanks for reporting. I was not aware of that. I have a couple of questions for you:

What console are you talking about? This one

or this one

What was the behavior that you got after dropping a file into it?

Hello @ccordoba12 , I mean the first one. Although, after a couple of tests I noticed, that the issue is sporadic and is not reproducible every time.

Ok, then you need to give step by step instructions on how to reproduce this problem. Otherwise it won't be possible for us to know how to fix this problem.

It seems, I have experienced the issue only the first time I started the new version of Spyder. Now it works properly. I guess, you can close the topis, as I cannot reproduce the problem.


text:
Cell execution fails when second cell line is comment and has accents

I use spyder 2.3.5.2 on windows 8.1 64bit
I can execute a cell like this :
#%% Some Text
# Some Text
print('Test text')

I can't execute a cell like this :
#%% Some Text
# Here is a letter with an accent : é
print('Test text')

@silicium14 : you may add a screenshot or copy/paste of the error, to help resolution.
Which Python version do you use ? I don't see your error, if I understood it well, on Python 3.4

Hi @stonebig
Here is a screenshot of my spyder window.

When I hit CTRL+Enter (or use menu to execute cell) on the first cell, the cell is executed. When I put the text cursor on the second cell  an hit CTRL+Enter (or use menu to execute cell), nothing happens. There is no error message displayed, I just see that the cell is not executed because nothing is added to the IPython console / the IPython command counter is not incremented.
I use Windows 8.1 64bit, Anaconda3 64bit 2.1.0, spyder 2.3.5.2, Python 3.4 64bit.
Here is the output of  sys.version from the IPython console inside spyder:
'3.4.1 |Anaconda 2.1.0 (64-bit)| (default, Sep 24 2014, 18:32:42) [MSC v.1600 64 bit (AMD64)]'

Here is the content of the python file in my screenshot:
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 15 12:49:56 2015

@author: Julien
"""
#%% Some Text
# Some Text
print('Test text')

#%% Some Text
# Here is a letter with an accent : é
print('Test text')

ok, the good news is that:

it works ok under Spyder-3.0.0b1
Carlos apparently knows what the bug is

I'll take a look at this one for our next stable release. Thanks for the screenshots, by the way.

Ok, good news :)
I just downloaded WinPython and I have the same behaviour as you @stonebig  with WinPython's spyder 2.3.5.2: no problem with accent.
If it may help, here are the versions displayed at the bottom of "About spyder" window in both cases (screenshot).

WinPython 3.4.3.5

Anaconda 2.1.0 (64-bit) (as up to date with conda update --all at 2015 august 15th)

Thank you for the answers

This seems to be an issue with PyQt4. It'll probably get fixed after we update it in Anaconda to its latest stable version.

This is no longer relevant. Closing


text:
spyder ide freezing problem

Description
What steps will reproduce the problem?

What is the expected output? What do you see instead?
Please provide any additional information below
MemoryError
Version and main components

Spyder Version: 3.2.6
Python Version: 2.7.14
Qt Versions: 5.9.1, PyQt5 5.7 on Linux

Dependencies
pyflakes >=0.5.0  :  1.6.0 (OK)
pycodestyle >=2.3 :  2.3.1 (OK)
pygments >=2.0    :  2.2.0 (OK)
pandas >=0.13.1   :  0.21.1 (OK)
numpy >=1.7       :  1.13.3 (OK)
sphinx >=0.6.6    :  1.7.0 (OK)
rope >=0.9.4      :  0.10.7 (OK)
jedi >=0.9.0      :  0.11.1 (OK)
psutil >=0.3      :  5.4.3 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
sympy >=0.7.3     :  None (NOK)
cython >=0.21     :  0.25.2 (OK)
qtconsole >=4.2.0 :  4.3.1 (OK)
IPython >=4.0;<6.0:  5.5.0 (OK)
pylint >=0.25     :  1.8.2 (OK)

No substantive information provided, and the user closed the issue. If you can describe in detail the circumstances in which the error occurred, and post the information listed in relevant subsection of the Spyder Troubleshooting Guide as a comment to this issue, then please re-open.


text:
PR: Pre-render menus in all operating systems (Main menu)

Description of Changes
This makes shortcuts for actions placed in menus to be registered as expected.
Issue(s) Resolved

Fixes #16061
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @ccordoba12

@dalthviz, could check that this doesn't generate errors on Ubuntu and Windows? Thanks!


text:
🛑 Client Website - 10yearstheshow.com is down

In 5074d74, Client Website - 10yearstheshow.com (https://10yearstheshow.com) was down:

HTTP code: 404
Response time: 214 ms

Resolved: Client Website - 10yearstheshow.com is back up in a2266fd after 11 minutes.

repo: sqbxmediagroup/status


text:
Backup-DbaDatabase and SupportsShouldProcess

It'd be great to have a -WhatIf! Thought it already did, tried to use it tonight and it was not avail.
merci 🙇

Just noting that the restore command does not have it either but does have the OutputScriptOnly.

closed via https://github.com/sqlcollaborative/dbatools/pull/2489

authors: niphlod potatoqualitee wsmelton

repo: sqlcollaborative/dbatools


text:
Export-dbauser creates many files but only the last one has everything

Export-dbauser creates multiple files, many times the same but sometimes different. The only file that includes everything, consistently, is the last file.
I had a user who existed in 2 dbs, in 3 roles, but had an extra db level perm. before i put the -excludeGoBatchSeparator in i got a file with just GO in it for every database on the system. Then, i got 1 empty file, 3 files for the first database, and 3 files with both databases.
Using 1.0.50, because i downloaded via zip and that's what was offered.
syntax: Export-dbauser -SqlInstance MyInstance -User Domain\user -ExcludeGoBatchSeparator

Fairly sure we had this reported... May not be exact.

Hey, I already digged on this and the problem is on the output file path generation.
https://github.com/sqlcollaborative/dbatools/blob/development/functions/Export-DbaUser.ps1#L177
This is being calculated for each database. If -Database is not being used or used but more than one value this will probably end in more than one output file.
In my opinion we can output just one file per instance (will include all/specified databases). We can always run multiple times, 1 per database if we want 1 file per database (the other way around would not be possible).
@potatoqualitee @wsmelton do you agree?

I would prefer we match the logic used in Export-DbaLogin to make them all consistent.

The focus on what file is created should be based on the object the command is processing, which are users and not databases. I would say if only Path is provided then you create one for each user (not database) and then if FilePath is provided it all goes into one file.
This is the logic I thought Export-DbaLogin was following but it is not applying correctly either.

PR #6350 fix this one. Will be available on next release.
If you find something wrong let us know.

authors: ClaudioESSilva SQLAmanda wsmelton


text:
Connect-*Instance, fix errors with Windows logins

Type of Change

[x] Bug fix (non-breaking change, fixes #)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose
Discussed at lenght in dbatools-dev .
All starts when a patient dbatools user reports some weird errors when running backup-dbadatabase in a powershell session started with an unprivileged user but passing the correct credentials.
Turns out that Connect-DbaInstance and Connect-SqlInstance behaved differently. While Connect-DbaInstance at least bombed out when trying to setinitfields, Connect-SqlInstance was quiet.
That, in conjunction with dbatools general - and good - reuse of the $server variable, make the weird error pop up: lower-level functions (such as Test-DbaPath or Get-DbaBackupInformation, used within backup-dbadatabase) were reporting a different user than the one specified via -SqlCredential.
Long story short, this fixes it, but I really don't know why $null = $server.IsMemberOfWsfcCluster was there in the first place. What I'm afraid of (and I need the review for, mostly) is that this new piece of code will affect how the connectionpool is handled.
Sorry I can't be more precise, but the issue is reallly subtle. To replicate, start a powershell session with an unprivileged user (such as a windows user that can't connect to the target instance) and try to issue a Backup-DbaDatabase -SqlInstance foo  ..... -SqlCredential $validcredentials , where $validcredentials are for a WINDOWS user.
Before this PR, windows users and sql users differed in behaviour. Now they match but.... did I screw something else in the process ?

It is an incredibly subtle and tough issue. $null = $server.IsMemberOfWsfcCluster has a comment above it that says # Make it connect in a natural way, hard to explain. When you call a property (it can be any property that isn't initially loaded, I think) it connects in a way that helps the connection pool.
Do you have two domains you can test with to ensure cross domain connects still work? You can see my PR for adding that line here #3835 (man, github is awesome)

nope.
But....instead of being bitten by sudden SMO changes (see the slowness when you do now $server.Databases[dbname] that was hella faster and now makes me cry, I'll do a mass PR later on),  instead of relying of a somewhat undocumented behaviour of SMO , can't we just use the method that someone uses to pick a connection from the pool, else open it ?
Because it seems that what you originally tested clashes bad with what is happening now... and it's quite easy to replicate.
And no, I don't have cross-domain, but is it really that different from a windows auth ? The code doesn't seem to make much difference, I guess it's the underlying methods that do the magic of kerberos vs ntlmv2

instead of relying of a somewhat undocumented behaviour of SMO , can't we just use the method that someone uses to pick a connection from the pool, else open it ?

Can you please explain in code? 😓

but is it really that different from a windows auth ?

Yes, but I don't know why.
@Zhunya are you around to test Niph's PR? It needs to be tested cross-domain.

my "problem" is indeed code (and why I asked for a review).
Is there some documentation on how to handle the connectionpool "explicitely" ? Relying on SMO trying to connect when evaluating the lazy property IsMemberOfWsfcCluster works JUST for SQL logins, now. And fails for Windows ones.
Let's imagine we take a different shortcut ........ what happens tomorrow ?!
Not being a .NET developer is a hard limitation, I know, but is it possible that there's no place where there is the "howto" of managing a connection pool within SMO ?

Relying on SMO trying to connect when evaluating the lazy property IsMemberOfWsfcCluster works JUST for SQL logins, now. And fails for Windows ones.

Oh wow, now as in dev branch or now as in this branch?

but is it possible that there's no place where there is the "howto" of managing a connection pool within SMO ?

When I looked up explicit info, it was inaccurate or non existent. No docs that I found ever described the type of stuff we're seeing. I'd love to know how SSMS handles connections (Maybe Azure Data Studio can provide insight since it's open source) because it always does it right. Connect-SqlInstance is a hack, but I'm unsure how to get it right without reverse engineering some of MSFT's stuff.

Perhaps we can explore this https://github.com/Microsoft/azuredatastudio/tree/master/src/sql/parts/connection

That's too manual. So I went back to Connecting with SMO, and they basically do the same, except they call another variable.

https://docs.microsoft.com/en-us/sql/relational-databases/server-management-objects-smo/create-program/connecting-to-an-instance-of-sql-server?view=sql-server-2017

Perhaps we can look at the SqlServer module, though we'd have to test if they do it right, too. They may have made the same assumptions.

Oh wow, now as in dev branch or now as in this branch?

now as in development. this branch seems to solve the issue, but I don't know how it affects the pool itself, although it's kinda "crazy" worrying because in development we do $server.ConnectionContext.Connect() already for SQL Logins and $server.IsMemberOfWsfcCluster for windows ones.

When I looked up explicit info, it was inaccurate or non existent. No docs that I found ever described the type of stuff we're seeing.

sounds like someone should speak up 💃

Connect-SqlInstance is a hack
that bit (	$server.IsMemberOfWsfcCluster) for sure , but it's the same in Connect-DbaInstance and since we use it pretty much everywhere, we should stop calling it a hack

this branch seems to solve the issue

Excellent, @sanderstad was having issues previously and has a multi domain instance to test, he's firing up a laptop now. If it works for him, we should be set.

sounds like someone should speak up

Yes indeed. If anyone does, please let us know here. My issue is the time and in-depth understanding of what it is we need to report and request.

we should stop calling it a hack

True, I should be more accurate. Due to the lack of official documentation, Connect-SqlInstance is a culmination of codified experiences that is not yet as reliable as SSMS' connect dialog, but is getting closer every day.
I'm starting to wonder if SSMS even uses SMO to connect. I'll ask Microsoft.

I just updated it to use $server.Information.Version instead of $server.IsMemberOfWsfcCluster

okay, just to be clear ..... what we need is:

to establish a connection to a target with the provided credentials (or use integrated auth without)
if possible, use a connection pool, which means

if it's the "first time", establish the connection and, if successfull, put that connection into a pool of "usable ones"
if it's the "second time", reuse "usable ones" or open another one (till pool exhaustion), cloning the properties of the "original one"
do not keep 3120998312098 open in standby, which is, use a pool that is actually a pool, and with sane timeouts (except commands that may need longer ones, but those already specify a different timeout value)

If the "hack" of calling .Information.Version is establishing a connection and using a connection pool, it apparently does what
if ($server.ConnectionContext.IsOpen -eq $false) { $server.ConnectionContext.Connect() }
do (again, not documented, but it's happening in development already for any non-windows auth)
So, for the sake of avoiding possible "problems", I'd say we do the same thing for both SQL and Windows logins, but it should be either (in boolean terms, OR):

the call to .information.version
if ($server.ConnectionContext.IsOpen -eq $false) { $server.ConnectionContext.Connect() }

We have so many Issues around this, but I swear, $server.ConnectionContext.Connect() is distinctly different from .Information.Version.
Maybe it was related to #3809

I'd really prefer to keep things as is because we keep getting unexpected situations with Connect-*Instance. Perhaps what we could do is document the whys a little better so that we have more info next time.
Btw, @sanderstad has failures BUT they are

failures that occur in dev
but they are failing better this time

It's the cross-domain issue that I still haven't figured out. I'm happy to document and also happy to merge at this point.

will merge and then now working on documentation with prs and stuff in the code

authors: niphlod potatoqualitee


text:
Import-DbaXESessionTemplate - Add StartUpState Parameter

Fixes #4916
Defaults to Off and Includes example. Also starts it immediately.

I need this command in another branch, all tests pass, will merge


text:
Update docs /readme

Update docs and readme with new nuget build number and to show support for net45

docs and readme file updated thanks

authors: ahmad-moussawi ceastwood

repo: sqlkata/querybuilder

license: mit


text:
Extra display formats and copy results to clipboard

https://github.com/sqlpad/sqlpad/assets/2934856/80c840e8-938f-4f3a-bf1d-885ae1ec7f80
I recently added new functionality to solve a problem at work and we thought the open source community might find these valuable as well.
New format buttons
Added two buttons to the left of the QueryResultHeader to toggle between horizontal and vertical column views.
New copy-to-clipboard button
Added a copy-to-clipboard button to the right of the QueryResultHeader that copies the results to the clipboard. The copied format is based on the currently selected display format. Examples of the copied results is as follows:
horizontal format
id | order_date | order_time | order_hour | order_timestamp          | region    | name                  | category | color  | hype | cost  | revenue |
--------------------------------------------------------------------------------------------------------------------------------------------------------
1  | 2020-01-01 | 00:00:00   | 00:00:00   | 2020-01-01T00:00:00.000Z | Northeast | Awesome Wooden Ball   | toy      | azure  | 1    | 6.1   | 8.72    |
--------------------------------------------------------------------------------------------------------------------------------------------------------
2  | 2020-01-01 | 00:43:37   | 00:00:00   | 2020-01-01T00:43:37.000Z | West      | Awesome Wooden Ball   | toy      | lime   | 3    | 16.02 | 22.89   |
--------------------------------------------------------------------------------------------------------------------------------------------------------

vertical format
             id: 1
     order_date: 2020-01-01
     order_time: 00:00:00
     order_hour: 00:00:00
order_timestamp: 2020-01-01T00:00:00.000Z
         region: Northeast
           name: Awesome Wooden Ball
       category: toy
          color: azure
           hype: 1
           cost: 6.1
        revenue: 8.72
************************************************************
             id: 2
     order_date: 2020-01-01
     order_time: 00:43:37
     order_hour: 00:00:00
order_timestamp: 2020-01-01T00:43:37.000Z
         region: West
           name: Awesome Wooden Ball
       category: toy
          color: lime
           hype: 3
           cost: 16.02
        revenue: 22.89
************************************************************

Thanks @leland-kwong! This looks great. happy to pull this in.

authors: leland-kwong rickbergfalk

repo: sqlpad/sqlpad


text:
Loader Tab

Add back open CORS interceptor for development, necessary for requests coming from webpack dev servers
Cleanup unnecessary AdminTab and WebProxyEntry multibindings
Add dayjs, immutable, and redux-saga to @misk/common library for redux-saga unidirectional React data flow pattern
Move dashboard div mount within DashboardContainer component in Config tab so it is self contained and div isn't in the Config index HTML template
Fix public paths and WebProxyEntry rules to properly forward links without trailing slash. Ie. now can browse to /_admin/dashboard instead of needing trailing slash /_admin/dashboard/. Remaining issue: #364
#335 : Implement redux-saga flow in Loader. Successfully loads adminTabs list from Misk server, maps tabs to ScriptComponent which currently renders the meta data for testing. Initial work had been to have a script tag within this component, this worked to load components but lead to infinite script include loop when this was done in React lifecycle function compononentDidMount(). Better way moving forward is to export tabs as libraries, bind them to window variables, and access them as external libraries.
Moved loader webpack config back to having / public path so that React Router would work again. Nesting routes for each tab now work in the LoaderContainer.

Next Steps

Test theory of exporting tabs as libraries and using as external components by fixing @misk/components to work as library
Add redux-saga flow to other tabs
Fix webpack for other tabs so their React Routers work

@eventualbuddha on the contrary, I appreciate the external feedback especially from others that are very fluent in current trends in front end / Javascript. Feel free to chime in on any upcoming PRs!

repo: square/misk


text:
Test TLSv1.3 with conscrypt

https://github.com/google/conscrypt/issues/479
https://github.com/google/conscrypt/pull/516
Test that things work in OpenJDK with Conscrypt 1.2.0.
We should also work out what it means on Android 8.x or 9.  And with GMS provider on earlier android versions.  https://github.com/google/conscrypt/issues/479

Working on this now, a working request...
https://graph.facebook.com/robots.txt    ConscryptPlatform
TLS_1_3 TLS_AES_128_GCM_SHA256 h2 200 25b

ConscryptTest.testMozilla is off by default, but confirms this works.

repo: square/okhttp


text:
Some Web Sockets tests are flaky

https://circleci.com/gh/square/okhttp/8330?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
closeReasonMaximumLength - okhttp3.internal.ws.WebSocketHttpTest
org.junit.ComparisonFailure: expected:<[0]> but was:<[1]>
	at okhttp3.OkHttpClientTestRule.ensureAllConnectionsReleased(OkHttpClientTestRule.kt:91)
	at okhttp3.OkHttpClientTestRule$apply$1.evaluate(OkHttpClientTestRule.kt:121)

serverCloseThenClientClose - okhttp3.internal.ws.RealWebSocketTest
java.lang.AssertionError:
Expecting empty but was:<[Closed[1000 Hello!]]>
	at okhttp3.internal.ws.WebSocketRecorder.assertExhausted(WebSocketRecorder.java:163)
	at okhttp3.internal.ws.RealWebSocketTest.tearDown(RealWebSocketTest.java:58)

These flaked on Java 13.

At the moment the websocket tests are 3 of the 4 flaky tests
https://circleci.com/build-insights/gh/square/okhttp/master

Dupe of https://github.com/square/okhttp/issues/6033, which covers more tests

authors: swankjesse yschimke


text:
Primary key shouldn't be nullable by default

For now, even if you define a field is primary key, it still enable nullable by default, I think this is not a good practice in most case.

So then do you want us to produce an error when a primary key columns can contain null? Or a warning?

Actually I want to the generated field should be annotationed with @NonNull instead of @Nullable when a field is primary key.

Ah, for the model you mean? Yes that seems reasonable.
On Thu, Nov 17, 2016, 9:07 PM Jiawen Geng notifications@github.com wrote:

Actually I want to the generated field should be annotationed with
@NonNull instead of @Nullable when a field is primary key.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/square/sqldelight/issues/544#issuecomment-261429094,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEEZBqtyp1GBfH0HS6anc_c38vJMcpks5q_QhVgaJpZM4KoDPG
.

authors: JakeWharton gengjiawen

repo: square/sqldelight


text:
Add citation file

Create a citation file based on github docs
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files

Like this https://github.com/erdogant/scatterd/blob/master/CITATION.cff

authors: Calychas RaczeQ

repo: srai-lab/srai


text:
Fix wrong commands path on Makefile

Signed-off-by: Antonio Jesus Navarro Perez antnavper@gmail.com

Tried locally, make packages produces the executable binaries now 🎉
Seems a bit confusing due to https://github.com/src-d/guide/blob/master/engineering/conventions-go.md#executables

Shouldn't we instead change the folder name to cmd as the engineering guide says?

@erizocosmico done.

Who this PR should the problem of the build?

@mcuadros Packfile had a wrong path pointing to the commands folder.

But this PR is not changing the Makefile

That was the first approach, but we decide to do it correctly and change instead the folder to the correct one due to the company guidelines: cli to cmd.

But this PR is removing the package for the commands.

Moved all commands to cmd/gitbase/command package after an offline talk with @mcuadros.

Merging to fix the build. If we want to add more changes to the path, we can do it into another PR.

authors: ajnavarro bzz erizocosmico mcuadros

repo: src-d/gitbase


text:
protocol/pakp: UploadPackResponse implementation

This is the implementation of packp.UploadPackResponse basically handles all the responses after call FetchPack, the messages handled are shallow-update and server-response
The packp.UploadPackResponse  implements io.ReadCloser allowing to read the packfile directly from it.

Current coverage is 76.82% (diff: 88.34%)

Merging #161 into master will decrease coverage by 0.43%

@@             master       #161   diff @@
==========================================
  Files            83         86     +3
  Lines          5326       5407    +81
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           4115       4154    +39
- Misses          754        805    +51
+ Partials        457        448     -9

Powered by Codecov. Last update 2092a55...4d379c4

authors: codecov-io mcuadros

repo: src-d/go-git


text:
Fix ROUND function for 2 args.

Signed-off-by: kuba-- kuba@sourced.tech
Fixes https://github.com/src-d/engine/issues/168
Closes https://github.com/src-d/go-mysql-server/issues/579

Could you add a unit test too please?

I've added integration tests, because children had to be called. All unit tests pass without any problems

@ajnavarro - I've extended current unit tests by adding extra checks for Children()

authors: ajnavarro kuba--

repo: src-d/go-mysql-server


text:
Traduci  Slideshow and "Click Event" insieme Slideshow and "Click Event" together

Hello,
I created a menu with several items, with each click one image in the div.
But I want more than to click the "revolved" images even from the sun and illuminate the key.
Here is my code, but I have not yet implemented the slider.
thank you
<script type="text/javascript">
		/*
     * You can easily attach Backstretch to jQuery events, like click
     *
     * Click the buttons above to see the background image change
     */

		$(".slaida").backstretch("jazz.jpg");

		$("#Jazz").click(function(e) {
			e.preventDefault();
			$(".slaida").backstretch('jazz.jpg');
		});

		$("#Civic").click(function(e) {
			e.preventDefault();
			$(".slaida").backstretch('civic.jpg');
		});

		$("#HR-V").click(function(e) {
			e.preventDefault();
			$(".slaida").backstretch('HRv.jpg');
		});

		$("#CR-V").click(function(e) {
			e.preventDefault();
			$(".slaida").backstretch('CRv.jpg');
		});

		/* $("#3008").click(function(e) {
			e.preventDefault();
			$(".slaida").backstretch('3008.jpg');
		});

		$("#5008").click(function(e) {
			e.preventDefault();
			$(".slaida").backstretch('5008.jpg');
		});

		$("#professional").click(function(e) {
			e.preventDefault();
			$(".slaida").backstretch('professional.jpg');
		});*/
	</script>

`

Hi , I don't know what you mean with that: "even from the sun and illuminate the key".
Is there one div for all images, but you want different slideshows for each menu item?

No, this is the page:
http://autoleonelancar.it/honda/
By clicking on "Jazz", "Civic", etc you will see that will change the image.
I wish that in addition to this the images flowed even sunglasses and when for example there is the image of the "Civic" button lights up with the status "active".
It's possible?

No, this is the page:
http://autoleonelancar.it/honda/
By clicking on "Jazz", "Civic", etc you will see that will change the image.
I wish that in addition to this the images flowed even sunglasses and when for example there is the image of the "Civic" button lights up with the status "active".
It's possible?

Help me, please!
Thanks a lot

Hi, I don't understand you, sorry I can't look in your head.
What is "images flowed even sunglasses" ? Is this a fade in of the image or what?
And what you mean with "lights up with the status "active""? Do you want a active status of the menubottom?

I try to explain.
Would I want my images flowed like a normal slideshow.

Well put the Logo at the place of honda and honda on the right side.
The contactform can be shown on pageload, so that everybody see it. Then slide to the right. just leave a button to slide out. Make the image the whole width or 90%. The you have no fixed page height but you can make a footer.
Sorry i've forgot the link:
http://stackoverflow.com/questions/20590239/maintain-aspect-ratio-of-div-but-fill-screen-width-and-height-in-css

Thanks

authors: jpacchioni musicjunk

repo: srobbin/jquery-backstretch


text:
🛑 Keycloak is down

In 522ccd3, Keycloak (https://sso.srueg.ch/health) was down:

HTTP code: 503
Response time: 17474 ms

Resolved: Keycloak is back up in 09fc1c2 after 9 minutes.

repo: srueg/upptime


text:
Leravel導入

悪いけど、いったんmasterブランチでleravel走る環境までをやりますよ

https://github.com/ss-koishi/cue-simulator/commit/3ddd94fa9b6f6efe29ff1b1251893dda8b279c9d
leravel動くよ
このmasterの状態を初期状態にします

repo: ss-koishi/cue-simulator


text:
PreferredGender(선호 성별 선택) 작성 로직 추가

작업 사항

선호 성별 선택을 위한 버튼 그룹을 생성 및 Controller 사용하여 폼 관리를 하였습니다.

To-do

성별 선택을 위한 버튼 그룹 생성을 위해 FormItem에 buttonGroupProps 사용하였습니다.
성별 선택이 필요한 폼 컨텍스트에 쉽게 통합될 수 있도록 구현하였습니다.

기타사항

기타 사항을 작성해주세요

성별 선택 버튼 옵션 데이터 추가

repo: ssap-rainbow/SSAP


text:
dont allow upercase chars in aliases (fix #192)

Thanks for testing @soapdog!
Using strings with UpperCase doesn't work in Firefox because turns it into uppercase.$domain which then is not found because it matches case sensitive...

doesn't work in Firefox

Yeah and also Chrome, I tested

authors: cryptix staltz

repo: ssb-ngi-pointer/go-ssb-room


text:
[3일] 사용자는 인증후 도서관리 기능을 이용할 수 있습니다.

🌈 Success criteria

사용자는 첫 로그인화면에서 id/password를 입력하고 로그인할 수 있습니다.
로그인에 성공하면 AuthManager클래스에서 static필드인 loginUser에서 로그인한 회원객체를 관리합니다.
로그아웃하면 AuthManager클래스의 static필드인 loginUser를 null로 처리합니다.
AuthManager는 인증관련 추가기능을 static메소드로 제공합니다.

isLogin():boolean
login(User):void
getLoginUser():User
logout():void

로그인에 필요한 테스트코드도 작성합니다.

👷To-do

[ ]  로그인에 필요한 쿼리를 고민하고, Dao Mapper테스트를 작성합니다.
[ ] mvc패턴 흐름에 맞춰 인증기능을 구현합니다.
[ ] <추가 할일 목록을 작성하고 실천합니다>

👓 Review

<스크린샷 등을 적극활용해 구현 결과를 공유합니다.>

->UserMapperTest 결과 찍어보기

시작[로그인화면]

아이디/비밀번호/직책 확인 후 잘못 입력 시 다시 입력요청

올바른 정보 입력 시 로그인 성공

열심히 두뇌를 사용해서 이슈에 맞게 코드가 정상적으로 돌아가게 만들었지만 뭔가 찜찜한 느낌이 듭니다...
필요 없는 코드들이 있을 것 같다는 생각이 드는데 어디가 그런 것일까는 잘 모르겠습니다...😅

깃허브 이슈에 사진 업로드 및 코멘트 등록 후 pr 보내려고 확인하는데 건드리지도 않은 다른 분들의 파일 하위에 bin 폴더가 생깁니다.. 이유가 뭘까요

Q2) 관례적으로 대문자 사용하는 걸로 기억하는데 데이터베이스 상에 소문자라서 소문자로 작성하였습니다.
타입핸들러를 사용해서 데이터베이스와 Java 코드 간의 열거형 상수와 값의 변환을 자동으로 처리해야 할까요?
제 생각에는 Java에서는 문제 없이 컴파일되니 우선은 이에 대해 알고 있는 상태로 다음 단계 수행하는 게 우선순위 상 맞는 것 같은데 그래도 코드 구현 과정에서 궁금증이 생겨 질문 남겨놓습니다!


text:
Update README.md

Just updating some information

您好，我已收到您的邮件，会尽快回复您的消息。Good luck,Arden

repo: sshkhr/awesome-mlss


text:
多次调用下载方法，不抛异常，改为监听上次下载的状态

多次调用下载方法时，如果已存在该下载任务，则会直接抛异常。
=> 是否可以改为：已存在下载任务，则监听上次下载的状态。
比如这样的场景：

需要下载一个配置文件，可能在A位置或B位置 开始下载，AB位置需要同时显示下载状态。

如果所有类似场景都自己去判断，那代码必然变得很臃肿。
而且，如果在调用download() 之前没有去判断是否存在该任务，基本都是不太关心是否有存在相同任务的，只是希望把文件下载回来，调用download()后能监听到文件的下载情况。

receiveDownloadStatus这个方法在任何时刻调用均可接受到下载状态，不知道你有没有仔细看文档和demo

如果所有类似场景都自己去判断，那代码必然变得很臃肿。
我上面有解释，虽然可以实现功能，但判断逻辑需要每次调用download()前判断。或者只是让download()去触发下载，receiveDownloadStatus()才作为下载完成后的监听。
而且，目前对于常规下载（Normal download），并没有提供方法接收下载状态。

题外话：是否需要在框架内提供 同一个url，保存到多个目标File 的处理？

如果你觉得这些都不是问题，sorry，你可以直接关掉这个issues

@ssseasonnn  receiveDownloadStatus 这个方法回调 只会执行一次是吗？

authors: ImKarl ssseasonnn zhaoxiuyu

repo: ssseasonnn/RxDownload


text:
Add the ability to include other test files

Adds an include directive that operates similar to load but allows
you to include other bats test files rather than just bash scripts which allows for a simple way to DRY up similar tests.
See the added tests for a simple example of how this functionality might be used.
I can add documentation for this, but wanted to get feedback on the implementation first.
Thank you!

Addresses #99

Any feedback @sstephenson ?

Any update here? This has sat around for 6 months, and is really useful...

Any update here? This has sat around for 6 months, and is really useful...

I’m aware there are lots of issues that need attention, but Bats is a personal project and I don’t have any time for it right now. I am looking for a full-time maintainer. Maybe that’s you?

authors: jszwedko rjernst sstephenson

repo: sstephenson/bats