问题标签 [packages]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1000 浏览

macos - 没有 Dashcode 项目包的 Dashcode 项目

Dashcode 将源文件保存在“.dcproj”项目文件中,该文件实际上是 OS X 的一个包,而 OS X 实际上只不过是一个目录结构。我想继续使用 Dashcode,但没有“.dcproj”结构的“便利性”。为什么?我想要...

  1. 将源代码签入 Mercurial
  2. 在开发代码的非 GUI 部分时使用 TextMate
  3. 最终构建和部署公共核心代码的特定于平台的定制(即,让多个项目共享一些公共源

我可以将 Dashcode 项目部署到一个目录中,然后执行上述所有操作。但是一旦我这样做了,我可能无法返回 Dashcode,这对于视觉内容来说非常方便。一个更灵活的解决方案可以让我告诉 Dashcode 代码在哪里并在那里读/写,而不是在“.dcproj”包中。

0 投票
9 回答
95848 浏览

java - 编译时如何通配符包含 JAR 文件?

我在 java 文件 (MyRtmpClient.java) 中有以下内容:

并且ByteBuffer位于 JAR 文件中(当然具有正确的目录结构)。该 jar 文件和我需要的其他文件与 .java 文件位于同一目录中。

然后我用以下行编译:

但我得到了错误:

MyRtmpClient.java:3: package org.apache.mina.common does not exist
import org.apache.mina.common.ByteBuffer;

如何在我的项目中包含 jar 文件?

0 投票
4 回答
2062 浏览

lisp - 关于 Lisp 和包的新手问题

如果您不关心并且只想看到问题,这里是背景故事跳到底部。

所以我在 LISP 中玩了一段时间。一些基本函数,一些类,和文件IO。当我看到这篇文章时:

http://www.adampetersen.se/articles/lispweb.htm

我很高兴尝试将 lisp 用于 Web 应用程序。我去下载这些包,但我一生不知道如何将它们加载到我的 Allegro IDE 中。

嗯...好吧,hunchentoot 网站说很多基本包都在 LispWorks 中。所以我下载那个。仍然不确定如何获取我下载到这些 IDE 中的软件包的源代码。他们似乎有软件包的二进制文件?

哦,好吧,也许我会切换到我的 ubuntu 服务器并 apt-get 所有的包并设置 slime(我以前没有使用过它,因为我只是想学习 lisp。同时学习 emacs 和 lisp 似乎真的令人生畏)。我很容易得到所有需要的包并加载粘液,同样的问题没有可用。

我又挖了一些,看到了这个名为 ASDF 的程序。看起来 ASDF 是 lisp 的某种包构建器?我不知道这似乎令人困惑。这个时候我就要放弃了。


如果您仍在阅读这里是我的问题。
1. 如何将这些包的源代码加载到我的 lisp 环境中。尝试学习 lisp 并不太难,但有关环境的信息却很少。我是否需要构建使用 ASDF 下载的软件包。
2. 有没有一种简单的方法可以让某人在 lisp 中启动和运行,而无需提前大量时间学习所有工具?

0 投票
1 回答
2582 浏览

ssis - SSIS 包任务执行细节

我们已经在我们的一个 Prod 服务器中部署了 SSIS 包,使用源服务器作为另一个 Prod DB 服务器,在这项工作中,我有许多包(几乎 10 个包),其中包含许多任务和子任务。

作业执行成功,我们可以使用作业步骤找到每个包执行的开始时间和结束时间。

现在我们想知道每个包中的每个任务执行。

请让我知道如何找到每个任务的每个执行时间或日志信息?

请建议?

0 投票
1 回答
1780 浏览

delphi - How to diagnose "Cannot access package information" error in Delphi IDE

I am developing a set of TFrame-based components that inherit from one another (as so many who have helped me tremendously along the way already know!), and am running into yet another little "snag," related to packages and installation.

I have essentially the following hierarchy:

...and a panel, TExtRzPanel, which inherits from a Raize Panel and adds some sizing / moving functionality to it, along w/a few other properties / features. TBaseSizeableFrame uses this component, and passes through much of it's functionality to the frame itself, so I can develop the compound Viewer components visually. Overall it works well.

The TFrame descendants are all registered to the palette (see this post for related question I asked earlier). Currently, I have packages set up like this:

  • MyPanels - Contains the TExtRzPanel
  • BaseFrames - Contains TBaseFrame, and TBaseSizeableFrame
  • ViewerSet1 - Contains one Viewer frame-based component, and a non-visual component which calls that Viewer as a dialog form. (I'm planning on this package having a few other viewers in it as well).

The main error that started my current chaos was this one:

Cannot access package information for package 'MyPanels.bpl'

I'm dizzy enough with this thing now that I'm having trouble remembnering the exact sequences of what I've tried and in what order, but the trouble seems to have started when I added the dialog form to ViewerSet1, which uses a TViewer frame from the same project, and which (of course) thus uses a TExtRzPanel (which is the package the IDE is complaining about).

Based on this I've deleted the DCP files (and DCU files too, I think at some point), uninstalled the packages, and then recompiled/reinstalled them MyPanels -> BaseFrames, and got them all working to that point, but upon installing ViewerSet1 the whole thing blows apart again. Other errors I noted along the way of trying to figure this out include these:

  • Package C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Bpl\MyPanels.bpl can't be installed because it was created with a different version of Delphi or CBuilder. Do you want to attempt to load this package the next time a project is loaded? (Note: I've only built this with ONE version of Delphi -- Delphi 2007)
  • At one point, I noticed that the package description for MyPanels didn't "take" (i.e. it showed up as just the file name is Tools -> Compoenent -> Install Packages), which makes me think maybe there are two versions of the file the IDE is finding / using, but I'm not seeing/finding that to be the case.
  • The warning Delphi gives when starting up, indicating it can't load an installed package, and do you want to load it next time, etc.
  • Cannot access package information for package 'MyPanels.bpl' (Lather, rinse, repeat)

Any and all help / direction re: how to diagnose, along with any conceptual explanation which could help me understand what to even look for, would be most appreciated. THANKS IN ADVANCE. You folks have been SO helpful here! Thank you. : )


Update later:

After setting this aside for a bit and coming back to it, I tried deleting all the DCP / DCU MyPanels files, and then installing the three packages step by step. (VMWare was worth its weight in gold here -- snapshots after each success, so as to not have to start over at the bottom if/when things went wrong). Turns out, if I removed the dialog form from the ViewerSet1 pakckage, it installs OK. If I then add the form again (which doesn't show up with its DFM, like I ran into here), it seems to install OK. I've got all the components installed not and seemingly working OK (and snapshot the whole thing in my VM!), but I'm still not sure what went wrong nor why. What could adding that form have done initially which would cause these kinds of errors? Any idea?

Even a better explanation / understanding of what kinds of things can cause the "Cannot access package information" error would be helpful in the long run, I think.

0 投票
2 回答
559 浏览

python - 尝试导入另一个模块的模块,得到 ImportError

在 ajax.py 中,我有这个 import 语句:

在 components/db_init.py 中,我有这个导入语句:

在 components/storm/locals.py 中,它有这个:

所以,当我在 ajax.py 中运行 import 语句时,我得到了这个错误:

我可以毫无例外地运行 components/db_init.py ......所以我不知道发生了什么。

有人可以阐明这个问题吗?

0 投票
6 回答
5534 浏览

java - Java 包内省

如何获取包中的所有类?

0 投票
4 回答
30249 浏览

ubuntu - Linux 软件包存储库中的 *​​-dev 软件包实际上包含什么?

我的问题非常基本,我现在的知识也是如此。

我是 Linux 的老用户,但最近才对编程产生了浓厚的兴趣。我看到 Ubuntu 存储库中的许多流行应用程序都有 -dev 包(例如pidgin-devpidgin)。我的问题是这样的:

这些包裹里有什么?下载pidgin-dev对 Pidgin 开发有何帮助?是否像检查为给定应用程序创建插件所需的工具一样简单?

我希望 -dev 包中有大量文档,但如果有,我不知道如何访问它。我正在考虑类似手册页的东西,但对编辑代码很有用。

任何和所有的建议都非常受欢迎!

0 投票
2 回答
938 浏览

delphi - Delphi 2006 丢失组件包

Delphi 2006,每次重新启动,都会丢失组件包。这种情况每天都会发生。我们有我们自己编写的带有自定义 VCL 组件的组件包。启动 Delphi 2006 时,没有任何记录。但是,一旦我打开一个包含其中一些组件的表单,我就会收到

bds.exe - 无法找到组件

此应用程序无法启动,因为未找到 DclOpusRep2006.bpl。重新安装应用程序可能会解决此问题。

当我尝试重新安装组件包时,可能会发生两件事:

  1. 我得到了一个设计包的空列表,并且必须去 regedit 删除有问题的包,然后才能重新添加它。
  2. 我得到了设计包的列表,它确实向我显示了有问题的包已加载且可用。

该软件包始终在本地驱动器上可用,但不是 Delphi 所在的驱动器。故障排除有什么想法吗?

只是为了根据第一个答案澄清我的问题:我是这个项目的唯一开发人员。该库已从它仍然驻留的相同位置安装,并且组件包列表中的路径是正确的。

0 投票
3 回答
19136 浏览

delphi - “无法加载包 A,它包含单元 X,它也包含在包 B 中”

(对我来说更多的包/组件安装乐趣——感谢大家迄今为止的所有帮助)。

我在 Delphi 2007 中将错误列为标题。包 A 是我的基于框架的“查看器面板”包。包 B 是一个包含几个组件的包,这些组件用于显示有关链接到 gven 数据库的数据集的信息(它们的 SQL、状态、类类型等),其中一个是非可视组件(我们称之为检查员)创建并调用显示该信息的表单。单元 X 是该表单的单元。

我将 Inspector 组件添加到 Package 中的一个查看器面板中,但此后将其删除,并且在项目的 View Source 中找不到对它的任何引用,也找不到我添加到的基于框架的查看器面板的单元。参考隐藏在哪里?

此外,将 Inspector 组件添加到其中一个视图面板框架(也作为注册组件安装)会导致此问题的原因是什么?

这可能与上一个问题这个问题有关,但我决定从这个特定的症状/问题重新开始,只是为了保持简洁明了,希望以后对其他人有用。提前感谢您的任何帮助。


更新:

感谢 Loren,我能够找到并删除保留并导致问题的 USES 引用。但是,我仍然不清楚如何完成我想要完成的事情。: \ 这是最新的:

Inspector 是一个简单的非可视组件,它包含一个 DataSet 属性和一个内部“信息表单”。调用 ShowInfo 方法会创建表单,并使用与链接的 DataSet 相关的各种信息填充它。我想用它来调试驱动观众的 SQL。

如上所述,检查器包含在包 B 中。查看器在包 A 中。我想在一些 TFrame 后代(注册为真正的调色板组件)上使用检查器组件。当我将该组件放在给定的 TFrame 上以使用它并编译/安装包 A 时,我收到“无法加载包 A,它包含单元 X,它也包含在包 B 中”错误。现在显然是原因,我可以按需重新创建问题。

moobaa 下面的建议是有道理的,但似乎即使我试图按照他的建议进行方法 #2,它也不起作用。我错过了什么?看起来这应该是可行的,事实上,我见过的大多数软件包似乎一直在使用其他已安装的软件包(包括 VCL 本身)。

注意:据我所知,包 B 不依赖于包 A(而且我已经单独安装了它,所以似乎同意)。

(顺便说一句,是否有任何工具可以像这样“绘制”包依赖项?我使用的是 D2007)

一如既往,感谢您的时间和帮助。